references: classify this branch's Node and NoDe matches
Final review F7. scripts/runner-dead-references.py failed with 17
unclassified matches of its pattern (node|npm|...), case-insensitive:
- toolTasteNoDesign ("NoDe") in chat/taste_ask.go and its test: an
identifier of ours, so renamed to toolTasteNotOnTeam (no
allowance needed; the model-facing text is unchanged);
- *html.Node, html.ElementNode, html.TextNode (golang.org/x/net/html
parse trees) in direction_card_test.go and taste_card_test.go: not
ours to rename, so classified as the script intends, one exact
allowance per line (path, line SHA-256, match, count) with the reason
"golang.org/x/net/html parse tree nodes ... not Node.js", appended
as earlier branches did (13 entries).
Tests:
python3 scripts/runner-dead-references.py
RED: "reference scan: 3514 text files, 4001 matches, 17 failures"
GREEN: "3514 text files, 3998 matches, 0 failures"
go test ./internal/equipotest/ -run TestDirectDeadReferences -count=1: ok
go test ./internal/equipo/chat/ -run Taste: ok
Guard check: the script itself is the guard; an allowance whose count
or line no longer matches is reported stale, so these fail if the
lines change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+102
−11
internal/equipo/chat/taste_ask.go+10 −10internal/equipo/chat/taste_ask_test.go+1 −1scripts/runner-reference-allowlist.json+91 −0
diff --git a/internal/equipo/chat/taste_ask.go b/internal/equipo/chat/taste_ask.go| index 9eb9b5a9..314b7aaf 100644 |
| --- a/internal/equipo/chat/taste_ask.go |
| +++ b/internal/equipo/chat/taste_ask.go |
| @@ -71,15 +71,15 @@ const ( |
| // Tool results for ask_design_taste, read by the model. |
| const ( |
| - toolTasteAsked = "The person sees a few questions about the look they want for this project, with Use these and Skip. Do not start Design in this reply: their answer arrives as their next message, with the request it is for, and then you start Design. Finish this reply now in one line; do not ask again." |
| - toolTastePending = "Refused: the person has not answered the questions about the look for this project yet; they are still on their screen. Design must wait for that answer: do not start it in this reply, and do not ask again." |
| - toolTasteDone = "Refused: the person was already asked about the look for this project and answered or skipped. Do not ask again: start Design now." |
| - toolTasteKnown = "Refused: the person already has design notes for this project or for all their projects, and Design reads them. Do not ask: start Design now." |
| - toolTasteNoDesign = "Refused: Design is not on the team for that project. Propose it with propose_specialist for that project and pass feels there: the questions then ride on its card. Nothing was asked." |
| - toolTasteProject = "Refused: project must name one of the team's projects, as the project list shows it. Nothing was asked." |
| - toolTasteFeels = "Refused: feels is at most 5 short labels, each at most 30 bytes of letters, digits, spaces, hyphens or apostrophes, starting and ending with a letter or digit, each said once. Nothing was asked." |
| - toolTasteNotTurn = "Refused: only the person's own message can lead to these questions, never a continuation. Start Design with what the request says." |
| - toolTasteTooLong = "Refused: the request is too long to carry with the questions. Nothing was asked: start Design now with what the request says." |
| + toolTasteAsked = "The person sees a few questions about the look they want for this project, with Use these and Skip. Do not start Design in this reply: their answer arrives as their next message, with the request it is for, and then you start Design. Finish this reply now in one line; do not ask again." |
| + toolTastePending = "Refused: the person has not answered the questions about the look for this project yet; they are still on their screen. Design must wait for that answer: do not start it in this reply, and do not ask again." |
| + toolTasteDone = "Refused: the person was already asked about the look for this project and answered or skipped. Do not ask again: start Design now." |
| + toolTasteKnown = "Refused: the person already has design notes for this project or for all their projects, and Design reads them. Do not ask: start Design now." |
| + toolTasteNotOnTeam = "Refused: Design is not on the team for that project. Propose it with propose_specialist for that project and pass feels there: the questions then ride on its card. Nothing was asked." |
| + toolTasteProject = "Refused: project must name one of the team's projects, as the project list shows it. Nothing was asked." |
| + toolTasteFeels = "Refused: feels is at most 5 short labels, each at most 30 bytes of letters, digits, spaces, hyphens or apostrophes, starting and ending with a letter or digit, each said once. Nothing was asked." |
| + toolTasteNotTurn = "Refused: only the person's own message can lead to these questions, never a continuation. Start Design with what the request says." |
| + toolTasteTooLong = "Refused: the request is too long to carry with the questions. Nothing was asked: start Design now with what the request says." |
| ) |
| // propose_specialist's word on the Add card's questions, after its own. |
| @@ -143,7 +143,7 @@ func (t *txn) askDesignTaste(r turnRecord, project string, feels []string) (wire |
| return wire.ToolResult{}, err |
| } |
| if design == nil { |
| - return refused("no_design", toolTasteNoDesign), nil |
| + return refused("no_design", toolTasteNotOnTeam), nil |
| } |
| if res, err := t.tasteAskable(r.Person, p.ID); res != nil || err != nil { |
| return deref(res), err |
diff --git a/internal/equipo/chat/taste_ask_test.go b/internal/equipo/chat/taste_ask_test.go| index 1873395e..6adce042 100644 |
| --- a/internal/equipo/chat/taste_ask_test.go |
| +++ b/internal/equipo/chat/taste_ask_test.go |
| @@ -200,7 +200,7 @@ func TestAskTasteFeelsBounds(t *testing.T) { |
| res := r.call(l, turn.ID, wire.ToolAskDesignTaste, askArgs(project, nil)) |
| want := toolTasteProject |
| if name == "no Design" { |
| - want = toolTasteNoDesign |
| + want = toolTasteNotOnTeam |
| } |
| if !res.IsError || res.Text != want { |
| t.Fatalf("%s: %+v", name, res) |
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json| index fd1ee827..3d437b3a 100644 |
| --- a/scripts/runner-reference-allowlist.json |
| +++ b/scripts/runner-reference-allowlist.json |
| @@ -23098,5 +23098,96 @@ |
| "match": "equipo-runner", |
| "count": 1, |
| "reason": "Retained runner executable name in the page renderer's forge publish and check tooling (renderer out of the instance)." |
| + }, |
| + { |
| + "path": "internal/equipo/direction_card_test.go", |
| + "line_sha256": "ed689e1fdac7fa7cc44905e8f95b29c5061969b43c7a6c12b0c309dbb91f06d0", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/direction_card_test.go", |
| + "line_sha256": "7e46689eeee206bface006629bf2caa5642ea3c9dddf703aca133ecac4288661", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/direction_card_test.go", |
| + "line_sha256": "bc8bfbcc6064306bca52555503cf8957dac127cc6a6a44fd1cc6f675e5610bc4", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/direction_card_test.go", |
| + "line_sha256": "9320160ba27fab7119ae195d731a6b54699645f81855dc769dbe5b465bd40875", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "7e9d3833f68d14da0018503b9a61aecfa4d5bb46546a12863466a6fee1b01b63", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "b4c0b3d7e4ba39539fdaf5f409b091c656f3085450f5fdf68fb2b2b96f04bd15", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "cb97b1d99f6370f1b057761e85af173c975f7d2ba4b2b18b820c75ebe685331a", |
| + "match": "Node", |
| + "count": 2, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "3f6bbe985c3372db4e7be0ae6ebf9ff048cbf6bf41e78867096d3e411679690c", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "678cb47fe26feff084b04be7c44b4456f4f31318fe65a4037b416923be1e58ed", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "c7b6d0c4dc9421bb69aeb97cff96ea24a04bd42ffaeee7c1dcd8d47c3c369b65", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "4d165c854f8778613454908b77afddcfb6150fc007481e5f98608f404c70619a", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "5de5c8b4a900b8e4caf3c6f71d80d3b9786d40a4daa4f816c067e96c56fa1902", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| + }, |
| + { |
| + "path": "internal/equipo/taste_card_test.go", |
| + "line_sha256": "0d6f4f66cfc0826d18f8fafd6fd26891ed68dedab2a47683848c2bf10dde8b0f", |
| + "match": "Node", |
| + "count": 1, |
| + "reason": "golang.org/x/net/html parse tree nodes (html.Node, ElementNode, TextNode) in Design feedback's card rendering tests; not Node.js." |
| } |
| ] |