Skip to content

parser: network verbs match whole words, not substrings (limit 88, wide-match half) - #105

Open
githubscum wants to merge 3 commits into
mainfrom
lotor-lane/l88-whole-word-verbs
Open

githubscum wants to merge 3 commits into
mainfrom
lotor-lane/l88-whole-word-verbs

Conversation

@githubscum

Copy link
Copy Markdown
Owner

WO: WO-L88-01 (lane run 200). Addresses: KNOWN-LIMITS 88, the wide-match half only. Not core: src/parser is outside the non-delegable list.

What changed

  • isNetworkTool's Bash branch matched network verbs with a bare includes(), so cat mapping.txt landed in a receipt's sent array through ping, and its first 100 characters reached the chain in plaintext. Now each verb has to match as a whole word, and a multi-word verb allows any run of whitespace. 'nc ' becomes 'nc'. The verb list and its order are otherwise unchanged.
  • The verb list moved out of the function body into module constants. parserVersionHash used to cover the list through isNetworkTool.toString(), so the verb patterns are now added to its parts. Without that, a later edit to the list would not move the hash. The executor missed this; ike's review caught it and fixed it.
  • KNOWN-LIMITS 88's paragraph is amended to match, and the pin is re-stamped (limits-pin --check exit 0).
  • Out of scope, on purpose: redacting or digesting targets. That trade is still the owner's, and the plaintext tripwire assertions are unchanged.

Tested

  • test/known-limits-88-sent-plaintext.test.js: the mapping test is flipped and the item count goes 5 to 4. A new table test covers 13 commands, sent and not sent.
  • npm test: 1471 tests, 1465 pass, 0 fail, 6 skipped.
  • Extra probe, outside the suite: ssh-keygen, echo "npx" and my-curl x still qualify. curl_wrapper.sh and grep nc_ do not.

Executor

glm-5.3-flash:cloud through dispatch-to-ollama. Confirmed by the stderr unrecognized_model {"model":"glm-5.3-flash:cloud"} line. The executor was not allowed to run node; ike ran everything. ike wrote the one-line hash-parts addition by hand, on-meter.

Eval

No v3 eval (E1-E6) applies. This is R1 accuracy for the sent field: a false row claims that a session reached out when it did not.

What a reviewer should doubt

  • Recall did not get better, and that was by design. git -C dir push, npm i, gh, Invoke-WebRequest and pnpm were never matched, and they still are not. The amended limit 88 now says so.
  • Precision is still lexical. A quoted or echoed verb qualifies, and so does ssh-keygen, because - counts as a boundary.
  • The parser hash moves, so receipts made after this change carry a new parserVersionHash. That is expected, and it is what the hash is for.

🤖 Generated with Claude Code

githubscum and others added 3 commits November 16, 2026 12:36
…de-match half)

isNetworkTool's Bash branch used a bare includes() over the verb list, so
`cat mapping.txt` landed in a receipt's sent array through `ping`. Each verb
is now a whole-word regex (multi-word verbs allow any whitespace run); the
'nc ' entry becomes 'nc'. The verb patterns are added to parserVersionHash's
parts, since the list moved out of the function body it used to hash.

Plaintext targets are unchanged and still pinned; that trade stays the owner's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The limit 88 entry pointed at test/known-limits-87-sent-plaintext.test.js,
a file that does not exist; the tripwire was renumbered to 88 when the
entry was, and the prose was not. Limit 87 is the scheduling entry, so a
reader following the pointer lands on the wrong limit or nothing. Pin
re-stamped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@githubscum

Copy link
Copy Markdown
Owner Author

Revision (lane run 201): the limit 88 entry named its tripwire as test/known-limits-87-sent-plaintext.test.js, which does not exist. The file is known-limits-88-.... Fixed the pointer and re-stamped the pin (limits-pin --check exit 0). npm test 1471/1465 pass/0 fail/6 skip, unchanged. Doc-only, no logic; made by hand, not dispatched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant