Skip to content

fix(spec): a refusal code or reason is literal at save only when its quote closes the value - #38044

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-qsnp91
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-qsnp91

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #36670
repo:objectstack#3 · os-tesla · session_01L9qibykc1XS5J4B4J16dLb

Clause-②: no
Metadata-protocol: none

Clause-② citation, the published docblock of hookRefusalCodesThrownIn (packages/spec/src/data/hook-refusal-codes.ts) on origin/main 3e8edf7: "A code that arrives any other way — a helper's parameter (refuse('…', code)), a variable, a computed value — is left to the run-time refusal". A code or reason built from a literal ('OVER' + suffix, 'OVER'.concat(suffix)) is a computed value, so its save refusal was a false refusal; this PR removes only that, as PR #36666 did for the text-key reader (#35698) on the same ground. Every literal refused before is still refused, in the same words (the lit pins below).

维护者速读

  • 搭建者在钩子或动作代码里用拼接方式拼出拒绝码或拒绝原因时,保存不再被误拒;直接写死的拒绝码和原因照旧在保存时检查,用户无其它感知变化。
  • 属于钩子与动作「按声明的拒绝目录拒绝」这条线,替写拼接拒绝码的搭建者解决保存被误拒的问题,和已合并的文本键同类修复是一族。
  • 出错的话,拼接出的码或原因若没有声明,会在运行时才报错并点名它(本来就有的运行时拒绝);改动可以直接撤回。
  • 无

What changes

  • The four save-time readers in packages/spec/src/data/hook-refusal-codes.ts (CODE_PROPERTY, CODE_ASSIGNMENT, REASON_PROPERTY, REASON_ASSIGNMENT), which both save doors use (HookSchema and ActionSchema, through hookRefusalCodesThrownIn / hookRefusalReasonsThrownIn), now end with a lookahead after the closing quote:
    • PROPERTY_VALUE_END (the two property readers): , or } follows, after optional whitespace (a comment there is blanked to whitespace by the existing masking first).
    • ASSIGNMENT_VALUE_END (the two assignment readers): ;, ,, } or ) follows after optional whitespace, or the source ends, or a line end follows whose next line does not continue the expression. A next line opening with an operator, a member access, a call or index bracket or a template (+ suffix, .concat(suffix)) continues it, as JavaScript reads it.
  • Anything else after the quote leaves the value to the run-time refusal, which already names the code or reason (undeclaredHookRefusalAtRun, undeclaredHookRefusalReasonAtRun and the action twins).
  • A reason under a computed code is no longer read either: the existing rule reads a property reason only beside exactly one literal code, and a computed code is no longer one.
  • A template literal with a ${} hole needed no change: the masking already blanks it. Pinned anyway (property form).
  • , is in the assignment set beyond the card's list (e.code = 'X', e.reason = 'y'): the comma operator ends the assignment, and leaving it out would have stopped refusing a literal the save refuses today.
  • Docblocks of the two lookaheads and of hookRefusalCodesThrownIn / hookRefusalReasonsThrownIn say what "literal" means now. No export, schema shape, .describe() or error sentence changed.
  • patch changeset for @objectstack/spec.

Tests

One new top-level describe in each existing harness file:

  • packages/spec/src/data/hook-refusals.test.ts:
    • lit code (13 shapes): property closed by }, by ,, with a line break or a comment before the close, a backtick with no hole, inside Object.assign; assignment closed by ;, a line end, a comment and a line end, ,, }, ), the source end. Each is still refused at body.source with the unchanged sentence.
    • dark code (9 shapes plus an inline handler): property +, + on the next line, backtick +, .concat, template hole; assignment +, + on the next line, .concat on the next line, backtick +. Each passes the save, and the reader returns nothing.
    • lit reason (5) / dark reason (5): the same split for reasons, a listed reason (reasons: [{ reason }]) included.
    • CONTROL: a literal code beside a computed one in the same body is still refused, exactly once.
  • packages/spec/src/ui/action-refusals.test.ts: the action twin, lit code 5, dark code 4, lit reason 2, dark reason 2.
