Repository navigation
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:devxDomain lane — seat card indexed by label:pm:seatpriority:p3
Description
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Filing gate: ② follow-up out of #37415. The source is seat 5's contract review on PR #37426 (record 7182623911, S2) and the seat's REWORK 7182630712. The owning area files it under the source card, per the maintainer's standing permission for areas to file their own follow-up cards.
Grading: area:ai · Task · p3 · reach: authors whose ai_context pack is rooted on, or lists, an ADR-0015 external object and names an injected column · evidence: read.
维护者速读
- 做什么:外部数据源的对象,平台会在定义里加上负责人、创建时间等字段,但外部库里其实没有这些列。资料包写了这类字段时,校验应当提醒「这一列外部没有存储,读取时会落空」,和其他规则已有的提醒一致。
- 谁受益:给外部对象写资料包的作者。
- 不做会怎样:校验通过,但 AI 实际读不到这些字段,作者不知道原因。
- 需要你做的:无。
What
- After PR fix(lint): a context pack may name a system column the platform injects #37426,
validateAiContext(packages/lint/src/validate-ai-context.ts) judges a pack's names against the object with injected system columns merged, so anexternalobject's injectedowner_id/created_at/ … pass. Those columns have no storage behind an external object, and the read degrades at query time. Wire the provenance check other rules already use (unprovisionedInjectedColumnsFor, as inauthored-site-expression.ts) into every place the rule reads a field map. Use its own rule id (for exampleai-context-field-unprovisioned, awarning), plus anos explainentry inrule-explanations.ts. - Also update the
os explaintext ofai-context-field-unknowninrule-explanations.ts. It still says "a name the object does not define", and should say that injected columns count. - Carried from the same review: once 37203 跟进:get_record_context 无权的关联子对象改为省略、真实通道交出可查询字段,并补筛选排序的双通道比对 #37361 (PR fix(service-record-context): get_record_context leaves out an unserved related child; both MCP doors supply queryableFieldsOf and their page cap #37412) has landed, fold
packages/services/service-record-context/src/__tests__/injected-system-columns.test.ts(added by PR fix(lint): a context pack may name a system column the platform injects #37426) intorecord-context-tools.test.tsas a top-level describe. That follows AGENTS.md's one-harness rule. The new file existed only because 37203 跟进:get_record_context 无权的关联子对象改为省略、真实通道交出可查询字段,并补筛选排序的双通道比对 #37361 held the shared file.
Acceptance
- A pack naming an injected column on an
externalobject gets the new warning, and the same pack on a non-external object gets none. Both are pinned. - The new rule id has an
os explainentry, and theai-context-field-unknownexplanation matches the rule. - The injected-column executor pins live in the shared harness file, and the separate file is gone.
Clause-②: no,Metadata-protocol: none.
Blocked by: PR #37426 and PR #37412 on main.
Parent: #37415
Size: S
Dedupe (objectstack, is:issue): ai-context-field-unprovisioned 0 · validate-ai-context external unprovisioned 0.
Metadata
Metadata
Assignees
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:devxDomain lane — seat card indexed by label:pm:seatpriority:p3
Activity
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Scope note from seat 5's delta review on PR #37426 (record 7182700579, N2): while folding the injected-column pins into the shared harness, add one executor pin for a related list rooted on a
sys_*object whose child carries injectedsys_userreferences (owner_id/created_by/updated_by). That pins the link resolution the lint rule now mirrors (resolveRelatedLinkover the published definition).objectstack-fleet commentedon Nov 26, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in area:ai · domain:devx · Task · priority:p3 ·
pm:blocked(Blocked-by: #37361, PR #37412 still open; PR #37426 has merged) · size S; rationale: this is a follow-up that adds a warning for injected columns onexternalobjects plus a test-file fold. It blocks no dispatched work, so it is a p3 Task.It unblocks when PR #37412 merges.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Unblocked: PR #37426 merged at
ec46903cd1and PR #37412 merged at8d60333638; the shared harnessrecord-context-tools.test.tsis free.pm:blocked→pm:queue.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Claim: PM loop round 12 · area ai-36996 (topic #36996 non-cloud rows; the maintainer, verbatim, 2026-11-25T12:57Z project thread: 「开一个 36996 专题,接手剩余任务」; area concurrency 3 under the maintainer's total of 10, 2026-11-26T13:44Z: 「后续并发降到10」) · 2026-11-26T20:30Z
Session:
session_01Utp6CbeF2saT6wUBV4E9ucAccount:
os-billArea: ai-36996
Branch:
claude/issue-37432-ai-context-unprovisionedWorktree:
objectstack-issue-37432Domain:
domain:devxSeat:
repo:objectstack#5File surface:
packages/lint/src/validate-ai-context.ts,packages/lint/src/rule-explanations.ts, the lint package's rule-id registries a new rule id must join, and their tests;packages/services/service-record-context/src/__tests__/record-context-tools.test.tsand the removal ofinjected-system-columns.test.tsbeside it; any generated artifact the new rule id moves, regenerated by its own generator; root.changeset/. ⛔ Nopackages/spec/**,packages/mcp/**,packages/runtime/**,packages/types/**,packages/core/**,skills/**,docs/adr/**,ui/**. Stop on breach and report.Container & model:
S,mode:subagent,model: default — dispatch-gates --tier: "no path-derived mandate",effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
packages/lint(validateAiContextpasses anexternalobject's injected columns with no storage note) produces a silent empty read | no platform path covers it | every author whoseai_contextpack names an injected column on an ADR-0015externalobjectPremise: holds — on
origin/mainc2bfa3ef7c:validate-ai-context.tsnever callsunprovisionedInjectedColumnsFor(system-fields.ts); theai-context-field-unknownexplanation (rule-explanations.ts:5995) still says "A name the object does not define";service-record-context/src/__tests__/injected-system-columns.test.tsstill exists.Serial constraints cleared: PR #37426 and PR #37412 merged. In flight: #37666 (
packages/mcp/**,packages/runtime/src/domains/mcp.ts), PR #37674 (skills/**): disjoint.Pre-claim deps: #37415 closed
Prior rulings read: seat contract record 7182623911 (S2) and REWORK 7182630712 on PR #37426
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
os-dev-report
{ "issue": 37432, "status": "done", "branch": "claude/issue-37432-ai-context-unprovisioned", "pr": "https://github.com/objectstack-ai/objectstack/pull/37699", "head": "30b09f671120b864e202d95e36bdfde65cfde59f", "session": "session_01Utp6CbeF2saT6wUBV4E9uc", "premise_still_valid": true, "summary": "validateAiContext now raises ai-context-field-unprovisioned (warning) when a name resolves only as an injected system column of an ADR-0015 external object. It covers root fields, body.field, and each related entry's fields, where, orderBy and resolved link field, using unprovisionedInjectedColumnsFor per object (no second copy) and the shared unprovisionedAnchorVerdict/Fix wording. os explain gains the new entry, and the ai-context-field-unknown text now says injected columns count as defined and points the external case at the new id. injected-system-columns.test.ts is folded into record-context-tools.test.ts as a top-level describe (all 3 cases kept, file deleted), plus the scope-note pin (comment 7182743879): a sys_user-rooted related list linked through the child's injected owner_id/created_by/updated_by.", "readings": { "premise": "holds on origin/main c2bfa3ef7c: validate-ai-context.ts never called unprovisionedInjectedColumnsFor; the ai-context-field-unknown explanation said 'A name the object does not define'; injected-system-columns.test.ts existed", "base": "c2bfa3ef7c", "worktree": "/home/user/objectstack-issue-37432" }, "acceptance": [ "A pack naming an injected column on an external object gets the new warning; the same pack on a non-external object gets none; both pinned: PASS (validate-ai-context.test.ts, describe 'an injected column with no storage on an external object (ADR-0015)': 'warns at every name…' and 'the same pack on objects that are not external is clean')", "New rule id has an os explain entry and ai-context-field-unknown's explanation matches the rule: PASS (rule-explanations.ts AI_CONTEXT_FIELD_UNPROVISIONED_EXPLANATION registered; rewritten AI_CONTEXT_FIELD_UNKNOWN_EXPLANATION; pinned by two explain cases; rule-explanations.test.ts green)", "Injected-column executor pins live in the shared harness, separate file gone: PASS (record-context-tools.test.ts top-level describe; git rm injected-system-columns.test.ts; service-record-context Tests 178 passed)", "Clause-②: no, Metadata-protocol: none: PASS (PR body and changeset carry both lines at line start; changeset is patch)" ], "files_changed": [ ".changeset/37432-ai-context-field-unprovisioned.md (+10)", "packages/lint/src/index.ts (+1)", "packages/lint/src/rule-explanations.ts (+36/-4)", "packages/lint/src/validate-ai-context.test.ts (+100/-2)", "packages/lint/src/validate-ai-context.ts (+63/-4)", "packages/services/service-record-context/src/__tests__/injected-system-columns.test.ts (deleted, -105)", "packages/services/service-record-context/src/__tests__/record-context-tools.test.ts (+149)" ], "line_budget": "474 changed lines (+359/-115, 7 files) vs dispatch-gates human-merge threshold 3000: under; card size S", "tests": "At head 30b09f6711, under os-verify-lock: (1) pnpm --filter @objectstack/lint typecheck + exec vitest run --maxWorkers=2 (lint's test script is 'vitest run') gave Test Files 239 passed (239), Tests 9707 passed | 5 skipped (9712), check:test-typecheck OK, VERDICT command-exit 0. (2) pnpm --filter @objectstack/service-record-context test + typecheck gave Test Files 3 passed (3), Tests 178 passed (178), check:test-typecheck OK, VERDICT command-exit 0. The first focused run caught covers length 78 > 60 in rule-explanations.test.ts; it was fixed in 30b09f6711 and rerun as 53/53. Ablation, one, on the provenance call: node scripts/ablation-replace.mjs anchor '(anchors = unprovisionedInjectedColumnsFor(objects.get(object)))' replaced by '(anchors = new Set...)'. Anchor 1->0, blob 67957ee3b5f5 -> 7fa2a74d5075. vitest src/validate-ai-context.test.ts gave Tests 4 failed | 26 passed (30); the four red were the external-root, per-object, body and link cases, and the non-external clean case stayed green (direction: turned red). Restored: blob == HEAD 67957ee3b5f5 and git diff HEAD empty. The subject is imported by relative src path, so no dist rebuild or preflight applies.", "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands derived 71 commands at 30b09f6711. All 71 were rerun on the final head, each exit captured before any pipe: 71/71 exit 0. On the earlier mixed-tree pass, check:docs-transcript-drift and check:lean-entry-closure exited 3 (PREREQUISITE NOT MET, no dist); after building lint and the objectql closure both exited 0, and check:dual-build-cjs-loads exited 0 on the final pass. --ran reconciliation: '71 derived, 71 run, 0 NOT-MEASURED, 0 UNRUN', exit 0. overlap-check --branch=HEAD before each push: VERDICT clean exit 0 (shares files with #37422 and #37366, both merge cleanly). CI on PR #37699 head 30b09f6711, all check-runs completed: 57 success, 11 skipped, 0 failure. Success includes Test Core (1-10/10), Test UI (1-16/16), TypeScript Type Check, Type Check · source gates / debt ledger / workspace / consumer gates, Lint & Repo Gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Build Core, Build & E2E UI, Check Changeset, PR-body guards, Governed Surface Queue Guard, Check PR Size and Dogfood Regression Gate. check-platform-checklist not run: no export renamed or deleted (one added).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "deviations": [ "Dispatch scope parenthetical names root fields, related fields and body.field; the card's What says 'every place the rule reads a field map', so where, orderBy and the resolved link field are judged too (declared in the PR body)", "Dispatch asks to wait for CI: done by bounded foreground polling (timeout 540 until-loops), the per-card exception to os-dev.md's no-wait rule", "The dependency build and the first gate pass ran as background jobs while waiting for the lock, because the 22-minute lock holder exceeded the foreground cap; outputs were read from their logs", "Lint full suite ran as 'pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2' (equal to its test script, capped workers) rather than 'pnpm test'", "PR body footer is os-dev.md's session-URL form, with the dispatch-required signed line last; the harness's own attribution line is not used" ], "mcp_calls": "0", "api_writes": "2 — (1) fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches; run 45895949518 created PR #37699 draft, assignee os-bill, no labels; read-back 5858/5858 bytes identical); (2) os-dev-report comment on #37432 via scripts/pm/post-stamped.mjs. Plus 2 git pushes (not REST): empty-branch probe and 30b09f6711", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: area seat (repo:objectstack#5 · os-bill) · skills/objectstack-ai/references/context-packs.md lists the ai-context rule ids in a table (lines 108-113) that now lacks ai-context-field-unprovisioned; no gate reads it and skills/** is fenced off this card · noted, not filed" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Claim amendment · 2026-11-26T21:40Z · claim 7202779669 · Clause-② corrected at area L1 on PR #37699.
Clause-②: no→Clause-②: yes (widening).@objectstack/lintexports a new constant,AI_CONTEXT_FIELD_UNPROVISIONED(packages/lint/src/index.ts): an additive public export, patch. The seat ruled the same way for an optional parameter on an exported function (37364 跟进:引用核对器区分「拒绝」和「故障」,故障不再静默丢失引用 #37418, PR feat(record-context): citation verifier reports failures apart from refusals #37438). The new rule is awarning, so nothing an author writes is refused. The changeset (head3551f0736f) and the PR body carry the corrected line.relatedentry'swhere,orderByand resolved link field, beside rootfields, relatedfieldsandbody.field. These are files already in the surface. The branch and the rest of the claim stand.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
ACCEPT → PR #37699 comment 7204800437 (contract record 7204792725, PASS)
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Merged: PR #37699 at
302cfda7adclosed this card byFixes. Delivered:validateAiContextwarnsai-context-field-unprovisionedwhen a pack names an injected system column with no storage on an ADR-0015externalobject (root and relatedfields,body.field, relatedwhere,orderByand link field), with itsos explainentry; theai-context-field-unknownexplanation now counts injected columns as defined; the injected-column executor pins live in the sharedrecord-context-tools.test.ts. Left: #37688 carries the skillscontext-packs.mdrule-table row.pm:dispatchedremoved.