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
object_extension door: the gate's served snapshot carries a sibling package's extension field with no priority, so the door's formula-cycle verdict differs from os build on ties and outranked entries #33494
Follow-up of #33153 (PR #33442), contract review round 2, record 6885259034 finding 1 and its observation. Class a, door/build disagreement.
What happens: at the object_extension publish door the gate folds the written entry over the target as served (#33072's snapshot). In that snapshot a field another package's published extension adds is a plain field with no priority, so the fold cannot see a tie or a higher-priority sibling. os build folds every entry by priority and serves the winner.
Three shapes, each needing two packages that add one field name plus a formula cycle:
Tie (both at priority 200, the written entry cyclic): the door refuses; the build drops the tied name and reports nothing.
Outranked (sibling 300, written entry 200 and cyclic): the registry serves the sibling's definition and the build reports nothing; the door refuses.
(1) and (2) refuse where the build accepts; (3) accepts where the build refuses. PR #33442 states the door's reading in its semantic entry and changeset and pins (1)/(2) as the door's current verdict, so a fix here moves those pins.
TO: the door's snapshot keeps each extension field's package and priority (or the gate folds stored entries by priority itself), so the door serves the same winner the build does; then the formula-cycle report (and any other as-served check on this door) agrees with the build in all three shapes. Update PR #33442's entry text and pins accordingly. If this needs a spec change to the snapshot shape, say so on the card first.
Clause-②: (1)/(2) widen at the door, (3) narrows at the door; declare per the fix. Lane spec (metadata-protocol gate + lint), Grade p3 (two-package name collisions with a formula cycle; rare).
"a field two packages add at the same priority" in the entry, docs and call-site comment is short for "at the priority that decides it" (a third package at a higher priority means no tie). Tighten it when this card rewrites those lines.
Claim: PM loop round 1 · 2026-11-15T03:25Z
Session: session_01FEkQ5mswnWm181XgYcCUag (seat); card thread session_01FEkQ5pZiFTTaXqbY34YRcV is the dev
Account: os-project-manager
Branch: claude/project-thread-jn4a36 (the card thread's designated branch; the platform lets a thread push only that branch, so not claude/issue-33494-*)
Worktree: objectstack-issue-33494
Domain: domain:spec
Seat: domain:spec#1
File surface: packages/lint/src/validate-expressions.ts (door fold / formula walk only, not the gate-setup region ~:2378), packages/lint/src/object-graph.ts if the fold is shared from there, packages/lint/src/runtime-gate.ts / authoring-rules.ts if the door snapshot is built there, the runtime door's snapshot builder in packages/runtime/src/domains/ if measured there, tests, the #33442 semantic entry (or a new one), content/docs/deployment/validating-metadata.mdx, root .changeset/ (stop on breach; a packages/spec schema change stops for a decision first)
Container & model: M, mode:thread, model: default tier, effort: default
Clause-②: no — expected: shape 3 narrows at the door, shapes 1/2 widen; the PR declares the final reading
Metadata-protocol: narrowed (expected, shape 3; the PR declares the final reading)
Responsibility: n/a — door/build disagreement found by PR #33442's contract review (record 6885259034 finding 1)
Thread-read: 6886038545
Premise: PR #33442 merged; the door folds the written entry over the target as served (#33072 snapshot) where sibling extension fields carry no priority, while os build folds by priority (objectExtensionsByTarget). Taken under 「开放 p3卡认领」 (Leehom, 2026-11-14; Ruling-ref). Order: /mnt/project-files/pm-orders/spec/order-33494.md (project share).
Serial constraints cleared: no Blocked-by; PR #33434 (#33246) shares validate-expressions.ts in a different region, second lander merges main.
Ruling: the surface addspackages/metadata-protocol/src/protocol-authoring-gate.ts, packages/metadata-protocol/src/runtime-authoring-gate.ts and their tests, plus an @objectstack/metadata-protocol changeset at the level its published change needs. The packages/runtime/src/domains/ line of the claim is dropped. The new gate input is optional and additive. Disabled packages' extensions are left out, as the build leaves them out. The fold is the build's own (objectExtensionsByTarget / objectsAsServed, ties dropped); ⛔ no second fold.
domain:spec#1 · os-project-manager · session_01FEkQ5pZiFTTaXqbY34YRcV
os-dev-report
{
"issue": 33494,
"status": "done",
"branch": "claude/project-thread-jn4a36",
"pr": "#33702",
"head": "763105ec",
"session": "session_01FEkQ5pZiFTTaXqbY34YRcV",
"premise_still_valid": true,
"summary": "The object_extension publish door now folds the written entry among the target's other packages' published extensions by priority, through the build's own fold (objectExtensionsByTarget / objectsAsServed take an optional stored list; ties dropped; stored entries folded in but never judged or located). The host (metadata-protocol judgeRuntimeAuthoringRules, new otherPackagesExtensionsOf over registry.getObjectContributors, disabled packages left out) states that list as an optional gate input threaded through evaluateRuntimeAuthoringGate -> runRuntimeAuthoringRules -> AuthoringRuleContext -> runStackExpressionPasses. Shapes 1/2 (tie, outranked) no longer refused at the door, shape 3 (higher sibling's cycle through another field of the entry) now refused on that field; os build unchanged. No packages/spec schema change; the unreleased semantic entry 18, the docs paragraph and the call-site comment now say 'at the priority that decides it', and a new changeset corrects the 33153 changeset's Now clause and Unchanged sentence by quotation (that file not edited).",
"tests": "lint runtime-gate.object-formula-cycle.test.ts 20/20 (new #33494 describe, 5 cases; the #33153 tie/outranked pin replaced). Red at base: head tests over base lint sources (git restore --source=41b64bb0, 6 files) 2/20 red (shapes 1/2, shape 3 LIT); restored, git diff HEAD empty. Ablations via ablation-replace.mjs on e681d49, each restore 'blob == HEAD and git diff HEAD is empty': A1 fill-back skip dropped 1/20 red (tied-name case); A2 stored loci (globalThis marker) 1/20 red (shape 3); first A2 attempt a no-op (replacement contained anchor), refused by the tool and rerun; A3 top fold without stored list 2/20 red. R1 through dist: registry replaced by globalThis.__ablationR1 in judgeRuntimeAuthoringRules, metadata-protocol rebuilt, ablation-dist-preflight found marker, runtime meta-object-extension-item -t 33494 3 red (tie, outranked, shape 3), CONTROL green; restore leg rebuilt, --absent clean, 4/4 green (a first R1 attempt was also a no-op and is not counted). Round 2 on 763105e after whole-repo build: lint pnpm test 210/210 files 8998/8998; lint typecheck exit 0; metadata-protocol pnpm test 340 passed 9 skipped files, 22883 passed 43 skipped; metadata-protocol + runtime typecheck exit 0; runtime meta-object-extension-item.test.ts 50/50; spec src/migrations 198/198 (round 0).",
"gates": "dispatch-gates --commands at 763105e: 114 lines, all run after a whole-repo build of 763105e, exit codes captured before any pipe, 114/114 exit 0; --ran: 114 derived, 114 run, 0 NOT-MEASURED, 0 UNRUN. Record pm-orders/spec/33494-gates-ran.txt (project share). Round 0 at 78ad84f: 112/114, two reds fixed and rerun green: check-adr-0087-registration (marker now not-required (already-registered object-extension-formula-cycle-refused), commit dd37779) and check-plugin-teardown-shape --self-test exit 3 (shallow clone; fetched fixture 621a487). Record 33494-gates-ran-r0.txt. CI check-runs on the PR: in_progress at report time.",
"dogfood_battery": "763105ec · os-verify-lock VERDICT command-exit 0 (34m31s) · Test Files 467 passed 3 skipped (470) · Tests 3958 passed 42 skipped (4000) · no failures. Round 0 on dd37779 also green (467/470 files, 3953 passed 42 skipped).",
"mcp_calls": "0 — no MCP GitHub calls; reads through gh api (card, comments, PRs #33442/#33434)",
"api_writes": "2 — relay dispatch pr_create (fw-20261115T064927Z-3f3d9e, run 43687180439, PR #33702, no labels, no assignees) and this os-dev-report comment via post-stamped. git push x4 (not REST).",
"files_changed": [
".changeset/33494-extension-door-priority-fold.md",
"content/docs/deployment/validating-metadata.mdx",
"packages/lint/src/authoring-rules.ts",
"packages/lint/src/formula-cycle-issues.ts",
"packages/lint/src/object-graph.ts",
"packages/lint/src/runtime-gate.object-formula-cycle.test.ts",
"packages/lint/src/runtime-gate.ts",
"packages/lint/src/runtime.ts",
"packages/lint/src/validate-expressions.test.ts",
"packages/lint/src/validate-expressions.ts",
"packages/lint/src/validate-security-posture.test.ts",
"packages/metadata-protocol/src/protocol-authoring-gate.extension-write-fold.test.ts",
"packages/metadata-protocol/src/protocol-authoring-gate.ts",
"packages/metadata-protocol/src/runtime-authoring-gate.ts",
"packages/runtime/src/domains/meta-object-extension-item.test.ts",
"packages/spec/src/migrations/entries/semantic/18.object-extension-formula-cycle-refused.ts"
],
"deviations": [
"File surface: metadata-protocol gate files added by the seat's amendment 6888588670. packages/runtime/src/domains/meta-object-extension-item.test.ts is edited (a test, new describe [#33494], real-door pins); the amendment dropped the runtime/domains source line, read here as the snapshot-builder line, not tests.",
"Two lint meta-test files (validate-expressions.test.ts, validate-security-posture.test.ts) table the new plumbing receivers storedNames / stored; required by the #5017 receiver scans.",
"validate-expressions.ts ~:2391 (objectsAsServed call) edited, as the seat's amendment allowed; PR #33434 then landed and origin/main merged clean (763105e).",
"os-dev.md rule 2 says pr_create carries assignees; the order and AGENTS.md say none: sent none."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in the PR's Acceptance notes, not filed: a tied field name the target's owner also declares is filled back from the authored object in the build but absent at the door (the door carries the served target, not its base layer); needs an owner field re-declared by two packages at the deciding priority plus a formula cycle through it."
]
}
Activity
objectstack-fleet commentedon Nov 14, 2026
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag
Seat: text to carry when this card lands · 2026-11-14T23:40Z
⛔ Not a claim. From PR #33442's round-3 contract review (record 6886026528), nits 1 and 2, accepted there:
.changesetof PR fix(lint)!: os build and the object_extension publish door refuse a formula cycle an object extension adds #33442 (Nowparagraph) says "(at the door, a name the target already serves included: the written definition is the one served)". That is untrue when a sibling outranks the written entry; the fix here makes it true or the text goes.objectstack-fleet commentedon Nov 15, 2026
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag
Claim: PM loop round 1 · 2026-11-15T03:25Z
Session:
session_01FEkQ5mswnWm181XgYcCUag(seat); card threadsession_01FEkQ5pZiFTTaXqbY34YRcVis the devAccount:
os-project-managerBranch:
claude/project-thread-jn4a36(the card thread's designated branch; the platform lets a thread push only that branch, so notclaude/issue-33494-*)Worktree:
objectstack-issue-33494Domain:
domain:specSeat:
domain:spec#1File surface:
packages/lint/src/validate-expressions.ts(door fold / formula walk only, not the gate-setup region ~:2378),packages/lint/src/object-graph.tsif the fold is shared from there,packages/lint/src/runtime-gate.ts/authoring-rules.tsif the door snapshot is built there, the runtime door's snapshot builder inpackages/runtime/src/domains/if measured there, tests, the #33442 semantic entry (or a new one),content/docs/deployment/validating-metadata.mdx, root.changeset/(stop on breach; apackages/specschema change stops for a decision first)Container & model:
M,mode:thread,model: default tier,effort: defaultClause-②: no — expected: shape 3 narrows at the door, shapes 1/2 widen; the PR declares the final reading
Metadata-protocol: narrowed (expected, shape 3; the PR declares the final reading)
Responsibility: n/a — door/build disagreement found by PR #33442's contract review (record 6885259034 finding 1)
Thread-read: 6886038545
Premise: PR #33442 merged; the door folds the written entry over the target as served (#33072 snapshot) where sibling extension fields carry no priority, while
os buildfolds by priority (objectExtensionsByTarget). Taken under 「开放 p3卡认领」 (Leehom, 2026-11-14; Ruling-ref). Order:/mnt/project-files/pm-orders/spec/order-33494.md(project share).Serial constraints cleared: no
Blocked-by; PR #33434 (#33246) sharesvalidate-expressions.tsin a different region, second lander merges main.objectstack-fleet commentedon Nov 15, 2026
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag
Seat: surface amendment on the claim (6888533455) · 2026-11-15T03:30Z
⛔ Not a new claim. Answers the dev's measurement on
origin/main1cf2a5a9.object_extensiondoor's snapshot is built inpackages/metadata-protocol/src/protocol-authoring-gate.ts(judgeRuntimeAuthoringRules,objectExtensionWriteFold, lint: the object_extension publish door runs no field-formula judgment, so a computed field os build refuses still publishes through PUT /meta/object_extension #33072), not inpackages/runtime/src/domains/. The registry already holds each sibling extension with its package and priority (getObjectContributors), so nopackages/specschema change is needed.packages/metadata-protocol/src/protocol-authoring-gate.ts,packages/metadata-protocol/src/runtime-authoring-gate.tsand their tests, plus an@objectstack/metadata-protocolchangeset at the level its published change needs. Thepackages/runtime/src/domains/line of the claim is dropped. The new gate input is optional and additive. Disabled packages' extensions are left out, as the build leaves them out. The fold is the build's own (objectExtensionsByTarget/objectsAsServed, ties dropped); ⛔ no second fold.validate-expressions.ts~:2391 (objectsAsServed(stack)gains the stored list): edit it now. It sits between PR fix(lint): the flow and hook publish doors stop requiring a null guard on the current row's created_at and updated_at in an ordering comparison #33434's two hunks without touching them; whichever PR lands second mergesorigin/main(no rebase) and resolves any textual conflict there.Clause-②/Metadata-protocolas the PR declares them,Fixes #33494.objectstack-fleet commentedon Nov 15, 2026
domain:spec#1 · os-project-manager · session_01FEkQ5pZiFTTaXqbY34YRcV
os-dev-report
{
"issue": 33494,
"status": "done",
"branch": "claude/project-thread-jn4a36",
"pr": "#33702",
"head": "763105ec",
"session": "session_01FEkQ5pZiFTTaXqbY34YRcV",
"premise_still_valid": true,
"summary": "The object_extension publish door now folds the written entry among the target's other packages' published extensions by priority, through the build's own fold (objectExtensionsByTarget / objectsAsServed take an optional stored list; ties dropped; stored entries folded in but never judged or located). The host (metadata-protocol judgeRuntimeAuthoringRules, new otherPackagesExtensionsOf over registry.getObjectContributors, disabled packages left out) states that list as an optional gate input threaded through evaluateRuntimeAuthoringGate -> runRuntimeAuthoringRules -> AuthoringRuleContext -> runStackExpressionPasses. Shapes 1/2 (tie, outranked) no longer refused at the door, shape 3 (higher sibling's cycle through another field of the entry) now refused on that field; os build unchanged. No packages/spec schema change; the unreleased semantic entry 18, the docs paragraph and the call-site comment now say 'at the priority that decides it', and a new changeset corrects the 33153 changeset's Now clause and Unchanged sentence by quotation (that file not edited).",
"tests": "lint runtime-gate.object-formula-cycle.test.ts 20/20 (new #33494 describe, 5 cases; the #33153 tie/outranked pin replaced). Red at base: head tests over base lint sources (git restore --source=41b64bb0, 6 files) 2/20 red (shapes 1/2, shape 3 LIT); restored, git diff HEAD empty. Ablations via ablation-replace.mjs on e681d49, each restore 'blob == HEAD and git diff HEAD is empty': A1 fill-back skip dropped 1/20 red (tied-name case); A2 stored loci (globalThis marker) 1/20 red (shape 3); first A2 attempt a no-op (replacement contained anchor), refused by the tool and rerun; A3 top fold without stored list 2/20 red. R1 through dist: registry replaced by globalThis.__ablationR1 in judgeRuntimeAuthoringRules, metadata-protocol rebuilt, ablation-dist-preflight found marker, runtime meta-object-extension-item -t 33494 3 red (tie, outranked, shape 3), CONTROL green; restore leg rebuilt, --absent clean, 4/4 green (a first R1 attempt was also a no-op and is not counted). Round 2 on 763105e after whole-repo build: lint pnpm test 210/210 files 8998/8998; lint typecheck exit 0; metadata-protocol pnpm test 340 passed 9 skipped files, 22883 passed 43 skipped; metadata-protocol + runtime typecheck exit 0; runtime meta-object-extension-item.test.ts 50/50; spec src/migrations 198/198 (round 0).",
"gates": "dispatch-gates --commands at 763105e: 114 lines, all run after a whole-repo build of 763105e, exit codes captured before any pipe, 114/114 exit 0; --ran: 114 derived, 114 run, 0 NOT-MEASURED, 0 UNRUN. Record pm-orders/spec/33494-gates-ran.txt (project share). Round 0 at 78ad84f: 112/114, two reds fixed and rerun green: check-adr-0087-registration (marker now not-required (already-registered object-extension-formula-cycle-refused), commit dd37779) and check-plugin-teardown-shape --self-test exit 3 (shallow clone; fetched fixture 621a487). Record 33494-gates-ran-r0.txt. CI check-runs on the PR: in_progress at report time.",
"dogfood_battery": "763105ec · os-verify-lock VERDICT command-exit 0 (34m31s) · Test Files 467 passed 3 skipped (470) · Tests 3958 passed 42 skipped (4000) · no failures. Round 0 on dd37779 also green (467/470 files, 3953 passed 42 skipped).",
"mcp_calls": "0 — no MCP GitHub calls; reads through gh api (card, comments, PRs #33442/#33434)",
"api_writes": "2 — relay dispatch pr_create (fw-20261115T064927Z-3f3d9e, run 43687180439, PR #33702, no labels, no assignees) and this os-dev-report comment via post-stamped. git push x4 (not REST).",
"files_changed": [
".changeset/33494-extension-door-priority-fold.md",
"content/docs/deployment/validating-metadata.mdx",
"packages/lint/src/authoring-rules.ts",
"packages/lint/src/formula-cycle-issues.ts",
"packages/lint/src/object-graph.ts",
"packages/lint/src/runtime-gate.object-formula-cycle.test.ts",
"packages/lint/src/runtime-gate.ts",
"packages/lint/src/runtime.ts",
"packages/lint/src/validate-expressions.test.ts",
"packages/lint/src/validate-expressions.ts",
"packages/lint/src/validate-security-posture.test.ts",
"packages/metadata-protocol/src/protocol-authoring-gate.extension-write-fold.test.ts",
"packages/metadata-protocol/src/protocol-authoring-gate.ts",
"packages/metadata-protocol/src/runtime-authoring-gate.ts",
"packages/runtime/src/domains/meta-object-extension-item.test.ts",
"packages/spec/src/migrations/entries/semantic/18.object-extension-formula-cycle-refused.ts"
],
"deviations": [
"File surface: metadata-protocol gate files added by the seat's amendment 6888588670. packages/runtime/src/domains/meta-object-extension-item.test.ts is edited (a test, new describe [#33494], real-door pins); the amendment dropped the runtime/domains source line, read here as the snapshot-builder line, not tests.",
"Two lint meta-test files (validate-expressions.test.ts, validate-security-posture.test.ts) table the new plumbing receivers storedNames / stored; required by the #5017 receiver scans.",
"validate-expressions.ts ~:2391 (objectsAsServed call) edited, as the seat's amendment allowed; PR #33434 then landed and origin/main merged clean (763105e).",
"os-dev.md rule 2 says pr_create carries assignees; the order and AGENTS.md say none: sent none."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in the PR's Acceptance notes, not filed: a tied field name the target's owner also declares is filled back from the authored object in the build but absent at the door (the door carries the served target, not its base layer); needs an owner field re-declared by two packages at the deciding priority plus a formula cycle through it."
]
}
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag
ACCEPT → PR #33702 comment 6891090812
fix(lint)!: os build and the object_extension publish door refuse a f…
fix(lint, metadata-protocol)!: the object_extension publish door fold…