Before the fix, after, and ablation
  • Before (new pins on the origin/main 3e8edf7 reader, file restored tree-only): Failed Tests 20, all dark cases except the template hole (already blanked by the masking); every lit case green.
  • After, at 291adbd: the two harness files Tests 195 passed (195); together with hook.test.ts, hook-texts.test.ts, action-texts.test.ts before the new pins, Tests 326 passed (326).
  • Ablation through scripts/ablation-replace.mjs on the committed fix (tests import src relatively, so no dist leg); each restore blob == HEAD (9afc30eb45f3) and git diff HEAD is empty:
    • REASON_PROPERTY lookahead removed: Tests 4 failed | 191 passed (195), the 4 property-reason dark pins.
    • REASON_ASSIGNMENT lookahead removed: 3 failed, the assignment-reason dark pins.
    • CODE_PROPERTY lookahead removed: 7 failed, the property-code dark pins and the handler pin.
    • CODE_ASSIGNMENT lookahead removed: 6 failed, the assignment-code dark pins.
    • Line-end branch made non-continuing ([ \t]*\r?\n only): 4 failed, the next-line dark pins.
    • Line-end branch removed: 4 failed, the line-end lit pins (hook code ×2, action code, hook reason).
  • pnpm --filter @objectstack/spec build exit 0; pnpm --filter @objectstack/spec test at 291adbd: Test Files 909 passed (909), Tests 28797 passed | 1 todo (28798); typecheck exit 0; check:generated exit 0 ("All 14 generated artifacts are up to date").

Acceptance notes

  • Derived local gate set at 291adbd: dispatch-gates --ran reconciles 85 derived, 83 run (all exit 0), 2 NOT MEASURED, 0 unrun. @objectstack/formula, @objectstack/lint and @objectstack/objectql were built first so check:doc-formula-expressions and check:lean-entry-closure could measure (both exit 0). eslint on the three changed .ts files exit 0.
  • Declared narrowing, the 2 NOT MEASURED (exit 3, prerequisite not met), both CI's: check-plugin-teardown-shape.mjs --self-test reads a fixture pinned to a commit this shallow clone cannot reach; check:dual-build-cjs-loads needs every package's dist/ (a full pnpm build), which this card's diff does not move.
  • The assignment terminators add , to the card's list (;, line end, }, )): the comma operator closes the assignment (e.code = 'X', e.reason = 'y'), and leaving it out would have stopped refusing a literal the save refuses today. A line end counts unless the next line continues the expression; the continuation set is the operator, member-access, bracket and template openers JavaScript does not end a statement before, broader than the claim's "a leading + or ." example.
  • Out of scope, noted not filed: none found.

Verification

Read first (by risk):

  1. packages/spec/src/data/hook-refusal-codes.ts: PROPERTY_VALUE_END and ASSIGNMENT_VALUE_END, and the four readers that append them.
  2. packages/spec/src/data/hook-refusals.test.ts: the new lit/dark/CONTROL describe at the end.
  3. packages/spec/src/ui/action-refusals.test.ts: the action twin.

Two-minute check: pnpm --filter @objectstack/spec exec vitest run src/data/hook-refusals.test.ts src/ui/action-refusals.test.ts shows 195 passing; delete + PROPERTY_VALUE_END from CODE_PROPERTY and the same command shows 7 dark cases failing.


Generated by Claude Code

…quote closes the value

The four save-time readers (code and reason, property and assignment) stopped
at the closing quote, so a value built from a literal such as 'OVER' + suffix
was read as the literal OVER and refused at save. A property value is literal
now only when `,` or `}` follows; an assigned one only when `;`, `,`, `}`,
`)`, the source end, or a line end that does not continue the expression
follows. Every literal refused before is still refused in the same words.

Claude-Session: https://claude.ai/code/session_01L9qibykc1XS5J4B4J16dLb
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:data protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

