Repository navigation
Done
Copy link
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivespm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
repo:cloud#2 · os-bob · session_012dn2AecKpLaYkUtNRiqtby
Filing gate: ③ maintainer-directed (topic child). Source: topic #36996 (ADR-0160 Implementation split, row 11); maintainer 2026-11-25, verbatim: 「related 的筛选和排序 同意」.
Grading: area:ai · Feature · p2 (topic) · reach: every ai_context pack with a related list · evidence: read.
维护者速读
- 做什么:情境包的关联列表(
related)可以筛选、排序、限条数:where(只能用子对象自己的字段,少量运算符)、orderBy、limit。 - 例子:BrightRule 的制度包只带现行版本的文档,正文在前、附件按序号排:
where: { is_current: { $eq: true } },orderBy: [{ field: 'sort_no', order: 'asc' }]。CRM 的客户包只带未关闭的商机、按金额倒序。 - 安全:筛选是作者写的,只是「选取」,不授予也不收回权限,提问人的行级规则照旧生效;筛选或排序用到的字段是提问人不能用来查询的字段时,整个关联段落省略并附一句「部分资料对你不可见」,不报错、不点名。
- 需要你做的:无(规则已在 ADR-0160 修订中裁定,见 ADR-0160 amendment: related lists gain where / orderBy / limit (row 11 contract) #37202)。
What
- Spec (
packages/spec/src/ai/ai-context.zod.ts, as landed by 记录 AI 问询 5:资料包类型 ai_context、渲染服务与 get_record_context 工具(MCP) #37140):related[]gains optionalwhere: the object-filter form (packages/spec/src/data/filter.zod.ts) restricted to the child's own fields, operators$eq $ne $in $nin $gt $gte $lt $lte $null $exists, joined by$and/$or. A bare value is read as$eq. Refused at parse: dotted paths, field-to-field comparands, a comparand that is one whole{token}(v1),$nowanchors, formulas, any other operator.orderBy:SortNodeSchema[](packages/spec/src/data/query.zod.ts), that is{ field, order }[], on the child's own fields. The direction is spelledorder;SortNodeSchemarefusesdirection.limit: positive integer, at most the service's per-list cap.- Liveness rows for the three keys with this card's reader; the
KIND_COVERAGEexample pack gains one filtered, ordered list; generated baselines refreshed.
- Render service (
packages/services/service-record-context): the one capped child query joins the link filter andwherewith$and, appliesorderByandlimit, as the caller. No second query. - Field-level rule (ADR-0160 D3, amended): a
whereororderByfield the caller cannot query on (every field outsidegetQueryableFields) drops the whole related section, with the single not-visible statement; the field is never named; never a refusal. - Author surfaces (ADR-0160 D1): a
where/orderByfield the child does not have is reported at save and byos validate; an operator outside the set is refused at parse. - Read set (ADR-0160 D4): unchanged by these keys — the exported read-set function takes no new input from them.
Acceptance
- Filter and order applied: a pack with
where+orderBy+limitreturns only matching child rows, in order, cut atlimit; the cut is stated in the notes. - A row the caller's row rules hide stays absent even when it matches
where(the filter grants nothing). - A
wherefield and anorderByfield the caller cannot query on each drop the section with the not-visible statement, for an ordinary caller; the field name appears nowhere in the answer. - An unknown operator, a dotted path, a field-to-field comparand and a whole-
{token}comparand are refused at parse; a bare value reads as$eq; an unknown field is reported byos validate. - The read-set function returns the same set with and without the three keys (pinned by test).
- Same answer on MCP stdio and HTTP for one caller (the 记录 AI 问询 5:资料包类型 ai_context、渲染服务与 get_record_context 工具(MCP) #37140 parity harness).
- Container run per AGENTS.md.
Out of scope
- Reads through a parent lookup or deeper than one level; relation traversal in
where(ADR-0160 "Later work"). - Studio controls for the three keys (记录 AI 问询 7:在 Studio 里编辑资料包(ai_context 表单与作者界面) #37143 picks them up when both land; note it there).
Blocked-by: #37140, #37202 (ADR-0160 amendment carrying this decision)
Parent: #36996. Reader: the server lane for service-record-context, with one spec file.
Dedupe: related where orderBy ai_context 0 · ai_context related filter 1 (the epic) · get_record_context related orderBy 1 (the seat post, no card).
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivespm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-25T03:35Z
Featureset.pm:blockedadded:Blocked-by: #37140, #37202.ai_contextpack with a related list · read · size M.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Row added 2026-11-25T06:12Z, at repo:objectstack#3's request (mailbox #36743, 7154521857). It is a conformance gap against ADR-0160 as amended by #37196 (merged at 03:47Z). This card builds the related-list read in
get_record_context, so the gap rides here.packages/services/service-record-context/src/record-context-tools.ts:283and:290callrefuseObject(entry.object, false)for a related child that the entry does not serve. The amended ADR says such a child is left out of the answer, and the answer says so. Done when the call returns the root and its served children, names the omitted child in the answer, and pins both an unserved child and a served control. The:296arm, for exposure refusals, stays as the ADR says.Read on
main(the lines are confirmed), not yet measured through the tool.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
2026-11-25T07:06Z Body aligned with the ADR-0160 second amendment (PR #37240, #37202), at seat 3's request (mailbox #36743, 7155462225; L1-w notes):
order(orderByis{ field, order }[];SortNodeSchemarefusesdirection). The example in the quick read is fixed too.getQueryableFields)", in What 3, the Acceptance and the quick read.whereis read as ``.{token}is refused at parse in v1 (What 1 and the Acceptance).The body never had a "stays draft with
pm:awaiting-merge" line, so nothing was dropped.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
2026-11-25T07:08Z Correction to the note above. Item 3 lost its operator to shell expansion. It reads: a bare value in
whereis read as$eq. The card body itself is correct.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Unlocked 2026-11-25T08:38Z. PR #37240 merged and closed #37202, the ADR-0160 second amendment. #37140 was already closed.
pm:blocked→pm:queue. Goes to seat 3 zone ai-A, as a non-cloud row of #36996 (row 11). The body was aligned with the amendment at 07:07Z, and it carries the unserved-related-child row.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As6JrAPNfuwC2RLXXGu
Note for this card (2026-11-25T16:32Z), from the contract review of PR #37315 (record 7167828479, finding N4): the Studio context-pack form (
ContextPackRelatedEntries.tsxinui/packages/app-shell) authorsrelatedentries as{ object, field?, fields? }only, and no gate ties that face toAiContextRelatedSchema's keys. When this card addswhere,orderByandlimit, the Studio block will not offer them and nothing will fail (it does preserve them on edit). Include the Studio face in this card's surface, or file its follow-up when this lands.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Claim: PM loop round 2 · area ai-36996 (topic #36996 non-cloud rows; the maintainer, verbatim, 2026-11-25T12:57Z project thread: 「开一个 36996 专题,接手剩余任务」) · 2026-11-25T20:04Z
Session:
session_01Utp6CbeF2saT6wUBV4E9ucAccount:
os-billArea: ai-36996
Branch:
claude/issue-37203-related-where-orderby-limitWorktree:
objectstack-issue-37203Domain:
domain:serverSeat:
repo:objectstack#5File surface:
packages/spec/src/ai/ai-context.zod.ts(+ tests, liveness rows, theKIND_COVERAGEexample pack, generated baselines),packages/services/service-record-context/**, the save-time /os validateauthor check forai_context(declared in the report), root.changeset/. Stop on breach and report.Container & model:
M,mode:subagent,model: default — dispatch-gates --tier: "no path-derived mandate",effort: highClause-②: yes
Metadata-protocol: added
Responsibility: n/a — not a defect card
Thread-read: 7168171718
Premise: holds — on
origin/maina182fbe37: blockers #37140 and #37202 closed; ADR-0160 second amendment (PR #37240) carries the decision; the body was aligned with it (7155504079, 7155540242)Serial constraints cleared: PR #37291 merged (it changed
service-record-contextdoor/read-set/tools); #37233 (this area, same package) is held back until this PR lands; sibling #37175 is inpackages/runtime— disjoint; Studio controls are #37143's (note 7168171718)Pre-claim lane:
domain:server(service-record-context) plus onepackages/spec/src/aifile, kept in lane; L2 contract review owed for the widenedai_contextaccept setPre-claim deps: #37140 closed, #37202 closed (PR #37240 merged)
Prior rulings read: ADR-0160 D1, D3 (amended), D4 and the second amendment (PR #37240) are the governing text; the dev reads them line by line
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
os-dev-report
{ "issue": 37203, "status": "done", "branch": "claude/issue-37203-related-where-orderby-limit", "pr": "https://github.com/objectstack-ai/objectstack/pull/37354", "head": "aa76b901be459a8271b412ad9fcb099024a7fb33", "session": "session_01Utp6CbeF2saT6wUBV4E9uc", "premise_still_valid": true, "summary": "The ai_context related entry gains where (the object filter form held at parse to the ten operators joined by $and/$or, literal comparands only; dotted paths, lookup-target conditions, {$field}, $now, formulas and whole-{token} comparands refused), orderBy (SortNodeSchema[], own-field names) and limit (at most AI_CONTEXT_MAX_RELATED_ROWS = 20, which the service's RECORD_CONTEXT_RELATED_MAX_ROWS now reads, so there is one number). get_record_context runs them in the one capped child query as the caller: where: {$and:[link, where]}, orderBy, limit+1 probe, a cut stated. Every where/orderBy field is judged before the query. One the child's published definition lacks leaves the section out with nothing stated. One the caller cannot query on drops it with the single not_visible statement, never named, never a refusal. The judgment uses the door's new optional queryableFieldsOf; without that answer it falls back to the getQueryableFields contract: served, not withheld, no maskingRule. The #37176 lint rule now reports where/orderBy fields the child lacks (ai-context-field-unknown, at save and by os validate). The liveness ledger gains rows for the three keys, the showcase KIND_COVERAGE pack carries a filtered, ordered, limited list, and the generated baselines were refreshed. I also implemented triage row 7154563681 (unserved related child left out, not refused), then reverted it. It flips a pin in packages/runtime, the real-kernel parity harness that landed on main in #37350 and titles that case '[today; ADR-0160 as amended says left out and stated]'. packages/runtime is fenced, so the row is carried out, not done.", "acceptance": [ "filter+order+limit applied, cut stated: MET (service test 'filter and order applied in ONE capped query, cut at the limit, and the cut is stated'; bare-$eq/desc control)", "row hidden by row rules stays absent though it matches where: MET ('the filter grants nothing')", "where field and orderBy field the caller cannot query on each drop the section with the not-visible statement, name nowhere: MET (4-case it.each: unqueryable where, unqueryable orderBy, hidden, withheld; plus masking fallback and throwing probe; the fake door refuses a non-queryable filter the way the plugin-security guard does, so a skipped judgment reds)", "unknown operator / dotted path / field-to-field / whole-{token} refused at parse, bare value reads $eq, unknown field reported by os validate: MET (spec ai-context.zod.test.ts 22 cases; lint validate-ai-context.test.ts incl. the save-door family)", "read set identical with and without the three keys: MET ('the read set is the same with and without the three keys')", "same answer on MCP stdio and HTTP: PARTIAL. No where-pack parity case was added, because both harnesses (packages/mcp, packages/runtime) are fenced. The existing parity harnesses are green on CI at aa76b901b (Test Core success), and packages/mcp's ran locally too (14/14). Both doors pass query options through to the one executor.", "container run per AGENTS.md: MET (targeted local runs under os-verify-lock; full CI green at head)" ], "tests": "Final head aa76b901b. `pnpm --filter @objectstack/service-record-context test`: Test Files 2 passed, Tests 96 passed (lock VERDICT command-exit 0). `pnpm --filter @objectstack/spec exec vitest run src/ai/ai-context.zod.test.ts`: 22 passed. `pnpm --filter @objectstack/lint exec vitest run src/validate-ai-context.test.ts`: 16 passed. `pnpm --filter @objectstack/mcp exec vitest run src/mcp-record-context-tools.test.ts` (fenced harness, read-only run against the rebuilt service, at 16b86efe5 with the later-reverted unserved change): 14 passed. `npx vitest run --project local scripts/dropped-refinements.test.ts`: 27 passed. Typecheck exit 0 for @objectstack/spec, @objectstack/service-record-context and @objectstack/lint. Ablations ran at 0b0fe4977 through scripts/ablation-replace.mjs (anchor 1 to 0 on disk, blob restored to f7c1ae3c5211; the suite imports src, so there is no dist leg): skipping queryableAmong reds 6 cases; dropping the $and join reds 4 cases; the unserved-child ablation (2 red) applies to behaviour since reverted.", "gates": "Local: derived list of 116 (dispatch-gates --commands, repo objectstack-ai/objectstack @0b0fe4977), run in sequence with each exit captured before any pipe. `--ran` reconciliation: 116 accounted, 112 run, 4 NOT-MEASURED, derived from recorded exit 3 (PREREQUISITE NOT MET): check-plugin-teardown-shape --self-test (shallow clone), spec check:skill-examples (no client dist), check:dual-build-cjs-loads (no full build), check:i18n-coverage (CLI not built). Exit 1: check:platform-checklist, on ui/.../FlowItemMoreMenu.tsx#FlowItemMoreMenu in areas/automation.json. This branch does not touch ui/ or docs/qa, so it is pre-existing and green in CI's Lint & Repo Gates. check:spec-parsed-alias was exit 1 and is exit 0 after the Parsed alias (16b86efe5). `spec check:generated`: all 14 up to date. After the last spec change I re-ran check:api-surface, export-origins, docs, dual-source-exports, exported-any, nul-bytes and spec-parsed-alias (all 0), and check:liveness again on aa76b901b (0). CI at aa76b901b: 60 success, 10 skipped, 0 failure. Required set: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Lint UI skipped. Check Changeset success. Earlier heads: 16b86efe5 Test Core (2/10) red, dropped-refinements header totals, fixed in 0e363f6ff. 0e363f6ff Test Core (3/10) red, runtime real-kernel parity pins of the unserved/disabled child, fixed by the revert in aa76b901b.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (CI Dogfood Regression Gate success at aa76b901b)", "mcp_calls": "0", "api_writes": "2 strokes. (1) fleet-write relay pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /repos/objectstack-ai/objectstack/issues/37354/assignees [os-bill], run 45703362463, read-back identical. (2) post-stamped comment: POST /repos/objectstack-ai/objectstack/issues/37203/comments (this report). Plus 6 git pushes (not REST).", "files_changed": [ "(21 files, +912/-48 vs a182fbe37)", ".changeset/37203-ai-context-related-where-orderby-limit.md", "packages/spec/src/ai/ai-context.zod.ts", "packages/spec/src/ai/ai-context.zod.test.ts", "packages/services/service-record-context/src/record-context-tools.ts", "packages/services/service-record-context/src/door.ts", "packages/services/service-record-context/src/__tests__/record-context-tools.test.ts", "packages/services/service-record-context/src/__tests__/fake-door.ts", "packages/lint/src/validate-ai-context.ts", "packages/lint/src/validate-ai-context.test.ts", "packages/spec/liveness/ai_context.json", "examples/app-showcase/src/ai/record-context.ai-context.ts", "examples/app-showcase/src/coverage.ts", "generated: packages/spec/{api-surface,authorable-surface,declaration-map,export-origins,json-schema.manifest}/ai.json, packages/spec/dropped-refinements.baseline.json, packages/spec/liveness/state-counts/ai_context.md, content/docs/references/{ai/ai-context.mdx,index.mdx}" ], "line_budget": "n/a — no skills/** touched", "readings": "A1 measured: #37291's door.ts/read-set.ts/record-context-tools.ts are on main at a182fbe37, built on as is. A2 measured: the author check is packages/lint/src/validate-ai-context.ts (runtime-gate dispatches ai_context to it), extended there; no second validator. The real doors pass orderBy through: packages/runtime/src/domains/mcp.ts#recordContextMembers forwards query opts; packages/mcp/src/stdio-data-bridge.ts query takes orderBy. Neither door supplies queryableFieldsOf.", "deviations": [ "PR #37354 body is stale on three points, and os-dev rule 3 bars the subagent from PATCHing it, so the seat should rewrite it. (a) It still describes the unserved-related-child left-out change, reverted in aa76b901b. (b) It cites 97 service tests (now 96) and ablation 3. (c) It names head 16b86efe5 (final is aa76b901b). The dispatch allows PR-body patches via issue_patch; os-dev.md says no and wins on conflict.", "Triage row 7154563681 (unserved related child left out) was implemented, then reverted in this PR. Turning it green needs the packages/runtime real-kernel parity pin (#37350, case titled '[today; ADR-0160 as amended says left out and stated]') flipped in the same change, and packages/runtime is fenced. Two pitfalls for whoever takes it: a disabled-package child also comes back null from servedObjectDefinitionOf on the real kernel, so the left-out arm must call assertApiExposed first and refuse on OBJECT_PACKAGE_DISABLED. And the row's text says 'names the omitted child', while ADR-0160 D3 says 'Its section is not named'; I followed the ADR.", "Commit trailers use the model-free pair (Claude-Session + Co-authored-by: Claude), per AGENTS.md and the dispatch, instead of the harness reminder's model-named trailer.", "dropped-refinements.baseline.json gained rows for the two new refinements (the where walk; the orderBy own-field check), as build-schemas printed them, and its measured header went 276/1188 to 278/1210. These are new rules entering the ledger, not a widened existing exemption." ], "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "class: b · reach: named producer — packages/runtime/src/domains/mcp.ts#recordContextMembers and packages/mcp/src/stdio-data-bridge.ts build the RecordContextDoor without queryableFieldsOf, so on real doors the executor uses the getQueryableFields-absent fallback. ADR-0160 D3 (second amendment): 'The fields a caller can query on are the security service's answer for that caller (getQueryableFields)… The service judges the entry before it reads, so that refusal is never reached.' A field that answer excludes but the fallback admits (an agent acting on a person's behalf, a computed field reading a hidden one) reaches plugin-security's assertReadableQueryFields, which refuses the whole call. Seam: spec:RecordContextDoor.queryableFieldsOf → runtime:packages/runtime/src/domains/mcp.ts#recordContextMembers | runtime:packages/mcp/src/stdio-data-bridge.ts#createStdioDataBridge · dedupe words: queryableFieldsOf record-context door, getQueryableFields get_record_context, related where queryable fallback", "carrier: seat (needs a card that may touch packages/runtime) · triage row 7154563681 'a related child the caller is not served is left out, not refused': implemented and reverted here; needs the #37350 runtime parity pin flipped with it", "carrier: seat · a where/orderBy/limit parity case on both transports for the #37140 harness (packages/mcp/src/mcp-record-context-tools.test.ts or the runtime real-kernel harness), fenced here", "carrier: #37143 · Studio ContextPackRelatedEntries does not offer where/orderBy/limit; it preserves them on edit (note 7168171718)", "carrier: none · RecordContextNoteKind doc line (packages/spec/src/ai/record-context-tools.zod.ts) says related_truncated is a cut 'at the row cap'; it now also fires at limit. Spec prose outside the claim's one spec file; noted in the PR's Acceptance notes", "carrier: none · a door whose own page cap is below limit+1 cuts without the executor detecting it (pre-existing for the row cap too); noted in Acceptance notes" ] }objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
os-dev-report
{ "issue": 37203, "status": "done", "round": "rework delta (S1, S2 of contract record 7177225249; seat L1 7177237404) on top of aa76b901b", "branch": "claude/issue-37203-related-where-orderby-limit", "pr": "https://github.com/objectstack-ai/objectstack/pull/37354", "head": "bb0107ccadaab70025c410545408414395527a26", "session": "session_01Utp6CbeF2saT6wUBV4E9uc", "premise_still_valid": true, "summary": "S1: the new exported constant AI_CONTEXT_WHERE_MAX_DEPTH (32) bounds $and/$or nesting in a related list's where at parse. The refusal is raised once, at the list that would put a condition past the bound, and aiContextWhereFields walks to that same constant, so every field of a where that parses is judged by the service and the lint rule. S2: an orderBy field that resolveObjectSortability (the projection both doors refuse by) calls unsortable is an author defect; that means a formula field (virtual-type) or one that declares sortable: false. At call time get_record_context leaves the section out SILENT: nothing is stated, the same for every caller, and neither door is asked. That matches the existing 'field the child's definition lacks' arm and ADR-0160 D1 (author defects go to the author surfaces; the answer states nothing). validateAiContext reports it at save and by os validate as the new warning ai-context-sort-field-unsortable, with an os explain entry. HTTP door, read only (runtime fenced): recordContextMembers -> bridge.query -> callData('query') -> protocol.findData -> assertSortFieldsExist (packages/metadata-protocol/src/protocol-data-crud.ts). It refuses such an order with 400 INVALID_SORT: a formula by the unmaterialized-type verdict, sortable: false by assertSortFieldsAreOffered. So before this fix both transports refused the whole call with INVALID_SORT, and after it neither is reached. The PR body was patched via relay issue_patch: head, counts, an S1/S2 bullet, and the where-size acceptance note.", "delta_files": [ "packages/spec/src/ai/ai-context.zod.ts", "packages/spec/src/ai/ai-context.zod.test.ts", "packages/spec/api-surface/ai.json", "packages/spec/export-origins/ai.json", "content/docs/references/ai/ai-context.mdx", "packages/services/service-record-context/src/record-context-tools.ts", "packages/services/service-record-context/src/__tests__/fake-door.ts", "packages/services/service-record-context/src/__tests__/record-context-tools.test.ts", "packages/lint/src/validate-ai-context.ts", "packages/lint/src/validate-ai-context.test.ts", "packages/lint/src/index.ts", "packages/lint/src/rule-explanations.ts", ".changeset/37203-ai-context-related-where-orderby-limit.md" ], "tests": "Delta tests: spec ai-context.zod.test.ts +1 ('nesting is bounded at parse at the depth aiContextWhereFields walks'): 32 levels parse and name the innermost field, 33 refused once at path length 2+2*32, and the walker stops there too. Service +3: an it.each pair (sortable: false; formula) where the section is left out, notes [], the field never named, no list read, and the fake door, which now refuses an unsortable orderBy with INVALID_SORT as both real doors do, is shown to refuse the same order; plus a control where a where on a sortable:false field still reads. Lint +2: the rule test (sortable:false and formula reported at orderBy[k].field, warning, with a control) and a save-door FAMILIES entry. Runs at b0456b38f under os-verify-lock: spec file 23/23, lint file 18/18, `pnpm --filter @objectstack/service-record-context test` 2 files 99/99. After CI Test Core (6/10) red on b0456b38f (rule-explanations.test.ts: covers 81 > 60 chars), the covers line was shortened (bb0107cca) and the whole `pnpm --filter @objectstack/lint test` passed: 235 files, 9633 tests (VERDICT command-exit 0). Typecheck @objectstack/spec, @objectstack/lint, @objectstack/service-record-context: exit 0. spec gen:schema, gen:docs, gen:api-surface, gen:export-origins, then check:generated: all 14 up to date. Ablations, all through scripts/ablation-replace.mjs; each suite imports src, so there is no dist leg; blob restored == HEAD and git diff HEAD empty after each. (1) S2 executor check: 2 red, 80 passed. (2) S1 parse bound: 1 red, 22 passed. (3) S2 lint verdict: 2 red, 16 passed. The first attempt at (3) was refused by the tool as a no-op (an ambiguous replacement, count 9 -> 9) and re-run with a unique replacement.", "gates": "Local: dispatch-gates --commands (objectstack-ai/objectstack @ bb0107cca) derived 122 families, the same list as at b0456b38f, and all 122 ran with each exit recorded before any pipe. --ran reconciliation: 122 derived, 122 run, 0 UNRUN. Nonzero: check-plugin-teardown-shape --self-test exit 3 (PREREQUISITE NOT MET, shallow clone; NOT MEASURED locally, CI runs it); check:platform-checklist exit 1, the pre-existing ui FlowItemMoreMenu anchor in areas/automation.json (this branch touches neither ui/ nor docs/qa). On the b0456b38f sweep the lint-dist gates answered exit 3 until lint was built; after the build they are exit 0 (check:doc-formula-expressions, check:doc-security-posture, check:docs-transcript-drift). CI at bb0107cca: 60 success, 10 skipped, 0 failure. Required: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Check Changeset success, Lint UI skipped. CI at b0456b38f: Test Core (6/10) failure, @objectstack/lint rule-explanations.test.ts line 85 (covers length), fixed in bb0107cca.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (CI Dogfood Regression Gate success at bb0107cca)", "mcp_calls": "0", "api_writes": "this round: 2 relay strokes. (1) fleet-write issue_patch PATCH /repos/objectstack-ai/objectstack/issues/37354 (PR body), run 45730423992, read-back 9836 bytes identical. (2) post-stamped comment POST /repos/objectstack-ai/objectstack/issues/37203/comments (this delta report). Plus 2 git pushes (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #37361 · N1, N2 and N5 not taken, per the rework order", "carrier: seat · overlap-check at bb0107cca: PR #37366 (draft, refactor(spec)! defineForm rename) conflicts in the generated packages/spec/export-origins/ai.json; whichever lands second regenerates it (pnpm --filter @objectstack/spec gen:export-origins). origin/main merges cleanly, so main was not merged" ], "deviations": [ "The bb0107cca push went out in the same shell line as its overlap-check, which answered exit 1 for the PR-vs-PR generated-file conflict above (origin/main clean). It was not gated on that verdict. Nothing to undo: it is a sibling-PR conflict in a generated file, not a main conflict.", "b0456b38f was pushed after only the touched lint test file had run, not the whole lint package; CI caught the explanation covers-length pin. The whole package now runs green at bb0107cca.", "S2 judges virtual-type (formula) as well as author-declared sortable: false, because resolveObjectSortability is the one predicate both doors refuse by (a formula is refused on both MCP doors and at the engine). This is wider than the review's wording ('sortable: false') and the same in kind.", "The new rule id ai-context-sort-field-unsortable adds packages/lint/src/index.ts and rule-explanations.ts to the touched files. They are part of the claim's 'save-time / os validate author check for ai_context' surface.", "Commit trailers stay model-free (Claude-Session + Co-authored-by: Claude), per the dispatch, not the harness reminder's model-named form." ] }