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
review follow-ups of PR #34489: lookupFilters { $record } to a structural field (json, repeater, location, address, vector) lints clean #34562
Filing gate: L1/L2 follow-ups of a landed PR (one card per PR), from the contract review record 6932506491 on PR #34489 (card #34378, merged as f23c71e), out-of-diff observation ③.
object-field-ref-unknown, lookupFilters[N].value.$record member: a path whose head or leaf is a structural field type (json, repeater, location, address, vector; take the set from packages/spec, do not hand-write a second list) has no scalar value either. Decide with the spec lane whether the same rule refuses it, with the same hint as the multi-valued refusal, and pin it beside the multi-valued block in packages/lint/src/validate-object-field-refs.test.ts. Measure first: git grep for a $record: path to such a field across examples/, packages/platform-objects, packages/plugins and skills/ (PR feat(lint)!: refuse a lookupFilters { $record } path through or to a multi-valued field #34489 measured zero $record paths first-party).
The client half for a plain multi-valued path is #34389; N1 of the same record (the "is not resolved" wording) is an accepted deviation carried there.
Business reason
A metadata author who points { $record } at an address or a JSON field gets a clean lint and a filter that never matches. Refusing it where it is written gives them the fix at authoring time, the same promise #34489 made for multi-valued fields.
Reader who acts
The spec/lint area of seat repo:objectstack#2 (area o2-A), which landed #34489.
Dedupe
repo:objectstack-ai/objectstack is:issue "34489" → 1 hit (#34378, closed, the parent card); is:issue lookupFilters $record json repeater → 5 hits, none about this gap.
These are the review follow-ups of PR #34489 ($record pointing at structured fields). Nits that name no user effect default to p3 under the 2026-11-16 rule. Kept open, unpicked while p3 is paused.
Triage: lands in area:data · domain:spec · Task · p2 · pm:queue · size S; rationale: a lookupFilters{ $record } path to a structural field (json, repeater, location, address, vector) lints clean, yet the client compares an object as one value, so the filter looks applied but does not filter. That is a silent wrong result, read from code and not yet measured, with no known consumer, so p3 → p2 rather than p1. Measure at claim; a measured silent miss on a real app raises it to p1. Audit restatement, tier 3. Recorded 2026-11-27T12:20Z.
Picked by card-pick.mjs --order area:data --seat repo:objectstack#8 at 2026-11-28T01:23Z: rank 8 (p2, order 1). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intake area:data.
Claim: PM loop round 1
Session: session_017xRBcSAaBEfQpU2yJexSJ8
Account: sunhaolin
Branch: claude/issue-34562-record-structural-lint
Worktree: objectstack-issue-34562
Domain: domain:spec (label; the fix lands in packages/lint)
Seat: repo:objectstack#8
File surface: packages/lint/src/validate-object-field-refs.ts, packages/lint/src/validate-object-field-refs.test.ts (or a new *-34562.test.ts beside it), one changeset; the structural set is imported from packages/spec (STRUCTURED_JSON_TYPES), never re-listed; ⛔ no edit to packages/spec/src/**, authoring-rules.ts, rule-explanations.ts or index.ts (open PRs #37986, #37971, #38038 hold them; the rule id stays object-field-ref-unknown) (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default (dispatch-gates.mjs --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: narrowed
Responsibility: n/a — not a defect card
Thread-read: 7218139778
Premise: holds — read-only check on origin/main at 2026-11-28T01:23Z (refusal block validate-object-field-refs.ts:1064-1078 calls multiValuedSegment 727-745, which tests isMultiValueField only; STRUCTURED_JSON_TYPES exported at packages/spec/src/data/field-value.zod.ts:350-352 and already imported by validate-dataset-measure-aggregates.ts; zero first-party $record paths to a structural field, control lookupFilters hits)
Serial constraints cleared: open PRs #37986 (seat 3, #37435), #37971 and #38038 (seat 1, #37307) touch packages/lint/src shared files, none touch validate-object-field-refs.*; seat 6's #35143 declares packages/lint/**. Textual overlap re-checked with overlap-check.mjs before every push.
Scope this dispatch: the whole card. Fixes #34562. Narrowing ⇒ one contract-review-tier L2 review is owed before the queue.
Claim amendment · 2026-11-28T01:27Z — the effort of claim 7231640332 is corrected to 定档's value for an S review-nit follow-up. Everything else in that claim stands.
Container & model: S, mode:subagent, model: opus (dispatch-gates --tier: no path-derived mandate; default tier), effort: medium
Dispatched: one os-dev subagent from this seat's session, same branch claude/issue-34562-record-structural-lint.
{
"issue": 34562,
"status": "blocked",
"branch": "claude/issue-34562-record-structural-lint",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38096",
"session": "session_017xRBcSAaBEfQpU2yJexSJ8",
"premise_still_valid": true,
"summary": "Implemented: object-field-ref-unknown now refuses a lookupFilters[N].value.$record path whose head, or whose leaf behind one single-valued hop, is a member of STRUCTURED_JSON_TYPES (imported from @objectstack/spec/data, all seven members kept: composite parses as z.record and record is a name-keyed map, and filter-cross-field-comparison-class.ts already classes the whole set list-or-object), with the multi-valued refusal's hint verbatim; multi-valued wording byte-identical. BLOCKED on two things only the seat can settle: (1) check-adr-0087-registration refuses every not-required category except fact-backed ones on a Metadata-protocol: narrowed changeset, so a semantic ledger entry is owed at packages/spec/src/migrations/entries/semantic/ (sibling of 18.lookup-filter-record-path-multi-valued-refused.ts) and that path is outside this card's file surface (no packages/spec/src/**); (2) the claim's Clause-②: no beside Metadata-protocol: narrowed is a check-changeset-no-major contradiction (narrowed needs the (narrowing) arm; the predecessor PR declared Clause-②: no (narrowing)); both lines were copied verbatim into the PR body and changeset, not corrected. Correcting (2) also makes the full dogfood battery owed, which was not run. Everything else is done and pushed at 9c2f41e6.",
"tests": "pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-object-field-refs.test.ts: VERDICT command-exit 0, Tests 148 passed (148). Ablation: source restored to merge base 815e882b (git restore --source, tree only), same run: VERDICT command-exit 1, Tests 14 failed | 134 passed (148), the 14 = the head and leaf it.each cases over all 7 STRUCTURED_JSON_TYPES members; control, coverage and hop-through cases green; restored with git restore --source=HEAD, porcelain clean. Package: pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test at 5909b7ea: VERDICT command-exit 0, Test Files 243 passed (243), Tests 9824 passed | 5 skipped (9829); later commits 9f302d5a, 9c2f41e6 touch only the changeset.",
"gates": "Local derived list (dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, 61 families, captured before any pipe). RED: node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 1 (narrowed changeset needs a ledger entry; see summary). NOT MEASURED: check-plugin-teardown-shape --self-test :: exit 3 (shallow clone); pnpm check:dual-build-cjs-loads :: exit 3 and pnpm check:lean-entry-closure :: exit 3 (full build prerequisite); pnpm check:query-options-erasure :: exit 124 and pnpm check:type-check-debt :: exit 124 (local 300 s timeout). pnpm check:docs-transcript-drift :: exit 3 first (lint unbuilt), then exit 0 after pnpm --filter @objectstack/lint build under the lock. pnpm check:nul-bytes :: exit 0. All other 52 families exit 0. --ran reconciliation with exit codes: 61 derived, 56 run, 3 NOT-MEASURED, 2 UNRUN (the two exit-124 timeouts, which I did not re-declare as NOT-MEASURED lines). check:changeset-no-major ran locally exit 0 without a PR body; on the PR it is expected red with the contradiction. CI check-runs on PR #38096: in_progress at report time, not cited. check-platform-checklist not owed (no export renamed or removed).",
"dogfood_battery": "n/a — no ! in the PR title and the declared Clause-② line carries no (narrowing) arm; owed once the seat corrects the line to no (narrowing)",
"mcp_calls": "0",
"api_writes": "3 — git push (branch probe + 4 pushes, not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/38096/assignees sunhaolin) via fleet-write/dispatch.mjs run 46096882010; this os-dev-report comment via post-stamped.mjs on #34562",
"open_questions": [
{ "question": "Where does the ADR-0087 semantic ledger entry for the structured-field refusal land, given packages/spec/src/** is outside this card's surface?", "options": ["A widen this card's surface to one new file packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-structured-refused.ts (registry.ts is generated, untracked) plus a @objectstack/spec patch bump in the same changeset, mark adr-0087: registered lookup-filter-record-path-structured-refused", "B amend the existing multi-valued entry's surface/reason to cover structured fields and mark already-registered — touches a landed entry, same surface breach", "C downgrade Metadata-protocol to none — false: the doors refuse a value that used to save"], "recommendation": "A, because it mirrors the predecessor's own entry one-for-one, touches no file the open PRs #37986/#37971/#38038 hold, and costs about 15 minutes; I can do it on a re-dispatch with the widened surface." },
{ "question": "The claim's Clause-② line is 'no' while Metadata-protocol is 'narrowed'; check-changeset-no-major calls that a contradiction. Correct it?", "options": ["A Clause-②: no (narrowing) in PR body (an edit, no push) and changeset (one push), and run the full dogfood battery at the final head", "B keep as claimed and accept the red"], "recommendation": "A, because it is what the predecessor PR declared for the same kind of refusal and the gate cannot go green otherwise." }
],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · the singleValuedPrescription hint reads 'a multi-valued field holds a list' also on a structured-field refusal (reused verbatim by ruling); a structured-aware sentence would be a wording change for the seat, noted in the PR Acceptance notes, not filed"]
}
Claim amendment · 2026-11-28T02:14Z — two seat errors in claim 7231640332, raised by the dev's report on PR #38096. Both are the seat's own declarations, not product questions; the route mirrors the predecessor PR #34489 one for one. Everything else in the claim and in amendment 7231686921 stands.
Clause-②: no (narrowing)
Metadata-protocol: narrowed
File surface: as claimed, plus ONE new file packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-structured-refused.ts (the ADR-0087 semantic ledger entry, beside 18.lookup-filter-record-path-multi-valued-refused.ts) and a @objectstack/spec patch line in the card's changeset marked adr-0087: registered; ⛔ still no other packages/spec/src/** edit and no edit to a landed ledger entry (stop on breach; explain in the report)
Owed now: the full dogfood battery at the final head (a (narrowing) arm), and one contract-review-tier L2 review before the queue.
{
"issue": 34562,
"status": "done",
"branch": "claude/issue-34562-record-structural-lint",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38096",
"session": "session_017xRBcSAaBEfQpU2yJexSJ8",
"premise_still_valid": true,
"summary": "Patch round on the seat's amendment 7232237546; final head c0deeb35. (1) New ADR-0087 semantic ledger entry packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-structured-refused.ts, modeled on the multi-valued entry. The changeset now carries a @objectstack/spec patch line and adr-0087: registered lookup-filter-record-path-structured-refused. No landed entry and no other packages/spec/src file was touched; registry.ts is generated and untracked. (2) Clause-② is now 'no (narrowing)' in both the changeset and the PR body; the body was edited through the relay issue_patch. The cause of the red Check Changeset on 9c2f41e6 (job 140831779603) was the PR body's 'Clause-②: no' next to 'Metadata-protocol: narrowed', which the check calls a narrowed-without-arm contradiction. (3) The changeset no longer says 'never matched'. It now says that, read from code, the picker compares the object as one value under a scalar operator. The hint is kept verbatim. (4) Docs: fields.mdx was read and still holds. relationships.mdx listed only the unknown-path refusal, so that one sentence now also names multi-valued and structured first fields or leaves. Merged origin/main into the branch once; the merge commit is 4e251c84. Deviation: the relay refused an unsigned PR body, so the body now ends with the signed-trailer comment PR_BODY_TRAILER_SHAPE, placed after the footer.",
"tests": "pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test at c0deeb35: VERDICT command-exit 0, Test Files 244 passed (244), Tests 9873 passed (9873). The red-without-fix result from the earlier round still applies, since the lint source is unchanged since then: 14 head/leaf cases failed on the merge-base source. node scripts/check-adr-0087-registration.mjs --base origin/main: exit 0, 'registered lookup-filter-record-path-structured-refused (new here)'.",
"gates": "Derived list after the spec and docs commits: 88 families from the spec commit plus 22 from the docs commit, run with a 900 s timeout. In the first pass 82 exited 0, and 6 families were not measured because the closure was not yet built: cli migrate-meta-engine-guidance.test.ts :: exit 1 (MODULE_NOT_FOUND on lint dist), check:doc-formula-expressions :: 3, check:docs-transcript-drift :: 3, check:dual-build-cjs-loads :: 3, check:lean-entry-closure :: 3, check:type-check-debt :: 3. After pnpm turbo run build --filter='@objectstack/dogfood^...' --filter='@objectstack/cli...' (VERDICT command-exit 0), the retry gave exit 0 for 5 of the 6; check:dual-build-cjs-loads :: exit 3 is still NOT MEASURED because it needs a full pnpm build, and CI runs it. The two families that timed out last round are now measured: check:query-options-erasure :: 0 and check:type-check-debt :: 0. The 22 docs families all exited 0. CI reds on 9c2f41e6, one per line. TypeScript Type Check (job 140831849035): not a failure in this PR or in base; run 46096909426 concluded cancelled because my push of fc1672bf superseded it, and its log shows only lanes typecheck-consumers, typecheck-debt and typecheck-workspace 'concluded cancelled'. Test UI (job 140831846570): same cause; run 46096909327 concluded cancelled, with the log line 'Test UI (k/16) rollup: cancelled'. No re-run was requested. Lint & Repo Gates: this PR, the ADR-0087 gap, closed at fc1672bf. Check Changeset: this PR's body line, fixed by the body edit. At report time on head c0deeb35: 59 success, 12 skipped, 2 in_progress (Check Changeset re-running on the edit, and the PR-body guards), and 1 failure, which is the stale Check Changeset run from before the edit.",
"dogfood_battery": "c0deeb35 · os-verify-lock: VERDICT command-exit 0 (held 2260s) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures",
"mcp_calls": "0",
"api_writes": "3 relay writes this round: issue_patch PATCH /repos/objectstack-ai/objectstack/issues/38096 (PR body; run 46105944707, read-back 6385 bytes identical); this os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/34562/comments via post-stamped.mjs; one issue_patch refused locally before sending (unsigned body, nothing sent). git push x2 (fc1672bf with merge 4e251c84, c0deeb35), each after overlap-check VERDICT clean exit 0. Previous round: pr_create + first report comment.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · the reused singleValuedPrescription hint says 'a multi-valued field holds a list' on a structured-field refusal too; kept verbatim per the ruling, recorded in the PR's Acceptance notes"]
}
Claim amendment · 2026-11-28T04:17Z — the L2 record 7233848869 on PR #38096 (FAIL, M1) found the seat's own error in amendment 7232237546: the ledger file was named under protocol major 18; it belongs to 19 (PROTOCOL_VERSION 19.0.0, the 18.x line is released). Everything else stands.
File surface: as amended, with the ledger entry at packages/spec/src/migrations/entries/semantic/19.lookup-filter-record-path-structured-refused.ts (the 18. file renamed; id, body and changeset marker unchanged).
S1 (should-fix: the os lint --explain text and the $record describes) → follow-up card #38141, named in the PR body. Out-of-diff: three other 18. entries landed after the protocol move → #38142.
{
"issue": 34562,
"status": "done",
"branch": "claude/issue-34562-record-structural-lint",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38096",
"session": "session_017xRBcSAaBEfQpU2yJexSJ8",
"premise_still_valid": true,
"summary": "Patch round on the L2 FAIL record 7233848869 (claim amendment 7233891050). Final head is 9a9f0e64. M1: the ledger entry is renamed (git mv) to packages/spec/src/migrations/entries/semantic/19.lookup-filter-record-path-structured-refused.ts. Its id and changeset marker are unchanged. The body changed only in the N2 wording; the reason string was re-wrapped, with its text checked to be identical apart from that wording. Probe on the built dist: composeMigrationChain(18) now includes the entry. Under the 18. name it was skipped, the same as the landed multi-valued 18 entry is today. N1: the changeset headline is fix(lint)!:, and the PR is retitled 'fix(lint)!: refuse a lookupFilters $record path to a structured field' through the relay issue_patch; the signed body trailer is kept. N2: the ledger comment and reason, the changeset and both source comments in validate-object-field-refs.ts now say 'a list or an object rather than one value'; test and runtime strings are unchanged. S1 is not done here. The Acceptance notes now carry 'S1 → follow-up #38141' and a line naming #38142 for the other out-of-diff 18. entries.",
"tests": "At 9a9f0e64, after building the closure: pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test: VERDICT command-exit 0, Test Files 244 passed (244), Tests 9873 passed (9873). The first attempt hit exit 2: TS2307 on unbuilt workspace deps in the fresh worktree, which is a prerequisite failure, not a finding; rerun green after the build. pnpm --filter @objectstack/spec exec vitest run src/migrations: Test Files 5 passed, Tests 207 passed. cli test/migrate-meta-engine-guidance.test.ts: Tests 3 passed.",
"gates": "node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 ('[bang+clause-②-narrowing+metadata-protocol-narrowed] registered lookup-filter-record-path-structured-refused (new here)'). The registry was regenerated by pnpm --filter @objectstack/spec build :: exit 0 (registry.ts is gitignored; porcelain clean). pnpm --filter @objectstack/spec run check:spec-changes :: 0, check:upgrade-guide :: 0, pnpm check:nul-bytes :: 0. The derived family set is identical to last round's 110: comm of the --commands output showed no difference. This round I re-ran only the ledger, spec and lint families above, not all 110; the other families read none of this round's changes beyond a file rename and comment wording, and that is a declared narrowing. CI check-runs on 9a9f0e64 at report time: 60 success, 12 skipped, 2 pending, 0 failure.",
"dogfood_battery": "9a9f0e64 · os-verify-lock: VERDICT command-exit 0 (held 2232s; one queue-timeout exit 99 first, then requeued on the same slot) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures",
"mcp_calls": "0",
"api_writes": "2 relay writes this round. (1) issue_patch PATCH /repos/objectstack-ai/objectstack/issues/38096 (title and body), relay run 46113173003, read-back 6879 bytes identical. (2) This os-dev-report comment: POST /repos/objectstack-ai/objectstack/issues/34562/comments via post-stamped.mjs. git push x1 (9a9f0e64), after overlap-check VERDICT clean exit 0.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #38142 · other 18. ledger entries that landed after the protocol moved to 19 (named by the seat); confirmed by probe that the landed 18.lookup-filter-record-path-multi-valued-refused entry is absent from composeMigrationChain(18)",
"carrier: #38141 · S1, the os lint --explain text and the $record describes"
]
}
Closed by PR #38096 (merged, Fixes #34562; queued by the authorized approver os-zhuang) · 2026-11-28T13:01Z. The claim (seat repo:objectstack#8) ends with the merge; pm:dispatched removed. Unblocked by this merge: #38141 (the os lint --explain text and the $record describes) and #37936 N2.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:spec· p3 (confirmed) · review follow-up · 2026-11-17T00:53Z⛔ Not a claim.
These are the review follow-ups of PR #34489 (
$recordpointing at structured fields). Nits that name no user effect default to p3 under the 2026-11-16 rule. Kept open, unpicked while p3 is paused.objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:data · domain:spec · Task · p2 · pm:queue · size S; rationale: a
lookupFilters{ $record }path to a structural field (json, repeater, location, address, vector) lints clean, yet the client compares an object as one value, so the filter looks applied but does not filter. That is a silent wrong result, read from code and not yet measured, with no known consumer, so p3 → p2 rather than p1. Measure at claim; a measured silent miss on a real app raises it to p1. Audit restatement, tier 3. Recorded 2026-11-27T12:20Z.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Picked by
card-pick.mjs --order area:data --seat repo:objectstack#8at 2026-11-28T01:23Z: rank 8 (p2, order 1). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intakearea:data.Claim: PM loop round 1
Session:
session_017xRBcSAaBEfQpU2yJexSJ8Account:
sunhaolinBranch:
claude/issue-34562-record-structural-lintWorktree:
objectstack-issue-34562Domain:
domain:spec(label; the fix lands inpackages/lint)Seat:
repo:objectstack#8File surface:
packages/lint/src/validate-object-field-refs.ts,packages/lint/src/validate-object-field-refs.test.ts(or a new*-34562.test.tsbeside it), one changeset; the structural set is imported frompackages/spec(STRUCTURED_JSON_TYPES), never re-listed; ⛔ no edit topackages/spec/src/**,authoring-rules.ts,rule-explanations.tsorindex.ts(open PRs #37986, #37971, #38038 hold them; the rule id staysobject-field-ref-unknown) (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default(dispatch-gates.mjs --tier: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: narrowed
Responsibility:
n/a — not a defect cardThread-read: 7218139778
Premise: holds — read-only check on origin/main at 2026-11-28T01:23Z (refusal block validate-object-field-refs.ts:1064-1078 calls multiValuedSegment 727-745, which tests isMultiValueField only; STRUCTURED_JSON_TYPES exported at packages/spec/src/data/field-value.zod.ts:350-352 and already imported by validate-dataset-measure-aggregates.ts; zero first-party
$recordpaths to a structural field, controllookupFiltershits)Serial constraints cleared: open PRs #37986 (seat 3, #37435), #37971 and #38038 (seat 1, #37307) touch
packages/lint/srcshared files, none touchvalidate-object-field-refs.*; seat 6's #35143 declarespackages/lint/**. Textual overlap re-checked withoverlap-check.mjsbefore every push.Scope this dispatch: the whole card.
Fixes #34562. Narrowing ⇒ one contract-review-tier L2 review is owed before the queue.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Claim amendment · 2026-11-28T01:27Z — the effort of claim 7231640332 is corrected to 定档's value for an S review-nit follow-up. Everything else in that claim stands.
Container & model:
S,mode:subagent,model: opus (dispatch-gates --tier: no path-derived mandate; default tier),effort: mediumDispatched: one
os-devsubagent from this seat's session, same branchclaude/issue-34562-record-structural-lint.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
os-dev-report
{ "issue": 34562, "status": "blocked", "branch": "claude/issue-34562-record-structural-lint", "pr": "https://github.com/objectstack-ai/objectstack/pull/38096", "session": "session_017xRBcSAaBEfQpU2yJexSJ8", "premise_still_valid": true, "summary": "Implemented: object-field-ref-unknown now refuses a lookupFilters[N].value.$record path whose head, or whose leaf behind one single-valued hop, is a member of STRUCTURED_JSON_TYPES (imported from @objectstack/spec/data, all seven members kept: composite parses as z.record and record is a name-keyed map, and filter-cross-field-comparison-class.ts already classes the whole set list-or-object), with the multi-valued refusal's hint verbatim; multi-valued wording byte-identical. BLOCKED on two things only the seat can settle: (1) check-adr-0087-registration refuses every not-required category except fact-backed ones on a Metadata-protocol: narrowed changeset, so a semantic ledger entry is owed at packages/spec/src/migrations/entries/semantic/ (sibling of 18.lookup-filter-record-path-multi-valued-refused.ts) and that path is outside this card's file surface (no packages/spec/src/**); (2) the claim's Clause-②: no beside Metadata-protocol: narrowed is a check-changeset-no-major contradiction (narrowed needs the (narrowing) arm; the predecessor PR declared Clause-②: no (narrowing)); both lines were copied verbatim into the PR body and changeset, not corrected. Correcting (2) also makes the full dogfood battery owed, which was not run. Everything else is done and pushed at 9c2f41e6.", "tests": "pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-object-field-refs.test.ts: VERDICT command-exit 0, Tests 148 passed (148). Ablation: source restored to merge base 815e882b (git restore --source, tree only), same run: VERDICT command-exit 1, Tests 14 failed | 134 passed (148), the 14 = the head and leaf it.each cases over all 7 STRUCTURED_JSON_TYPES members; control, coverage and hop-through cases green; restored with git restore --source=HEAD, porcelain clean. Package: pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test at 5909b7ea: VERDICT command-exit 0, Test Files 243 passed (243), Tests 9824 passed | 5 skipped (9829); later commits 9f302d5a, 9c2f41e6 touch only the changeset.", "gates": "Local derived list (dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, 61 families, captured before any pipe). RED: node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 1 (narrowed changeset needs a ledger entry; see summary). NOT MEASURED: check-plugin-teardown-shape --self-test :: exit 3 (shallow clone); pnpm check:dual-build-cjs-loads :: exit 3 and pnpm check:lean-entry-closure :: exit 3 (full build prerequisite); pnpm check:query-options-erasure :: exit 124 and pnpm check:type-check-debt :: exit 124 (local 300 s timeout). pnpm check:docs-transcript-drift :: exit 3 first (lint unbuilt), then exit 0 after pnpm --filter @objectstack/lint build under the lock. pnpm check:nul-bytes :: exit 0. All other 52 families exit 0. --ran reconciliation with exit codes: 61 derived, 56 run, 3 NOT-MEASURED, 2 UNRUN (the two exit-124 timeouts, which I did not re-declare as NOT-MEASURED lines). check:changeset-no-major ran locally exit 0 without a PR body; on the PR it is expected red with the contradiction. CI check-runs on PR #38096: in_progress at report time, not cited. check-platform-checklist not owed (no export renamed or removed).", "dogfood_battery": "n/a — no ! in the PR title and the declared Clause-② line carries no (narrowing) arm; owed once the seat corrects the line to no (narrowing)", "mcp_calls": "0", "api_writes": "3 — git push (branch probe + 4 pushes, not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/38096/assignees sunhaolin) via fleet-write/dispatch.mjs run 46096882010; this os-dev-report comment via post-stamped.mjs on #34562", "open_questions": [ { "question": "Where does the ADR-0087 semantic ledger entry for the structured-field refusal land, given packages/spec/src/** is outside this card's surface?", "options": ["A widen this card's surface to one new file packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-structured-refused.ts (registry.ts is generated, untracked) plus a @objectstack/spec patch bump in the same changeset, mark adr-0087: registered lookup-filter-record-path-structured-refused", "B amend the existing multi-valued entry's surface/reason to cover structured fields and mark already-registered — touches a landed entry, same surface breach", "C downgrade Metadata-protocol to none — false: the doors refuse a value that used to save"], "recommendation": "A, because it mirrors the predecessor's own entry one-for-one, touches no file the open PRs #37986/#37971/#38038 hold, and costs about 15 minutes; I can do it on a re-dispatch with the widened surface." }, { "question": "The claim's Clause-② line is 'no' while Metadata-protocol is 'narrowed'; check-changeset-no-major calls that a contradiction. Correct it?", "options": ["A Clause-②: no (narrowing) in PR body (an edit, no push) and changeset (one push), and run the full dogfood battery at the final head", "B keep as claimed and accept the red"], "recommendation": "A, because it is what the predecessor PR declared for the same kind of refusal and the gate cannot go green otherwise." } ], "security_findings": "none", "out_of_scope_findings": ["carrier: none · the singleValuedPrescription hint reads 'a multi-valued field holds a list' also on a structured-field refusal (reused verbatim by ruling); a structured-aware sentence would be a wording change for the seat, noted in the PR Acceptance notes, not filed"] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Claim amendment · 2026-11-28T02:14Z — two seat errors in claim 7231640332, raised by the dev's report on PR #38096. Both are the seat's own declarations, not product questions; the route mirrors the predecessor PR #34489 one for one. Everything else in the claim and in amendment 7231686921 stands.
Clause-②: no (narrowing)
Metadata-protocol: narrowed
File surface: as claimed, plus ONE new file
packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-structured-refused.ts(the ADR-0087 semantic ledger entry, beside18.lookup-filter-record-path-multi-valued-refused.ts) and a@objectstack/specpatch line in the card's changeset markedadr-0087: registered; ⛔ still no otherpackages/spec/src/**edit and no edit to a landed ledger entry (stop on breach; explain in the report)Owed now: the full dogfood battery at the final head (a
(narrowing)arm), and one contract-review-tier L2 review before the queue.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
os-dev-report
{ "issue": 34562, "status": "done", "branch": "claude/issue-34562-record-structural-lint", "pr": "https://github.com/objectstack-ai/objectstack/pull/38096", "session": "session_017xRBcSAaBEfQpU2yJexSJ8", "premise_still_valid": true, "summary": "Patch round on the seat's amendment 7232237546; final head c0deeb35. (1) New ADR-0087 semantic ledger entry packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-structured-refused.ts, modeled on the multi-valued entry. The changeset now carries a @objectstack/spec patch line and adr-0087: registered lookup-filter-record-path-structured-refused. No landed entry and no other packages/spec/src file was touched; registry.ts is generated and untracked. (2) Clause-② is now 'no (narrowing)' in both the changeset and the PR body; the body was edited through the relay issue_patch. The cause of the red Check Changeset on 9c2f41e6 (job 140831779603) was the PR body's 'Clause-②: no' next to 'Metadata-protocol: narrowed', which the check calls a narrowed-without-arm contradiction. (3) The changeset no longer says 'never matched'. It now says that, read from code, the picker compares the object as one value under a scalar operator. The hint is kept verbatim. (4) Docs: fields.mdx was read and still holds. relationships.mdx listed only the unknown-path refusal, so that one sentence now also names multi-valued and structured first fields or leaves. Merged origin/main into the branch once; the merge commit is 4e251c84. Deviation: the relay refused an unsigned PR body, so the body now ends with the signed-trailer comment PR_BODY_TRAILER_SHAPE, placed after the footer.", "tests": "pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test at c0deeb35: VERDICT command-exit 0, Test Files 244 passed (244), Tests 9873 passed (9873). The red-without-fix result from the earlier round still applies, since the lint source is unchanged since then: 14 head/leaf cases failed on the merge-base source. node scripts/check-adr-0087-registration.mjs --base origin/main: exit 0, 'registered lookup-filter-record-path-structured-refused (new here)'.", "gates": "Derived list after the spec and docs commits: 88 families from the spec commit plus 22 from the docs commit, run with a 900 s timeout. In the first pass 82 exited 0, and 6 families were not measured because the closure was not yet built: cli migrate-meta-engine-guidance.test.ts :: exit 1 (MODULE_NOT_FOUND on lint dist), check:doc-formula-expressions :: 3, check:docs-transcript-drift :: 3, check:dual-build-cjs-loads :: 3, check:lean-entry-closure :: 3, check:type-check-debt :: 3. After pnpm turbo run build --filter='@objectstack/dogfood^...' --filter='@objectstack/cli...' (VERDICT command-exit 0), the retry gave exit 0 for 5 of the 6; check:dual-build-cjs-loads :: exit 3 is still NOT MEASURED because it needs a full pnpm build, and CI runs it. The two families that timed out last round are now measured: check:query-options-erasure :: 0 and check:type-check-debt :: 0. The 22 docs families all exited 0. CI reds on 9c2f41e6, one per line. TypeScript Type Check (job 140831849035): not a failure in this PR or in base; run 46096909426 concluded cancelled because my push of fc1672bf superseded it, and its log shows only lanes typecheck-consumers, typecheck-debt and typecheck-workspace 'concluded cancelled'. Test UI (job 140831846570): same cause; run 46096909327 concluded cancelled, with the log line 'Test UI (k/16) rollup: cancelled'. No re-run was requested. Lint & Repo Gates: this PR, the ADR-0087 gap, closed at fc1672bf. Check Changeset: this PR's body line, fixed by the body edit. At report time on head c0deeb35: 59 success, 12 skipped, 2 in_progress (Check Changeset re-running on the edit, and the PR-body guards), and 1 failure, which is the stale Check Changeset run from before the edit.", "dogfood_battery": "c0deeb35 · os-verify-lock: VERDICT command-exit 0 (held 2260s) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures", "mcp_calls": "0", "api_writes": "3 relay writes this round: issue_patch PATCH /repos/objectstack-ai/objectstack/issues/38096 (PR body; run 46105944707, read-back 6385 bytes identical); this os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/34562/comments via post-stamped.mjs; one issue_patch refused locally before sending (unsigned body, nothing sent). git push x2 (fc1672bf with merge 4e251c84, c0deeb35), each after overlap-check VERDICT clean exit 0. Previous round: pr_create + first report comment.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · the reused singleValuedPrescription hint says 'a multi-valued field holds a list' on a structured-field refusal too; kept verbatim per the ruling, recorded in the PR's Acceptance notes"] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Claim amendment · 2026-11-28T04:17Z — the L2 record 7233848869 on PR #38096 (FAIL, M1) found the seat's own error in amendment 7232237546: the ledger file was named under protocol major 18; it belongs to 19 (
PROTOCOL_VERSION19.0.0, the 18.x line is released). Everything else stands.File surface: as amended, with the ledger entry at
packages/spec/src/migrations/entries/semantic/19.lookup-filter-record-path-structured-refused.ts(the18.file renamed; id, body and changeset marker unchanged).S1 (should-fix: the
os lint --explaintext and the$recorddescribes) → follow-up card #38141, named in the PR body. Out-of-diff: three other18.entries landed after the protocol move → #38142.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
os-dev-report
{ "issue": 34562, "status": "done", "branch": "claude/issue-34562-record-structural-lint", "pr": "https://github.com/objectstack-ai/objectstack/pull/38096", "session": "session_017xRBcSAaBEfQpU2yJexSJ8", "premise_still_valid": true, "summary": "Patch round on the L2 FAIL record 7233848869 (claim amendment 7233891050). Final head is 9a9f0e64. M1: the ledger entry is renamed (git mv) to packages/spec/src/migrations/entries/semantic/19.lookup-filter-record-path-structured-refused.ts. Its id and changeset marker are unchanged. The body changed only in the N2 wording; the reason string was re-wrapped, with its text checked to be identical apart from that wording. Probe on the built dist: composeMigrationChain(18) now includes the entry. Under the 18. name it was skipped, the same as the landed multi-valued 18 entry is today. N1: the changeset headline is fix(lint)!:, and the PR is retitled 'fix(lint)!: refuse a lookupFilters $record path to a structured field' through the relay issue_patch; the signed body trailer is kept. N2: the ledger comment and reason, the changeset and both source comments in validate-object-field-refs.ts now say 'a list or an object rather than one value'; test and runtime strings are unchanged. S1 is not done here. The Acceptance notes now carry 'S1 → follow-up #38141' and a line naming #38142 for the other out-of-diff 18. entries.", "tests": "At 9a9f0e64, after building the closure: pnpm --filter @objectstack/lint typecheck && pnpm --filter @objectstack/lint test: VERDICT command-exit 0, Test Files 244 passed (244), Tests 9873 passed (9873). The first attempt hit exit 2: TS2307 on unbuilt workspace deps in the fresh worktree, which is a prerequisite failure, not a finding; rerun green after the build. pnpm --filter @objectstack/spec exec vitest run src/migrations: Test Files 5 passed, Tests 207 passed. cli test/migrate-meta-engine-guidance.test.ts: Tests 3 passed.", "gates": "node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 ('[bang+clause-②-narrowing+metadata-protocol-narrowed] registered lookup-filter-record-path-structured-refused (new here)'). The registry was regenerated by pnpm --filter @objectstack/spec build :: exit 0 (registry.ts is gitignored; porcelain clean). pnpm --filter @objectstack/spec run check:spec-changes :: 0, check:upgrade-guide :: 0, pnpm check:nul-bytes :: 0. The derived family set is identical to last round's 110: comm of the --commands output showed no difference. This round I re-ran only the ledger, spec and lint families above, not all 110; the other families read none of this round's changes beyond a file rename and comment wording, and that is a declared narrowing. CI check-runs on 9a9f0e64 at report time: 60 success, 12 skipped, 2 pending, 0 failure.", "dogfood_battery": "9a9f0e64 · os-verify-lock: VERDICT command-exit 0 (held 2232s; one queue-timeout exit 99 first, then requeued on the same slot) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures", "mcp_calls": "0", "api_writes": "2 relay writes this round. (1) issue_patch PATCH /repos/objectstack-ai/objectstack/issues/38096 (title and body), relay run 46113173003, read-back 6879 bytes identical. (2) This os-dev-report comment: POST /repos/objectstack-ai/objectstack/issues/34562/comments via post-stamped.mjs. git push x1 (9a9f0e64), after overlap-check VERDICT clean exit 0.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #38142 · other 18. ledger entries that landed after the protocol moved to 19 (named by the seat); confirmed by probe that the landed 18.lookup-filter-record-path-multi-valued-refused entry is absent from composeMigrationChain(18)", "carrier: #38141 · S1, the os lint --explain text and the $record describes" ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Closed by PR #38096 (merged,
Fixes #34562; queued by the authorized approver os-zhuang) · 2026-11-28T13:01Z. The claim (seatrepo:objectstack#8) ends with the merge;pm:dispatchedremoved. Unblocked by this merge: #38141 (theos lint --explaintext and the$recorddescribes) and #37936 N2.