6 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json c151c4993ee3a4409aadb1568865e4036cc4b01f → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 5b90fe2c09d29b201ff0d4dc1b4f1771fd7992cd — the merge of head 291adbd71cef38cb43655c59730076347d03d047 into base c151c4993ee3a4409aadb1568865e4036cc4b01f, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 5b90fe2c09d29b201ff0d4dc1b4f1771fd7992cd && git checkout 5b90fe2c09d29b201ff0d4dc1b4f1771fd7992cd
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c151c4993ee3a4409aadb1568865e4036cc4b01f 291adbd71cef38cb43655c59730076347d03d047 && git checkout -B drift-repro c151c4993ee3a4409aadb1568865e4036cc4b01f && git merge --no-ff 291adbd71cef38cb43655c59730076347d03d047

node scripts/docs-audit/affected-docs.mjs --json c151c4993ee3a4409aadb1568865e4036cc4b01f

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 291adbd · 2026-11-27T20:16Z

L1-a (the seat's L1 thread) runs the isolated CONTRACT_REVIEW_TIER review on this head (published-schema face: packages/spec/src/data/hook-refusal-codes.ts, the save-door readers of HookSchema and ActionSchema refusal codes and reasons), and posts its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 291adbd71cef38cb43655c59730076347d03d047
Local-runs: probe — the two lookaheads are regular expressions whose reading of about 70 body shapes cannot be settled by eye; one node script called hookRefusalCodesThrownIn and hookRefusalReasonsThrownIn from the base blob and the head blob of the one hits file (git show copies in scratch, no checkout, no build, no test or gate run)
Scope: packages/spec/src/data/hook-refusal-codes.ts + none

Inputs read: card #36670 (body, triage 7100098534, claim 7226585955, amendment 7226609991; no ruling and no earlier record on the thread), PR #38044 (body, 4-file list, net diff against main at 3e8edf78), the dev report for this head (open_questions empty, out_of_scope_findings empty), the check-runs on this head, and PR #36666 with its record 7099600018 as the cited precedent. Remainder of the diff, the lane seat's ACCEPT at TIER_DEFAULT: .changeset/36670-refusal-literal-close.md, packages/spec/src/data/hook-refusals.test.ts, packages/spec/src/ui/action-refusals.test.ts. Code read outside the diff, not reviewed: packages/spec/src/data/hook.zod.ts (refusalSourceOf, refuseUndeclaredLiteralRefusalCode), packages/spec/src/ui/action.zod.ts (refuseUndeclaredLiteralActionRefusalCode), packages/runtime/src/sandbox/hook-refusal-catalogue.ts, content/docs/references/data/hook.mdx.

Check-runs on this head, read 2026-11-27T20:21Z. Concluded success: Check Changeset, Governed Surface Queue Guard, Spec property liveness, Type Check · source gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · repo & tooling gates, the three Lint · scoped runs, PR-body guards, Flag docs affected by code changes, Dogfood Regression Gate, Build UI Deps, Check PR Size, both shard plans. None failed. STILL PENDING at that read, so not yet a gate verdict: Build Core, Test Core 1 to 10 of 10, Test UI 1 to 16 of 16, Build & E2E UI, Live E2E UI, Type Check UI, Type Check · consumer gates, Type Check · debt ledger, Type Check · workspace, Lint · CI, release & engine gates, Lint · docs & code guards. This verdict is on the contract; it does not stand in for those runs.

① Derived judgments

  • Accept set, save doors of HookSchema and ActionSchema (the only callers, hook.zod.ts:322,326 and action.zod.ts:2781,2785): WIDER by the bodies where a quoted code or reason is followed by something other than its form's terminator. Right for the class the card names: code: 'OVER' + suffix, e.code = 'OVER' + suffix, the reason twins, .concat(...) on the same or the next line, a blank or comment line before the continuation. Each read as the bare literal on main and is read as nothing on the head (probe).
  • Refusal set kept for every ordinary literal: property closed by } or ,, inside Object.assign(new Error(), { ... }), with a block or line comment before the close, CRLF, spread before or after, minified {code:"X"}; assignment closed by ;, ,, }, ), a line end (LF or CRLF), a trailing line comment, a block comment holding a line break, the source end, a comment line then a statement; a reason in reasons: [ ... ] and in e.reasons = [ ... ] (each item closes with } or ,, a trailing comma included). Same path, same sentence: no ...AtSave function moved. Right.
  • Refusal set NOT kept for three valid-JavaScript literal shapes: see N1. The run-time refusal answers each.
  • Second-order, not named by the PR: a code that becomes computed also moves the reason pairing. throw { code: 'B', reason: 'r', cause: { code: 'A' + x } } named two codes on main (so its reason was not read) and names one on the head, so B.r is now judged; e.code = 'B'; e.code = 'A' + x; e.reason = 'r' paired r with A on main and pairs it with B on the head. A body of either shape that saved on main (only possible with the never-thrown prefix A declared) can be refused on the head. This is the published pairing rule applied to a code now classified as the docblock classifies it; see N2.
  • Run-time half unchanged and real: hook-refusal-catalogue.ts answers any thrown code the catalogue does not declare, and any undeclared reason under a code that declares reasons, through undeclaredHookRefusalAtRun, undeclaredHookRefusalReasonAtRun and the action twins, naming the code or reason. Every body the head newly accepts at save is still refused at run when the built value is undeclared. Right.
  • Public surface: no export added, removed or retyped; both lookaheads and the four readers are module-private; no schema shape, .describe() or error sentence moved. Published prose elsewhere stays true unedited (hook.mdx: "at save when the hook throws it literally, otherwise at run time"; hooks.mdx:452). Right.
  • Bodies are JavaScript at both doors: a js body is z.literal('js') source, and an inline handler is read through Function.prototype.toString, after type erasure. So code: 'X' as const } and e.code = 'X' as Code; (both dark on the head, probe) are not a loss: a syntax error in a js body, erased before a handler is read. Same finding as record 7099600018.

