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
hook texts: the save door's literal ctx.text check misses ctx.text?.('k') and ctx.text!('k'), so an undeclared text key passes save #35512
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
Filing gate: (b) a defect measured during a card's development — found by the #34575 card thread's dev (PR #35510, os-dev-report 7009580967), outside that card's scope.
What happens
HookSchema.texts TSDoc promises: "A key the hook's source asks for literally that texts does not declare is refused at save".
The save-time literal check (hook-refusal-codes: TEXT_CALL / hookTextKeysAskedIn) only recognises the call shape ctx.text('k').
So ctx.text('undeclared_key') is refused at save, but await ctx.text?.('undeclared_key') and ctx.text!('undeclared_key') pass HookSchema.safeParse. The runtime still refuses the key, so the author learns about it only when the hook runs.
Possibly the same family: the action half shares the key reader (not measured).
Ask
The literal reader also accepts ?.( and !( call shapes (ctx.text?.('k'), ctx.text!('k'), and their await forms), with pins for each shape, on hooks and — if measured to share the reader — actions.
⛔ Not a new rule; this is making an existing declared refusal hold on every call shape it names.
Dedup
Searched issues for hookTextKeysAskedIn, TEXT_CALL, ctx.text optional: only #34575 (the source card).
Reader
The seat that takes area:build authoring-rule cards. Suggested grade: p2 (declared-but-unenforced save refusal, reach grows with #35510).
Triage: lands in domain:spec · pm:queue; rationale: area:build · Bug · Impeded (the save door refuses an undeclared text key only for ctx.text('k'); ctx.text?.('k') and ctx.text!('k') pass save and fail only when the hook runs, against the HookSchema.texts promise) · builders, often (strict TypeScript reaches for ?.( once PR #35510 makes text optional) · measured by the #34575 dev → p2 as suggested.
Claim: PM loop round 1
Session: session_01L6bhgUZrkMKgGrXXe8zPGq
Account: os-sales
Branch: claude/issue-35512-text-call-shapes
Worktree: objectstack-issue-35512
Domain: domain:spec
Seat: repo:objectstack#1
Area: b1-C
File surface: packages/spec/src/data/hook-refusal-codes.ts (TEXT_CALL / hookTextKeysAskedIn, the one reader both doors share), the pins in packages/spec/src/data/hook*.test.ts and packages/spec/src/ui/action*.test.ts (hook door hook.zod.ts:362, action door action.zod.ts:2682, read only), .changeset/
Container & model: S, mode:subagent, model: default — dispatch-gates --tier: Clause ② SUSPECT surface (packages/spec/src/**); the card narrows a save accept set, so it stays in this lane and owes an isolated CONTRACT_REVIEW_TIER L2 before the queue, effort: medium
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Responsibility: objectstack — the save door's literal text-key reader matches only ctx.text('k'), so ctx.text?.('k') and ctx.text!('k') with an undeclared key pass save | HookSchema.texts promises a save refusal for every literal ask | hook and action authors (often AI) under strict TypeScript once HookContext.text is optional (#35510)
Thread-read: 7009696782
Premise: holds — on origin/main 7d3b8d6TEXT_CALL (packages/spec/src/data/hook-refusal-codes.ts:437) requires text\s*\( right after ctx.text, so the ?.( and !( shapes never match; hookTextKeysAskedIn is read by both hook.zod.ts:362 and action.zod.ts:2682 (the action half shares the reader, so it is in scope)
Serial constraints cleared: none — no open PR or live claim names hook-refusal-codes.ts at claim time; overlap-check runs before push
Pre-claim lane: packages/spec/src/** → b1-C root
Pre-claim deps: none (source card #34575's PR #35510 is not a prerequisite: the reader is independent of whether HookContext.text is optional)
Prior rulings read: hook,texts,save,door,literal,text,check,misses,undeclared,passes → 146 hits; ADR-0150 D9, ADR-0158 Decision §8, ADR-0038 Decision §5, ADR-0060 D6, ADR-0061 D2, ADR-0069 D1, ADR-0077 Decision §1, ADR-0080 Decision §3, ADR-0080 Decision §5; thread: none; repo: objectstack-ai/objectstack
Fold answer: serial — no other b1-C card touches the text-key reader.
Claim released · 2026-11-19T21:39Z · claim 7022933757 withdrawn before any dispatch: no branch, no worktree, no commit.
The seat dispatched this card at 20:56Z to the #34575 card thread (area b1-A), because it is the same mechanism as #35197. That thread claims it after #35636 merges. Back to pm:queue.
Claim: PM loop round 3 (repo:objectstack#1 card thread, seat order 20:56Z: same mechanism as #35197; claimed after PR #35636 merged as c0716ed)
Session: session_01L6bhgX6mQpVU8yUysiRAFC
Thread session: session_01L6bhgX6mQpVU8yUysiRAFC
Account: os-sales
Branch: claude/project-thread-lryneu (platform exception: this card thread can push only its assigned branch; brought to main by a merge, no force push)
Worktree: objectstack-issue-35512
Domain: domain:spec
Seat: repo:objectstack#1
Area: b1-A
File surface: packages/spec/src/data/hook-refusal-codes.ts (TEXT_CALL / hookTextKeysAskedIn, the one reader both doors share), card-named pins beside packages/spec/src/data/hook*.test.ts and packages/spec/src/ui/action*.test.ts (hook door hook.zod.ts:362, action door action.zod.ts:2682), the HookSchema.texts / ActionSchema.texts TSDoc sentences on the literal-only save check (packages/spec/src/data/hook.zod.ts, packages/spec/src/ui/action.zod.ts: the accepted L1 nit on PR #35510, 7016103561), the spec generated artifacts the change makes stale (check:generated --fix), .changeset/**
Container & model: S, mode:thread, model: default — Clause ② SUSPECT surface (packages/spec/src/**); the card narrows a save accept set, so an isolated CONTRACT_REVIEW_TIER L2 is owed before the queue, effort: medium
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Responsibility: objectstack — the save door's literal text-key reader matches only ctx.text('k'), so ctx.text?.('k') and ctx.text!('k') with an undeclared key pass save | HookSchema.texts promises a save refusal for every literal ask | hook and action authors (often AI) under strict TypeScript once HookContext.text is optional (#35510, merged)
Thread-read: 7022960483
Premise: holds — on origin/main c0716edTEXT_CALL (packages/spec/src/data/hook-refusal-codes.ts:437) requires text\s*\( right after ctx.text, so the ?.( and !( shapes never match; hookTextKeysAskedIn is read by both hook.zod.ts:362 and action.zod.ts:2682, so the action half shares the reader and is in scope.
Pre-claim lane: packages/spec/src/**; card carries area:build, seat order puts it on area b1-A (this thread), superseding the released b1-C claim 7022933757.
Pre-claim deps: none (the reader is independent of HookContext.text being optional; #35510 is merged).
Prior rulings read: check-prior-rulings --card 35512 --paths packages/spec/src/data/hook-refusal-codes.ts: hook,texts,save,door,literal,text,check,misses,undeclared,passes → 146 hits; ADR-0150 D9, ADR-0158 Decision §8, ADR-0038 Decision §5, ADR-0060 D6, ADR-0061 D2, ADR-0069 D1, ADR-0077 Decision §1, ADR-0080 Decision §3, ADR-0080 Decision §5 named, none rules on this reader's call shapes; governing ruling for the refusal is #34374 6913660232 parameter 7 (a key asked for literally and not declared is refused at save; this card makes that hold on every literal call shape); thread: 0 rulings; repo: objectstack-ai/objectstack.
Fold answer: serial — #35636 (form rows) fails gate ① against this card (different defect shape and fix), answered to the seat 20:57Z; no other open card names the text-key reader. The accepted TSDoc nit from PR #35510's L1 rides here (same sentence family, prose).
Serial constraints cleared: overlap-check.mjs on a probe commit over hook-refusal-codes.ts, hook.zod.ts, action.zod.ts: origin/main c0716ed merges cleanly, 0 open PR heads share a file, VERDICT clean exit 0. No live claim names these paths (the b1-C claim 7022933757 was released).
{
"issue": 35512,
"status": "done",
"branch": "claude/project-thread-lryneu",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35686",
"session": "session_01L6bhgX6mQpVU8yUysiRAFC",
"premise_still_valid": true,
"summary": "TEXT_CALL (packages/spec/src/data/hook-refusal-codes.ts), the one literal key reader behind both the HookSchema and ActionSchema save doors (via hookTextKeysAskedIn), now also reads ctx.text?.('k') and ctx.text!('k'), awaited or not, with whitespace around the operator; a next-line '!' is not read (ASI ends the statement); ctx?.text( / ctx!.text( left out (ctx is never optional; card names two shapes). An undeclared key in those shapes is now refused at save with the unchanged undeclaredHookTextKeyAtSave / undeclaredActionTextKeyAtSave sentence (its ctx.text('k') echo names the call and still reads right, bytes unchanged). Rider done: TSDoc on HookSchema.texts, HookContext.text, ActionSchema.texts and the TEXT_CALL header name the new shapes (.describe() untouched). ADR-0087 registered semantic entry hook-action-text-key-optional-call-refused; changeset @objectstack/spec minor with BREAKING FROM/TO. Branch was recreated: origin/claude/project-thread-lryneu had been deleted after #35636 merged; the worktree started from the stale local tracking ref 5cddfca1, merged origin/main c0716ed4 (tree == origin/main, BASE 7a158d4b), and the first push recreated the branch.",
"tests": "Red-first: new pins on the unfixed reader -> 12 failed | 44 passed (8 lit + 4 hook dark reader asserts). Fixed: hook-texts.test.ts + action-texts.test.ts 57/57 passed. Ablation on committed fix via scripts/ablation-replace.mjs (anchor 'text(?:\\s*\\?\\.|[ \\t]*!)?\\s*\\(' -> 'text\\s*\\(', anchor x1->x0, blob b86ed8f7->c6826a6c): 13 failed | 44 passed; restore: blob == HEAD b86ed8f7, git diff HEAD empty (no dist leg: tests import src relatively). pnpm --filter @objectstack/spec test: Test Files 859 passed, Tests 27461 passed | 1 todo, exit 0; pnpm --filter @objectstack/spec typecheck exit 0 (both at 2a7c8c92 + the comment-only rewrap 269566b8 re-gated by check:docs/api-surface after rebuild). All at head 269566b8.",
"gates": "Local, head 269566b8: spec build VERDICT command-exit 0 (x2); spec check:generated exit 0 (14/14 up to date). dispatch-gates --commands --repo objectstack-ai/objectstack: 96 commands, all run, exit codes captured per command by redirect: 86 exit 0 first pass; 6 spec gates exit 3 PREREQUISITE NOT MET (dist predated a TSDoc rewrap) -> after rebuild exit 0: check:api-surface, check:browser-reachable-entries, check:dual-source-exports, check:entry-nameability, check:exported-any (+check:docs, check:authorable-surface 0); 4 exit 1/3 missing workspace builds -> after dogfood+cli closure build exit 0: cli migrate-meta-engine-guidance.test.ts (3/3), lint check:doc-formula-expressions, check:lean-entry-closure, check:dual-build-cjs-loads; NOT MEASURED: check-plugin-teardown-shape.mjs --self-test exit 3 (shallow clone cannot reach its battery; CI). check-adr-0087-registration --base origin/main 0 (registered hook-action-text-key-optional-call-refused), check-changeset-no-major 0, check-empty-changeset 0, check:nul-bytes 0, check:doc-authoring 0. --ran reconciliation: 96 derived, 96 run, 0 UNRUN, exit 0. overlap-check --branch=HEAD VERDICT clean exit 0 (vs origin/main 03865ae9). CI check-runs: in_progress at report time (PR just opened; not awaited per os-dev.md).",
"dogfood_battery": "269566b8 · os-verify-lock VERDICT command-exit 0 (held 27m56s) after closure build '@objectstack/dogfood^...' VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (repository_dispatch POST /repos/objectstack-ai/objectstack/dispatches -> run 44634773621 -> POST /repos/objectstack-ai/objectstack/pulls, #35686, assignees os-sales); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/35512/comments (os-dev-report). Plus git push x3 (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — ctx?.text( and ctx!.text( shapes stay run-time-only refusals (ctx is a non-optional bound parameter; no producer measured); recorded in PR Acceptance notes"
],
"deviations": [
"Clause-② written as 'no (narrowing)', not the claim's 'yes (narrowing)': measured per scripts/pm/clause2-line.mjs (value answers 'does this widen the accept set or public surface') and check-adr-0087-registration's own fixture ('the narrowing arm beside a yes value — a diff that widens AND narrows'); this diff only narrows. Per dispatch, the measured answer is used; Metadata-protocol: narrowed kept.",
"PR title carries no '!' (no gate requires it; the narrowing arm + BREAKING section carry the breaking signal; dogfood ran anyway).",
"Remote branch had been deleted after #35636 merged; recreated by the first plain push (no force)."
],
"line_budget": "131 changed lines (+120/-11, 7 files) vs 3000 threshold; no skills/** touched",
"files_changed": [
"/home/user/objectstack-issue-35512/packages/spec/src/data/hook-refusal-codes.ts",
"/home/user/objectstack-issue-35512/packages/spec/src/data/hook.zod.ts",
"/home/user/objectstack-issue-35512/packages/spec/src/ui/action.zod.ts",
"/home/user/objectstack-issue-35512/packages/spec/src/data/hook-texts.test.ts",
"/home/user/objectstack-issue-35512/packages/spec/src/ui/action-texts.test.ts",
"/home/user/objectstack-issue-35512/packages/spec/src/migrations/entries/semantic/18.hook-action-text-key-optional-call-refused.ts",
"/home/user/objectstack-issue-35512/.changeset/35512-text-call-shapes.md"
]
}
Claim correction (2026-11-20T00:02Z) to claim 7023306761: its Clause-②: yes (narrowing) line is wrong. This card only narrows a save accept set and widens nothing, so the line is:
Clause-②: no (narrowing)
(scripts/pm/clause2-line.mjs: yes (narrowing) is the arm for a diff that widens one surface and narrows another.) Measured by the dev on PR #35686, accepted by L1-a (7025435232) and the L2 record (7025732554). Metadata-protocol: narrowed stands. Follow-up filed from the review: #35698.
os-dev-report addendum — patch round 1 (2026-11-20T00:50Z), head 0acd17d22771e033de2fe8233b64433119c187ff (one commit on 269566b8). Posted by the card thread: the dev's session was lost to a container restart after it pushed, before it reported.
S1 (L2 record 7025732554): the non-null ctx.text!( arm is dropped from TEXT_CALL; the reader reads ctx.text( and ctx.text?.( (whitespace or a line break around ?.). The header comment says why ! is not read (TypeScript only: a handler's ! is erased before Function.prototype.toString(), a js body holding it never compiles). The ADR-0087 entry, the changeset FROM/TO and the TSDoc no longer teach ctx.text!( as a legal call. Pins: the ! rows are removed; a reader pin documents that ctx.text!('a_key') is not read; a handler-path pin refuses async (ctx) => { await ctx.text?.('follow_up_title') } at handler (an action has no handler path).
N1: the BREAKING banner names the hook half only; action texts is unreleased, so no released action is affected.
N3: the two internal docblocks beside the doors name ?.(.
Docs:content/docs/automation/hooks.mdx ~499 names ctx.text?.('key') on the save side.
PR body: updated by the thread to match (shape decisions, pins, Skills-docs line, review order; the card's !( ask is moot, with the reason).
Not re-measured locally (the dev's run was lost): CI on 0acd17d2 is the evidence — 60 success, 10 skipped, 0 red, mergeable clean.
Delivered (2026-11-20T02:23Z): PR #35686 merged as 5d2ce34f88a0d3440386b381bd678a25cd59f7a4. Both save doors (HookSchema and ActionSchema, through hookTextKeysAskedIn) now read ctx.text?.('key'), awaited or not, as a literal text-key ask, so an undeclared key asked for that way is refused at save with the existing sentence. The card's second shape, non-null ctx.text!('key'), was deliberately not added (L2 S1): it is TypeScript-only, erased before a handler is read and a syntax error in a js body, so a pin documents why. @objectstack/spec minor, Clause-②: no (narrowing), ADR-0087 entry hook-action-text-key-optional-call-refused, BREAKING for the hook half. L1 ACCEPT 7025435232 + delta 7026874816; L2 PASS 7027208368 (adopted 7027222735); dogfood battery green on the final head (report 7027786573). Residue label pm:dispatched removed in this stroke. Follow-up: #35698 (L2 N2).
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
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:spec·pm:queue; rationale: area:build · Bug · Impeded (the save door refuses an undeclared text key only forctx.text('k');ctx.text?.('k')andctx.text!('k')pass save and fail only when the hook runs, against theHookSchema.textspromise) · builders, often (strict TypeScript reaches for?.(once PR #35510 makestextoptional) · measured by the #34575 dev → p2 as suggested.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq
Claim: PM loop round 1
Session:
session_01L6bhgUZrkMKgGrXXe8zPGqAccount:
os-salesBranch:
claude/issue-35512-text-call-shapesWorktree:
objectstack-issue-35512Domain:
domain:specSeat:
repo:objectstack#1Area: b1-C
File surface:
packages/spec/src/data/hook-refusal-codes.ts(TEXT_CALL/hookTextKeysAskedIn, the one reader both doors share), the pins inpackages/spec/src/data/hook*.test.tsandpackages/spec/src/ui/action*.test.ts(hook doorhook.zod.ts:362, action dooraction.zod.ts:2682, read only),.changeset/Container & model:
S,mode:subagent,model: default — dispatch-gates --tier: Clause ② SUSPECT surface (packages/spec/src/**); the card narrows a save accept set, so it stays in this lane and owes an isolated CONTRACT_REVIEW_TIER L2 before the queue,effort: mediumClause-②: yes (narrowing)
Metadata-protocol: narrowed
Responsibility:
objectstack — the save door's literal text-key reader matches only ctx.text('k'), so ctx.text?.('k') and ctx.text!('k') with an undeclared key pass save | HookSchema.texts promises a save refusal for every literal ask | hook and action authors (often AI) under strict TypeScript once HookContext.text is optional (#35510)Thread-read: 7009696782
Premise: holds — on origin/main 7d3b8d6
TEXT_CALL(packages/spec/src/data/hook-refusal-codes.ts:437) requirestext\s*\(right afterctx.text, so the?.(and!(shapes never match;hookTextKeysAskedInis read by bothhook.zod.ts:362andaction.zod.ts:2682(the action half shares the reader, so it is in scope)Serial constraints cleared: none — no open PR or live claim names
hook-refusal-codes.tsat claim time; overlap-check runs before pushPre-claim lane:
packages/spec/src/**→ b1-C rootPre-claim deps: none (source card #34575's PR #35510 is not a prerequisite: the reader is independent of whether
HookContext.textis optional)Prior rulings read: hook,texts,save,door,literal,text,check,misses,undeclared,passes → 146 hits; ADR-0150 D9, ADR-0158 Decision §8, ADR-0038 Decision §5, ADR-0060 D6, ADR-0061 D2, ADR-0069 D1, ADR-0077 Decision §1, ADR-0080 Decision §3, ADR-0080 Decision §5; thread: none; repo: objectstack-ai/objectstack
Fold answer: serial — no other b1-C card touches the text-key reader.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUZrkMKgGrXXe8zPGq
Claim released · 2026-11-19T21:39Z · claim 7022933757 withdrawn before any dispatch: no branch, no worktree, no commit.
The seat dispatched this card at 20:56Z to the #34575 card thread (area b1-A), because it is the same mechanism as #35197. That thread claims it after #35636 merges. Back to
pm:queue.Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC
Claim: PM loop round 3 (repo:objectstack#1 card thread, seat order 20:56Z: same mechanism as #35197; claimed after PR #35636 merged as c0716ed)
Session:
session_01L6bhgX6mQpVU8yUysiRAFCThread session:
session_01L6bhgX6mQpVU8yUysiRAFCAccount:
os-salesBranch:
claude/project-thread-lryneu(platform exception: this card thread can push only its assigned branch; brought to main by a merge, no force push)Worktree:
objectstack-issue-35512Domain:
domain:specSeat:
repo:objectstack#1Area:
b1-AFile surface:
packages/spec/src/data/hook-refusal-codes.ts(TEXT_CALL/hookTextKeysAskedIn, the one reader both doors share), card-named pins besidepackages/spec/src/data/hook*.test.tsandpackages/spec/src/ui/action*.test.ts(hook doorhook.zod.ts:362, action dooraction.zod.ts:2682), theHookSchema.texts/ActionSchema.textsTSDoc sentences on the literal-only save check (packages/spec/src/data/hook.zod.ts,packages/spec/src/ui/action.zod.ts: the accepted L1 nit on PR #35510, 7016103561), the spec generated artifacts the change makes stale (check:generated --fix),.changeset/**Container & model:
S,mode:thread,model: default — Clause ② SUSPECT surface (packages/spec/src/**); the card narrows a save accept set, so an isolated CONTRACT_REVIEW_TIER L2 is owed before the queue,effort: mediumClause-②: yes (narrowing)
Metadata-protocol: narrowed
Responsibility:
objectstack — the save door's literal text-key reader matches only ctx.text('k'), so ctx.text?.('k') and ctx.text!('k') with an undeclared key pass save | HookSchema.texts promises a save refusal for every literal ask | hook and action authors (often AI) under strict TypeScript once HookContext.text is optional (#35510, merged)Thread-read: 7022960483
Premise: holds — on origin/main c0716ed
TEXT_CALL(packages/spec/src/data/hook-refusal-codes.ts:437) requirestext\s*\(right afterctx.text, so the?.(and!(shapes never match;hookTextKeysAskedInis read by bothhook.zod.ts:362andaction.zod.ts:2682, so the action half shares the reader and is in scope.Pre-claim lane:
packages/spec/src/**; card carriesarea:build, seat order puts it on area b1-A (this thread), superseding the released b1-C claim 7022933757.Pre-claim deps: none (the reader is independent of
HookContext.textbeing optional; #35510 is merged).Prior rulings read:
check-prior-rulings --card 35512 --paths packages/spec/src/data/hook-refusal-codes.ts: hook,texts,save,door,literal,text,check,misses,undeclared,passes → 146 hits; ADR-0150 D9, ADR-0158 Decision §8, ADR-0038 Decision §5, ADR-0060 D6, ADR-0061 D2, ADR-0069 D1, ADR-0077 Decision §1, ADR-0080 Decision §3, ADR-0080 Decision §5 named, none rules on this reader's call shapes; governing ruling for the refusal is #34374 6913660232 parameter 7 (a key asked for literally and not declared is refused at save; this card makes that hold on every literal call shape); thread: 0 rulings; repo: objectstack-ai/objectstack.Fold answer: serial — #35636 (form rows) fails gate ① against this card (different defect shape and fix), answered to the seat 20:57Z; no other open card names the text-key reader. The accepted TSDoc nit from PR #35510's L1 rides here (same sentence family, prose).
Serial constraints cleared:
overlap-check.mjson a probe commit overhook-refusal-codes.ts,hook.zod.ts,action.zod.ts: origin/main c0716ed merges cleanly, 0 open PR heads share a file,VERDICT clean exit 0. No live claim names these paths (the b1-C claim 7022933757 was released).Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC
os-dev-report
{ "issue": 35512, "status": "done", "branch": "claude/project-thread-lryneu", "pr": "https://github.com/objectstack-ai/objectstack/pull/35686", "session": "session_01L6bhgX6mQpVU8yUysiRAFC", "premise_still_valid": true, "summary": "TEXT_CALL (packages/spec/src/data/hook-refusal-codes.ts), the one literal key reader behind both the HookSchema and ActionSchema save doors (via hookTextKeysAskedIn), now also reads ctx.text?.('k') and ctx.text!('k'), awaited or not, with whitespace around the operator; a next-line '!' is not read (ASI ends the statement); ctx?.text( / ctx!.text( left out (ctx is never optional; card names two shapes). An undeclared key in those shapes is now refused at save with the unchanged undeclaredHookTextKeyAtSave / undeclaredActionTextKeyAtSave sentence (its ctx.text('k') echo names the call and still reads right, bytes unchanged). Rider done: TSDoc on HookSchema.texts, HookContext.text, ActionSchema.texts and the TEXT_CALL header name the new shapes (.describe() untouched). ADR-0087 registered semantic entry hook-action-text-key-optional-call-refused; changeset @objectstack/spec minor with BREAKING FROM/TO. Branch was recreated: origin/claude/project-thread-lryneu had been deleted after #35636 merged; the worktree started from the stale local tracking ref 5cddfca1, merged origin/main c0716ed4 (tree == origin/main, BASE 7a158d4b), and the first push recreated the branch.", "tests": "Red-first: new pins on the unfixed reader -> 12 failed | 44 passed (8 lit + 4 hook dark reader asserts). Fixed: hook-texts.test.ts + action-texts.test.ts 57/57 passed. Ablation on committed fix via scripts/ablation-replace.mjs (anchor 'text(?:\\s*\\?\\.|[ \\t]*!)?\\s*\\(' -> 'text\\s*\\(', anchor x1->x0, blob b86ed8f7->c6826a6c): 13 failed | 44 passed; restore: blob == HEAD b86ed8f7, git diff HEAD empty (no dist leg: tests import src relatively). pnpm --filter @objectstack/spec test: Test Files 859 passed, Tests 27461 passed | 1 todo, exit 0; pnpm --filter @objectstack/spec typecheck exit 0 (both at 2a7c8c92 + the comment-only rewrap 269566b8 re-gated by check:docs/api-surface after rebuild). All at head 269566b8.", "gates": "Local, head 269566b8: spec build VERDICT command-exit 0 (x2); spec check:generated exit 0 (14/14 up to date). dispatch-gates --commands --repo objectstack-ai/objectstack: 96 commands, all run, exit codes captured per command by redirect: 86 exit 0 first pass; 6 spec gates exit 3 PREREQUISITE NOT MET (dist predated a TSDoc rewrap) -> after rebuild exit 0: check:api-surface, check:browser-reachable-entries, check:dual-source-exports, check:entry-nameability, check:exported-any (+check:docs, check:authorable-surface 0); 4 exit 1/3 missing workspace builds -> after dogfood+cli closure build exit 0: cli migrate-meta-engine-guidance.test.ts (3/3), lint check:doc-formula-expressions, check:lean-entry-closure, check:dual-build-cjs-loads; NOT MEASURED: check-plugin-teardown-shape.mjs --self-test exit 3 (shallow clone cannot reach its battery; CI). check-adr-0087-registration --base origin/main 0 (registered hook-action-text-key-optional-call-refused), check-changeset-no-major 0, check-empty-changeset 0, check:nul-bytes 0, check:doc-authoring 0. --ran reconciliation: 96 derived, 96 run, 0 UNRUN, exit 0. overlap-check --branch=HEAD VERDICT clean exit 0 (vs origin/main 03865ae9). CI check-runs: in_progress at report time (PR just opened; not awaited per os-dev.md).", "dogfood_battery": "269566b8 · os-verify-lock VERDICT command-exit 0 (held 27m56s) after closure build '@objectstack/dogfood^...' VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures", "mcp_calls": "0", "api_writes": "2 — relay pr_create (repository_dispatch POST /repos/objectstack-ai/objectstack/dispatches -> run 44634773621 -> POST /repos/objectstack-ai/objectstack/pulls, #35686, assignees os-sales); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/35512/comments (os-dev-report). Plus git push x3 (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — ctx?.text( and ctx!.text( shapes stay run-time-only refusals (ctx is a non-optional bound parameter; no producer measured); recorded in PR Acceptance notes" ], "deviations": [ "Clause-② written as 'no (narrowing)', not the claim's 'yes (narrowing)': measured per scripts/pm/clause2-line.mjs (value answers 'does this widen the accept set or public surface') and check-adr-0087-registration's own fixture ('the narrowing arm beside a yes value — a diff that widens AND narrows'); this diff only narrows. Per dispatch, the measured answer is used; Metadata-protocol: narrowed kept.", "PR title carries no '!' (no gate requires it; the narrowing arm + BREAKING section carry the breaking signal; dogfood ran anyway).", "Remote branch had been deleted after #35636 merged; recreated by the first plain push (no force)." ], "line_budget": "131 changed lines (+120/-11, 7 files) vs 3000 threshold; no skills/** touched", "files_changed": [ "/home/user/objectstack-issue-35512/packages/spec/src/data/hook-refusal-codes.ts", "/home/user/objectstack-issue-35512/packages/spec/src/data/hook.zod.ts", "/home/user/objectstack-issue-35512/packages/spec/src/ui/action.zod.ts", "/home/user/objectstack-issue-35512/packages/spec/src/data/hook-texts.test.ts", "/home/user/objectstack-issue-35512/packages/spec/src/ui/action-texts.test.ts", "/home/user/objectstack-issue-35512/packages/spec/src/migrations/entries/semantic/18.hook-action-text-key-optional-call-refused.ts", "/home/user/objectstack-issue-35512/.changeset/35512-text-call-shapes.md" ] }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC
Claim correction (2026-11-20T00:02Z) to claim 7023306761: its
Clause-②: yes (narrowing)line is wrong. This card only narrows a save accept set and widens nothing, so the line is:Clause-②: no (narrowing)
(
scripts/pm/clause2-line.mjs:yes (narrowing)is the arm for a diff that widens one surface and narrows another.) Measured by the dev on PR #35686, accepted by L1-a (7025435232) and the L2 record (7025732554).Metadata-protocol: narrowedstands. Follow-up filed from the review: #35698.Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC
os-dev-report addendum — patch round 1 (2026-11-20T00:50Z), head
0acd17d22771e033de2fe8233b64433119c187ff(one commit on269566b8). Posted by the card thread: the dev's session was lost to a container restart after it pushed, before it reported.ctx.text!(arm is dropped fromTEXT_CALL; the reader readsctx.text(andctx.text?.((whitespace or a line break around?.). The header comment says why!is not read (TypeScript only: a handler's!is erased beforeFunction.prototype.toString(), ajsbody holding it never compiles). The ADR-0087 entry, the changeset FROM/TO and the TSDoc no longer teachctx.text!(as a legal call. Pins: the!rows are removed; a reader pin documents thatctx.text!('a_key')is not read; ahandler-path pin refusesasync (ctx) => { await ctx.text?.('follow_up_title') }athandler(an action has no handler path).textsis unreleased, so no released action is affected.?.(.content/docs/automation/hooks.mdx~499 namesctx.text?.('key')on the save side.!(ask is moot, with the reason).0acd17d2is the evidence — 60 success, 10 skipped, 0 red, mergeable clean.Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC
os-dev-report
{ "issue": 35512, "status": "done", "branch": "claude/project-thread-lryneu", "pr": "https://github.com/objectstack-ai/objectstack/pull/35686", "session": "session_01L6bhgX6mQpVU8yUysiRAFC", "premise_still_valid": true, "summary": "Final-head report for PR #35686 at 0acd17d2 (patch round 1 on 269566b8: the non-null ctx.text!( arm removed per L2 S1; TEXT_CALL reads the plain call and ctx.text?.( only). Posted by the card thread to carry the os-dev.md Definition-of-done dogfood battery on the final head, which the --land gate reads; supersedes report 7024765229 for that field.", "tests": "Head 0acd17d2: hook-texts.test.ts + action-texts.test.ts 51/51 passed. Ablation (optional-call arm text(?:\\s*\\?\\.)?\\s*\\( -> text\\s*\\(, one occurrence): 8 failed | 43 passed; restore proved by empty git diff HEAD.", "dogfood_battery": "0acd17d22771e033de2fe8233b64433119c187ff · os-verify-lock VERDICT command-exit 0 (held 29m33s) after closure build '@objectstack/dogfood^...' VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures" }Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgX6mQpVU8yUysiRAFC
Delivered (2026-11-20T02:23Z): PR #35686 merged as
5d2ce34f88a0d3440386b381bd678a25cd59f7a4. Both save doors (HookSchemaandActionSchema, throughhookTextKeysAskedIn) now readctx.text?.('key'), awaited or not, as a literal text-key ask, so an undeclared key asked for that way is refused at save with the existing sentence. The card's second shape, non-nullctx.text!('key'), was deliberately not added (L2 S1): it is TypeScript-only, erased before a handler is read and a syntax error in ajsbody, so a pin documents why.@objectstack/specminor,Clause-②: no (narrowing), ADR-0087 entryhook-action-text-key-optional-call-refused, BREAKING for the hook half. L1 ACCEPT 7025435232 + delta 7026874816; L2 PASS 7027208368 (adopted 7027222735); dogfood battery green on the final head (report 7027786573). Residue labelpm:dispatchedremoved in this stroke. Follow-up: #35698 (L2 N2).Generated by Claude Code