You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
action-body compile check: an unterminated regex literal in an inline body takes the warning arm, not the refusal arm, so a body that cannot compile is accepted at write (after #34980) #35040
area:builddomain:specDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filed by triage at the request of repo:objectstack#3 (mailbox #32588, 6964402867, item 1). It comes from the contract review of #34980 (landed at 15faf1d), nit N3.
What happens
In the action-body compile check that #34980 added, an unterminated regex literal in an inline body takes the warning arm rather than the refusal arm. A body that cannot compile is then accepted at write, and fails only at run time. That is the failure #34884 (p1) was fixed for.
Done when
An unterminated regex literal, and any other tokenizer error class the check routes to warning, is refused like every other compile error. A pin covers the regex case.
Sibling of #34987 (hook and job bodies). Area o3-C knows the code.
Grade: p2 · domain:spec. Theme: MCP authoring (agents write action bodies through the build door). It is a gap in a p1 fix, on a narrow input, so p2 rather than a p3 nit.
Claim: PM loop round 1 (repo:objectstack#1 card thread for #35040, area lease b1-A)
Session: session_01L6bhgTggz8AL2bCABoDGis
Thread session: session_01L6bhgTggz8AL2bCABoDGis
Account: os-sales
Branch: claude/project-thread-iswnar (platform exception: this card thread can push only its assigned branch, not claude/issue-35040-…)
Worktree: objectstack-issue-35040
Domain: domain:spec
Seat: repo:objectstack#1
File surface: packages/lint/src/validate-action-body-compiles.ts, packages/lint/src/validate-action-body-compiles.test.ts (or a new card-named test file beside it), packages/spec/src/migrations/entries/semantic/** (one ADR-0087 entry for the narrowing, plus the existing 18.action-body-does-not-compile-refused.ts text that says a regex literal is never refused), packages/lint/src/rule-explanations.ts if its text names the warning arm, .changeset/**
Container & model: M, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable; L2 owed at CONTRACT_REVIEW_TIER for the narrowing, separate isolated reviewer), effort: high
Clause-②: no
Metadata-protocol: narrowed
Responsibility: objectstack: the lint rule action-body-does-not-compile in packages/lint/src/validate-action-body-compiles.ts routes every host SyntaxError that opens "Invalid regular expression" to severity warning, so an unterminated literal (V8: "Invalid regular expression: missing /") and an invalid flag set (V8: "Invalid regular expression flags") are accepted at write | none: the body then fails only at run time with the coded 500 from quickjs-runner.ts | any author writing an inline L2 action body through the authoring doors, MCP agents included; the input is narrow, no first-party stack is known to carry one
Thread-read: none
Premise: holds — measured on origin/main 3819afe with node 22.23.5 vm.Script over (async (input, ctx) => { SOURCE }): return /abc; and return /[/; answer Invalid regular expression: missing /, return /a/zz; answers Invalid regular expression flags; both match REGEXP_FAILURE and take the warning arm. The measured dialect gap (Duplicate capture group name) is a pattern-body error, not a tokenizer one.
Pre-claim lane: packages/lint/src/** and packages/spec/src/migrations/**; repo:objectstack seat covers every domain, card carries area:build (lease b1-A).
Pre-claim deps: "after #34980" — merged 2026-11-18T00:15:17Z; #34884 closed. Sibling #34987 (same file, hook/job bodies, different fix) is unclaimed and runs after this card merges, as a separate PR from this thread.
Prior rulings read: regular expression,action-body-does-not-compile,unterminated → 0 hits; none; thread: none; repo: objectstack-ai/objectstack. File-surface grep for ruling / Ruling-ref / maintainer / ⛔: 0 hits.
Serial constraints cleared: overlap-check.mjs on a probe commit over the three named files: origin/main merges cleanly, 0 open PR heads share a file, exit 0. No in-flight claim on packages/lint/src/validate-action-body-compiles*. #34987 waits for this card (serial, same thread).
Merged · 2026-11-19T23:59Z · PR #35672 merged at feb9b791e1f85d3ac23683fb9b81efa9e5d01077; this card closed through Fixes #35040.
Delivered: action-body-does-not-compile refuses an unterminated regex literal and an invalid flag set at error (both tokenizer classes, QuickJS refuses each); regex pattern failures stay warning. ADR-0087 semantic entry action-body-regexp-literal-token-refused added, the 18.6.0 entry amended. Left: the six pattern classes QuickJS also refuses, plus review nits N1/N2/N4, are on #35694 (awaiting triage). Hook and job bodies stay with #34987. pm:dispatched removed.
area:builddomain:specDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTggz8AL2bCABoDGis
Claim: PM loop round 1 (repo:objectstack#1 card thread for #35040, area lease b1-A)
Session:
session_01L6bhgTggz8AL2bCABoDGisThread session:
session_01L6bhgTggz8AL2bCABoDGisAccount:
os-salesBranch:
claude/project-thread-iswnar(platform exception: this card thread can push only its assigned branch, notclaude/issue-35040-…)Worktree:
objectstack-issue-35040Domain:
domain:specSeat:
repo:objectstack#1File surface:
packages/lint/src/validate-action-body-compiles.ts,packages/lint/src/validate-action-body-compiles.test.ts(or a new card-named test file beside it),packages/spec/src/migrations/entries/semantic/**(one ADR-0087 entry for the narrowing, plus the existing18.action-body-does-not-compile-refused.tstext that says a regex literal is never refused),packages/lint/src/rule-explanations.tsif its text names the warning arm,.changeset/**Container & model:
M,mode:thread,model: default (dispatch-gates --tier: no path-derived mandate; floor sonnet · default opus · ceiling fable; L2 owed at CONTRACT_REVIEW_TIER for the narrowing, separate isolated reviewer),effort: highClause-②: no
Metadata-protocol: narrowed
Responsibility:
objectstack: the lint rule action-body-does-not-compile in packages/lint/src/validate-action-body-compiles.ts routes every host SyntaxError that opens "Invalid regular expression" to severity warning, so an unterminated literal (V8: "Invalid regular expression: missing /") and an invalid flag set (V8: "Invalid regular expression flags") are accepted at write | none: the body then fails only at run time with the coded 500 from quickjs-runner.ts | any author writing an inline L2 action body through the authoring doors, MCP agents included; the input is narrow, no first-party stack is known to carry oneThread-read: none
Premise: holds — measured on origin/main 3819afe with node 22.23.5
vm.Scriptover(async (input, ctx) => { SOURCE }):return /abc;andreturn /[/;answerInvalid regular expression: missing /,return /a/zz;answersInvalid regular expression flags; both matchREGEXP_FAILUREand take the warning arm. The measured dialect gap (Duplicate capture group name) is a pattern-body error, not a tokenizer one.Pre-claim lane:
packages/lint/src/**andpackages/spec/src/migrations/**; repo:objectstack seat covers every domain, card carriesarea:build(lease b1-A).Pre-claim deps: "after #34980" — merged 2026-11-18T00:15:17Z; #34884 closed. Sibling #34987 (same file, hook/job bodies, different fix) is unclaimed and runs after this card merges, as a separate PR from this thread.
Prior rulings read: regular expression,action-body-does-not-compile,unterminated → 0 hits; none; thread: none; repo: objectstack-ai/objectstack. File-surface grep for ruling / Ruling-ref / maintainer / ⛔: 0 hits.
Serial constraints cleared:
overlap-check.mjson a probe commit over the three named files: origin/main merges cleanly, 0 open PR heads share a file, exit 0. No in-flight claim on packages/lint/src/validate-action-body-compiles*. #34987 waits for this card (serial, same thread).Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTggz8AL2bCABoDGis
os-dev-report
Card-side copy of the report for PR #35672 (the PR carries the narrative copy, comment 7024071886).
{ "issue": 35040, "status": "done", "branch": "claude/project-thread-iswnar", "pr": "https://github.com/objectstack-ai/objectstack/pull/35672", "head_sha": "bf5fc6514f08e388b31e13b9b54f3fae12d102cd", "session": "session_01L6bhgTggz8AL2bCABoDGis", "premise_still_valid": true, "dogfood_battery": "df02e1cea5671657a3cbc4f1659dba9807dad68f · VERDICT command-exit 0 · os-verify-lock held 34m57s, closure build exit 0 · Test Files 482 passed / 3 skipped (485) · Tests 4092 passed / 68 skipped (4160) · no failures (head bf5fc6514 = this sha + a clean merge of main only)", "gates": "dispatch-gates --commands on df02e1ce: 115 families, all exit 0, --ran reconciled 115 run / 0 NOT-MEASURED. After the main merge on bf5fc6514: target test 25/25, lint test 221 files / 9322 tests, lint tsc exit 0, spec migrations 198/198, spec check:generated up to date. PR check-runs on bf5fc6514: 60 success, 10 skipped.", "line_budget": "n/a, no skills/** file; +179 / -23 over 8 files", "files_changed": [ ".changeset/35040-action-body-regexp-literal-token-refused.md", "content/docs/automation/hook-bodies.mdx", "packages/lint/src/authoring-rules.ts", "packages/lint/src/rule-explanations.ts", "packages/lint/src/validate-action-body-compiles.test.ts", "packages/lint/src/validate-action-body-compiles.ts", "packages/spec/src/migrations/entries/semantic/18.action-body-does-not-compile-refused.ts", "packages/spec/src/migrations/entries/semantic/18.action-body-regexp-literal-token-refused.ts" ], "deviations": [ "Clause-② line in PR body and changeset is `no (narrowing)`; the claim reads `no`", "file surface widened to hook-bodies.mdx and an authoring-rules.ts comment", "released 18.6.0 semantic entry amended in two phrases (L2 7025076166 judged it acceptable)", "PR report comment 7024071886 posted on the PR; this card-side copy carries the machine payload the landing gate reads" ], "mcp_calls": "0 writes", "security_findings": "none", "out_of_scope_findings": [ "pattern-class regex failures QuickJS also refuses stay warning: filed as #35694 with nits N1, N2, N4" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgTggz8AL2bCABoDGis
Merged · 2026-11-19T23:59Z · PR #35672 merged at
feb9b791e1f85d3ac23683fb9b81efa9e5d01077; this card closed throughFixes #35040.Delivered:
action-body-does-not-compilerefuses an unterminated regex literal and an invalid flag set aterror(both tokenizer classes, QuickJS refuses each); regex pattern failures staywarning. ADR-0087 semantic entryaction-body-regexp-literal-token-refusedadded, the 18.6.0 entry amended. Left: the six pattern classes QuickJS also refuses, plus review nits N1/N2/N4, are on #35694 (awaiting triage). Hook and job bodies stay with #34987.pm:dispatchedremoved.Generated by Claude Code