② Semver level

  • patch on @objectstack/spec, Metadata-protocol: none: right, as fix(spec): a ctx.text key is literal at save only when its closing quote ends the argument #36666 was ruled. A bug fix in a released package; no key, accepted value or metadata type is added, removed or re-meant. Check Changeset concluded success.
  • Clause-②: no — holds. The save does accept bodies main refused, so the question is whether published text promised that refusal. It promised the opposite: the hookRefusalCodesThrownIn docblock on main ("A code that arrives any other way ... a computed value — is left to the run-time refusal"), the hookRefusalReasonsThrownIn docblock ("a computed reason"), the hook.zod.ts block ("A code that arrives any other way is the run-time refusal's") and the refusals .describe(). 'OVER' + suffix is a computed value under each. The ground is the one record 7099600018 accepted for hookTextKeysAskedIn, and it carries over unchanged. No (widening) arm is owed. The N2 pairing effect does not earn (narrowing): the published rule ("exactly one code literally"; "that name's literal e.code = 'X'") already says what the head does, and the bodies it reaches could only save on main by declaring a code they never throw.
  • PR body and changeset carry the same two declaration lines.

③ Boundary flags

  • open_questions: empty. out_of_scope_findings: empty.
  • Declared deviation 1, , added to the assignment terminators beyond the card's list: correct JavaScript. After a complete assignment value a comma is the comma operator or an argument or element separator, never part of the value, and e.code = 'X', e.reason = 'r' is the shape a minifier emits; leaving it out would have lost a literal main refuses (probe: read on both sides).
  • Declared deviation 2, a continuation set wider than the claim's + and . example: correct in direction and correct JavaScript for every member but one pair. A next line opening with (, [, a backtick, /, *, %, ., ?, &, |, ^, =, a less-than or greater-than sign, or a binary + or - does continue the expression; JavaScript inserts no semicolon there. The exception is a next line opening with ++ or -- (N1). A next line opening with !, {, ], :, a quote or an identifier is correctly not a continuation.
  • Declared narrowing of the local gate set (2 NOT MEASURED): CI's to answer; Build Core and the test shards were pending at my read (above).
  • SQL push-down: not applicable. The diff is two regular-expression fragments and prose; no query, no id materialisation, no in-app join.

④ Design judgment

packages/spec/src/data/hook-refusal-codes.ts, against the card's ask, the docblock it cites and its two consumers.

No must-fix, no should-fix.

  • Property form, (?=\s*[,}]): holds. In valid JavaScript a property value that is one string literal can only be followed by whitespace, a comment, , or }; comments are blanked with their line breaks kept, and the terminator always lies inside the sliced throw statement (bracket depth above zero). { reason: 'x' } items inside either reasons list close with } or ,; the list's own ] never follows a reason directly. reasons: ['a', 'b'] was not read on main and is not read now. The only property shapes that go dark are computed ('X' + s, 'X' || y, 'X' ? a : b), an unparseable unclosed object, and throw wrap(f ? code : 'X')-style identifier misreads that end the statement, which were false reads.
  • Assignment form: the lookahead is zero-width, the negated class excludes \s so \s* cannot backtrack into a false pass, and the flags carry no m, so $ is the source end as the docblock says.
  • N1 (nit) — three valid-JavaScript literals that main read and the head reads as computed (probe), against the sentence "as JavaScript reads it": (a) e.code = 'X' at a line end whose next line opens with ++ or -- (JavaScript ends the statement there; a prefix update is not a continuation); (b) a ternary consequent on one line, ok ? e.code = 'X' : e.code = 'Y' (the X is lost, the Y kept; with : on the next line both are kept); (c) [e.code = 'X']. Also a bare CR line end and a no-break space before the line end. Each is a lost save refusal that the run-time refusal still answers, naming the code; none is a shape an author or the handler path's toString text plausibly produces. Accepted deviation; a follow-up could add : and ] to the terminator set and exempt ++ and -- from the continuation class.
  • N2 (nit) — the reason pairing moves with a code that becomes computed (① above): a nested or reassigned computed code can make a reason newly read under the remaining literal code. For the nested shape the new save refusal is one the run also makes. For the reassigned shape it is the flow-insensitive pairing main already applies to e.code = 'B'; e.code = compute(); e.reason = 'r', now also reached by a literal-prefixed value. No pin covers either. Accepted deviation; no change asked.
  • N3 (nit) — a computed value still read as literal: a next line opening with the word operators in or instanceof (e.code = 'X' then in obj) continues the expression in JavaScript and is still read as the literal, as on main. The same-line spellings are dark. No other reverse case found: 'X' + s, 'X'.concat(s), 'X' || y, a continuation after blank or comment lines, and a template with a hole are all dark on both forms.
  • N4 (nit, prose) — docblock of ASSIGNMENT_VALUE_END: "opens with an operator ... continues it, as JavaScript reads it" is loose both ways (! is an operator and does not continue; ++ and -- do not continue in JavaScript and are treated as continuing). The other docblock hunks say what the code does, sentence by sentence.

Read, not reviewed (changeset, the lane seat's): its sentences on the two terminator sets, the worked examples and the run-time answer are true against the code. One is too wide: "Every literal code or reason the save refused before is still refused" is true of every shape it lists and false for the N1 shapes; "the ordinary literal forms" would be exact.

Implemented-by: claude/project-thread-qsnp91
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The filled brief the record above (7227453550) was rendered from (L1-a, isolated CONTRACT_REVIEW_TIER subagent):

Contract review brief — PR #38044 @ 291adbd71cef38cb43655c59730076347d03d047 (card #36670)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/data/hook-refusal-codes.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36670: its body and EVERY comment (rulings and earlier records included)
· PR #38044: its body, its file list, and the net diff against main at 3e8edf78c2d16738a7740bcd68e33158d96691a5
· the check-runs on 291adbd71cef38cb43655c59730076347d03d047: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/data/hook-refusal-codes.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-38044/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T20:48Z

L1 ACCEPT at 291adbd71cef38cb43655c59730076347d03d047 (L1-a for the seat). Face: l1-face clean (13 of 13); CI at this head is 58 success, 11 expected skip, 0 failed, 0 pending.

Contract review. The isolated CONTRACT_REVIEW_TIER record 7227453550 is a PASS (claim 7227351244, filled brief 7227469443, verify-review-tier PASS). It has no must-fix and no should-fix, only four nits.

  • Probe. The reviewer ran one declared probe: the base and head readers over about 70 body shapes. Every ordinary literal is read the same on both, in the same words: a property closed by } or , (including inside Object.assign(new Error(), { … }), after comments, CRLF, spread or minifying), an assignment closed by ;, ,, }, ), a line end, a trailing comment or the source end, and { reason: 'x' } items in both list forms.
  • Clause-②: no holds. The published text on main (both reader docblocks, the hook.zod.ts block and the refusals .describe()) already leaves a computed value to the run-time refusal. That is the ground the fix(spec): a ctx.text key is literal at save only when its closing quote ends the argument #36666 record (7099600018) accepted. patch and Metadata-protocol: none are right.
  • Both declared deviations are correct JavaScript readings. A , ends a complete assignment value, and the continuation set holds, with the one exception under N1.

Your question: is every literal refused before still refused, in the same words? For every shape an author or a handler's toString plausibly writes, yes. The record found three valid-JavaScript shapes that main read as literal and the head reads as computed (N1):

  • e.code = 'X' at a line end followed by a line opening with ++ or --;
  • a one-line ternary ok ? e.code = 'X' : e.code = 'Y';
  • [e.code = 'X'].

A bare CR or a no-break space before the line end also counts. The run-time refusal still catches each one, naming the code, so no undeclared code ever runs. I accept these as a deviation, not a rework. The changeset's sentence "Every literal code or reason the save refused before is still refused" is followed by the shapes it means. Scoping it to "in each of these shapes" would make it exact, and that is a prose-face change if you want it.

Nits (record N1–N4, not blocking).

  • N1: above. The code fix, if ever wanted, is small: add : and ] to the terminators and exempt ++/--.
  • N2: when a code goes computed, the reason pairing moves too. The pairing rule already published covers this, and the run refuses the same thing. It has no pin.
  • N3: a next line opening with in or instanceof is still read as a literal, as on main.
  • N4: the ASSIGNMENT_VALUE_END docblock is loose about ! and ++/--.

Report. The os-dev report sits in the project files (card-36670/os-dev-report-291adbd7.json), because the relay post to the card was refused. No gate I apply needs it on the card. Its readings (20 red before the fix, the per-lookahead ablations, spec 28797 passed) match the pins in the diff.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-27T20:49Z · zone o3-build (seat card thread)
Head-sha: 291adbd71cef38cb43655c59730076347d03d047

  • L1 ACCEPT: 7227872844 at this head (L1-a). Contract review PASS 7227453550 (brief 7227469443), nits N1–N4 only. Claim 7226585955, amended 7226609991. The os-dev report is in the project files at card-36670/os-dev-report-291adbd7.json. Posting it on the card was refused by the auto-mode classifier, and no gate needs it there (L1-a).
  • Clause-②: no, patch, on the same ground as PR fix(spec): a ctx.text key is literal at save only when its closing quote ends the argument #36666: only a false save refusal of a computed value is removed. Every plausible literal refused before is still refused in the same words. L1-a accepted three exotic valid-JavaScript shapes as a deviation (N1: a ++/-- next line, a one-line ternary, an array-wrapped assignment). The new reader treats them as computed, and the run-time refusal still catches each one.
  • check-governed-merges.mjs --pr 38044: NOT governed, 0 of 4 paths, +210 / −16.
  • landing-k.mjs --pr 38044: OK, K = 2 < 15.
  • Checks at this head: 58 success, 11 expected skip, 0 failed. mergeable_state clean.
  • Action: ready for review and auto-merge (queue).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 27, 2026 20:50
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit b4c99b8 Nov 27, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-qsnp91 branch November 27, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:data protocol:ui size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hook and action refusals: the save door's code and reason readers stop at the closing quote, so code: 'OVER' + suffix is refused at save as code 'OVER'

2 participants