Repository navigation
docs(adr): ADR-0161 dated note — the document hash covers the organization of a document that has one (K8 items 2 and 9) - #37263
Conversation
…ation of a document that has one (K8 items 2 and 9) K8 rule 3 names a dated note as the form of a change to a decided shape. The note under K8's table records that item 2's hash covers the document as the service assembles it, which since item 9 includes organizationId when the document has one; a document without one hashes as before, so the version prefix is not bumped. It also carries the rule for a later optional member and the sentence an adapter author needs: an adapter that stores docHash stores organizationId from the same version on. Claude-Session: https://claude.ai/code/session_01QSeKYkXwZ3ECV8yacsjMJM Co-authored-by: Claude <noreply@anthropic.com>
… the later-member rule to what assembly sets Three wording changes inside the dated note under K8's table: the parenthesis listed everything assembly set on a document, its identity aside; the rule for a later optional member is about a member that assembly sets; and the note says "complete reindex", the words the spec TSDoc on organizationId uses for the same walk. Claude-Session: https://claude.ai/code/session_01QSeKYkXwZ3ECV8yacsjMJM Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYkXwZ3ECV8yacsjMJM {
"issue": null,
"status": "done",
"branch": "claude/issue-37097-adr-0161-dochash-note",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37263",
"pr_number": 37263,
"head_sha": "dd1756af23aa77d637584512556706c9a902ace4",
"session": "session_01QSeKYkXwZ3ECV8yacsjMJM",
"premise_still_valid": true,
"summary": "No-card order under card #37097 (zone a4-K, seat repo:objectstack#4). One docs-only change to ADR-0161: a dated note under the table of K8 on items 2 and 9, and one `Amended` pointer bullet at the end of the header list; one file, 9 lines added, none removed, no anchor entry, no changeset. The note records that the hash of item 2 covers the document as the service assembles it, which with item 9 includes `organizationId` when the document has one, with no version bump; it gives the reason, the rule for a later optional member, and the adapter sentence of review 7157191417 (S2). Draft PR #37263 opens with `Part of #37097`, says plainly that it must merge before PR #37256, and is Tier H: it waits for the maintainer, and this session approved, merged and enqueued nothing. Premise verified: on origin/main d62f9e9c `computeDocHash` covers content, title and metadata; on the branch of PR #37256 at 3df745d2 (the head the review read) and at e8b0688f (its head now) `organizationId` enters the hashed body only when defined and `DOC_HASH_VERSION` stays `v1`.",
"note_text": {
"header_bullet": "- **Amended** (2026-11-25, [#37097](https://github.com/objectstack-ai/objectstack/issues/37097)): a dated note under the table of [K8](#k8--the-contract-additions-decided-item-by-item) records that the document hash of item 2 covers `organizationId` when the document has one (item 9), with no version bump. The status line above is left as it is.",
"note_under_k8_table": "> **Note (2026-11-25, [#37097](https://github.com/objectstack-ai/objectstack/issues/37097), built by [#37256](https://github.com/objectstack-ai/objectstack/pull/37256)) — items 2 and 9: the hash covers the organization of a document that has one.** Item 2's hash covers the document as the service assembles it. The parenthesis \"content, title, metadata\" was everything assembly set on a document, its identity aside, when item 2 was accepted. Item 9 adds `organizationId` to the assembled document when the document has one, and the hash covers it then. A document without one hashes byte for byte as it did before, so the version prefix is not bumped.\n>\n> - **Why.** A document that gains an organization, loses it or moves to another one gets a new hash, so a complete reindex never leaves a stale organization on a stored document. The other answer kept the parenthesis and bumped the version. It leaves a later change of organization to the events alone, and missed events are the hole reconcile exists to close (K1).\n> - **A later optional member that assembly sets** enters the hash the same way, left out when it is absent, or the version is bumped.\n> - **An adapter that stores `docHash` stores `organizationId` from the same version of the adapter on.** Otherwise, once it starts to read item 9, a complete reindex skips its documents, because the hashes match, and a search filtered by organization never ranks them.\n>\n> Item 9's first reader, #37097, is built by PR #37256, and this change to item 2 lands with it. The reasoning is contract review [`7157191417`](https://github.com/objectstack-ai/objectstack/pull/37256#issuecomment-7157191417) on that PR (its M1 and S2). The table is left as written; read items 2 and 9 with this note."
},
"tests": "No test: the diff is one Markdown file. No package is touched, so there is no dependency closure to build, no package test or typecheck owed, and no ablation (docs are not ablated). The gate union was run after the last commit, at dd1756af: 21 of 21 exit 0 (see gates).",
"gates": {
"local_head": "dd1756af",
"derived": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack — 21 commands from 1 path against merge base d62f9e9c; each run with output redirected to a file and the exit code read before any pipe",
"runs_at_dd1756af": [
"node scripts/check-adr-links.mjs → exit 0",
"node scripts/check-adr-links.mjs --self-test → exit 0",
"node scripts/check-closing-keyword-parity.mjs → exit 0",
"node scripts/check-closing-keyword-parity.mjs --self-test → exit 0",
"node scripts/check-comment-mask-corpus.mjs → exit 0",
"node scripts/ci/plan-test-core-shards.mjs --self-test → exit 0",
"pnpm --filter @objectstack/lint run check:doc-formula-expressions → exit 0",
"pnpm check:adr-anchors → exit 0",
"pnpm check:adr-index → exit 0",
"pnpm check:adr-symbol-anchors → exit 0",
"pnpm check:ci-filter-parity → exit 0",
"pnpm check:closed-ceremony-text → exit 0",
"pnpm check:cross-package-test-inputs → exit 0",
"pnpm check:doc-authoring → exit 0",
"pnpm check:driver-memory-census → exit 0",
"pnpm check:gitlink-declared → exit 0",
"pnpm check:nul-bytes → exit 0",
"pnpm check:pm-governed-merges → exit 0",
"pnpm check:pm-prior-rulings → exit 0",
"pnpm check:refd-timer-probe → exit 0",
"pnpm check:watch-hint-literal → exit 0"
],
"ran_reconciliation": "node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran (exit codes recorded) at dd1756af, exit 0: \"Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN.\"",
"first_run_at_15616e2f": "20 exit 0; `pnpm --filter @objectstack/lint run check:doc-formula-expressions` exit 3, PREREQUISITE NOT MET (it imports the compiled output of @objectstack/formula and @objectstack/lint, not built in a fresh worktree). Built both under the verify lock (`VERDICT command-exit 0`, held 99s, waited 0s); re-run exit 0 at 15616e2f and at dd1756af.",
"adr_anchor_gate": "pnpm check:adr-anchors exit 0 with no new scripts/adr-anchors entry, so the gate does not require one for the note.",
"overlap_check": "node scripts/pm/overlap-check.mjs --branch=claude/issue-37097-adr-0161-dochash-note before each of the 3 pushes: exit 0, \"VERDICT clean exit 0\" (at dd1756af: 1 changed file, against origin/main d62f9e9c and 0 PR heads).",
"ci_check_runs_at_dd1756af": "One read right after the PR opened, not waited for: 45 check-runs — 5 success (filter; Governed Surface Queue Guard; Check PR Size; Check Changeset; Check Documentation Links), 17 in_progress (among them Lint · repo & tooling gates, Lint · docs & code guards, Lint · PM dispatch-gates, Lint · ESLint, Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger, Test UI, Dogfood Regression Gate, Plan Test Core shards, PR-body guards), 23 skipped (opt-in, UI and queue-only jobs). in_progress is the honest value; CI convergence is the seat’s to read."
},
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"pr_state_read_back": "PR #37263: open, draft, base main, head dd1756af23aa77d637584512556706c9a902ace4, 1 file, +9 −0, labels size/xs and skip-changeset, assignee os-justin, auto-merge not armed. Body: 11264 bytes sent, 11264 stored, identical.",
"mcp_calls": "0 — no MCP GitHub call, read or write. GitHub reads went through `gh api` GETs (comments 7157191417, 7157210840 and 7155140070; pulls 37240, 37256 and 37263; the pulls list filtered by this head; check-runs at dd1756af). The copy of this report sent to session_01QSeKYpRrYuqSLCvbSk9zrL goes by the session tool `send_message`, which is not a GitHub call.",
"api_writes": "2 relay strokes, both as objectstack-fleet[bot]. (1) scripts/pm/fleet-write/dispatch.mjs `pr_create` (draft, assignees [os-justin], labels [skip-changeset]) → PR #37263, run 45582061807, conclusion success; endpoints on the runner: POST /repos/objectstack-ai/objectstack/pulls, POST /repos/objectstack-ai/objectstack/issues/37263/assignees, POST /repos/objectstack-ai/objectstack/issues/37263/labels. (2) scripts/pm/post-stamped.mjs --comment=37263, this report: POST /repos/objectstack-ai/objectstack/issues/37263/comments. Not REST writes: 3 git pushes to the branch (the empty-branch probe, 15616e2f, dd1756af). No write to card #37097: no claim, no assignee, no label.",
"deviations": [
"Order point 6 says the item 9 reader \"landed\" in PR #37256. This note merges first, so it says the reader \"is built by PR #37256, and this change to item 2 lands with it\", true before and after that merge.",
"\"The whole assembled document\" is written as \"everything assembly set on a document, its identity aside\": on origin/main d62f9e9c `recordToDocument` also sets `id`, `sourceId` and `sourceRecordId`, which the hash never covered.",
"The rule for a later optional member is scoped to a member \"that assembly sets\", so it is not read as a rule about every optional key of `KnowledgeDocument` (the chunk channel of item 5 is set by the splitter and belongs to the fingerprint of K7).",
"\"From the same version on\" is written as \"from the same version of the adapter on\", because the note also speaks of the version prefix of the hash; \"a walled search\" is written as \"a search filtered by organization\", because the record uses the word \"wall\" nowhere.",
"Added beyond the order’s six points: one `Amended` bullet at the end of the header list (the form of ADR-0151, whose header has the same shape; the Status line is byte-identical, so the generated docs/adr/README.md is unchanged), and one sentence in the note citing contract review 7157191417 (its M1 and S2).",
"PR body: the seat signature is a plain line under the first line, the shape PR #37256 uses; no HTML comment anywhere in the body.",
"Second commit dd1756af after the first gate run: three wording changes inside the note. The whole derived union was run again at dd1756af before the PR was opened.",
"`test:repo` was not run locally: the diff touches no test of that project and the derivation does not name it; CI’s Test Core owns it.",
"`pnpm install` and a build of @objectstack/formula and @objectstack/lint ran in the worktree only to measure one derived gate; nothing they produce is tracked or committed."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat repo:objectstack#4 (contract review 7157191417, N4) · no scripts/adr-anchors entry for K8 item 9 in code; the ADR-anchor gate asks for none for this note, and the file surface of this order excludes one unless the gate requires it · noted, not filed"
]
} |
… TSDoc carries The sentence on what an adapter stores now reads word for word as the TSDoc on KnowledgeDocument.organizationId does on the branch that builds item 9, so the record and the contract say one sentence, not two. The bullet opens with a plain label and the sentence follows it unbroken. Claude-Session: https://claude.ai/code/session_01QSeKYkXwZ3ECV8yacsjMJM Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYkXwZ3ECV8yacsjMJM {
"issue": null,
"status": "done",
"round": "2 — a patch round on the same order, after three messages from the zone session session_01QSeKYpRrYuqSLCvbSk9zrL that were read only after the first report",
"branch": "claude/issue-37097-adr-0161-dochash-note",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37263",
"pr_number": 37263,
"head_sha": "aec560807bc964835469e5062b5baa3dfe775a02",
"previous_head_sha": "dd1756af23aa77d637584512556706c9a902ace4",
"session": "session_01QSeKYkXwZ3ECV8yacsjMJM",
"premise_still_valid": true,
"summary": "One sentence of the dated note changed; nothing else did. The adapter sentence under the table of K8 now reads word for word as the TSDoc on `KnowledgeDocument.organizationId` reads on the branch of PR #37256 at its head 6e978db3, as the zone asked in its last message. The diff against main is still one file, 9 lines added, none removed. The PR stays a draft and Tier H; this session approved, merged and enqueued nothing. The PR body was written once at `pr_create` and is now stale in the places listed under seat_action; this session does not rewrite it.",
"zone_messages": [
"Message 1 (a line-initial `Rule-change:` line in the PR body, per the PR template under .github): NOT done. `.github/PULL_REQUEST_TEMPLATE.md` says the line is added \"Only when this pull request changes a file under `.claude/`\" and that \"Every other pull request leaves it out\"; os-dev.md says the same (a diff that touches the root `.claude/` tree). This PR changes one file under docs/adr/. Where a dispatch word and os-dev.md differ, os-dev.md holds and the difference is named here. A dev also writes a PR body only at `pr_create`.",
"Message 2 (the adapter sentence in the words of the TSDoc at e8b0688f, the longer sentence): superseded by message 3 before it was read; not applied.",
"Message 3 (the adapter sentence in the words of the TSDoc at 6e978db3, called final): applied in commit aec56080. Verified first: PR #37256 is at head 6e978db363c73dc9d151549ef46d6c141bc679ac, and the TSDoc sentence there, with its comment line breaks joined, is contained in the note exactly once, byte for byte. The hash recipe is unchanged at that head (`organizationId` enters the hashed body only when defined; `DOC_HASH_VERSION` stays `v1`). One difference from what the message says: its sentence is not the order’s first wording word for word (the order said \"once it starts reading item 9\" and \"(the hashes match)\"; the TSDoc says \"once it starts reading this field\" and has no parenthesis). The note follows the TSDoc, which is the stated aim."
],
"note_text": {
"header_bullet": "- **Amended** (2026-11-25, [#37097](https://github.com/objectstack-ai/objectstack/issues/37097)): a dated note under the table of [K8](#k8--the-contract-additions-decided-item-by-item) records that the document hash of item 2 covers `organizationId` when the document has one (item 9), with no version bump. The status line above is left as it is.",
"note_under_k8_table": "> **Note (2026-11-25, [#37097](https://github.com/objectstack-ai/objectstack/issues/37097), built by [#37256](https://github.com/objectstack-ai/objectstack/pull/37256)) — items 2 and 9: the hash covers the organization of a document that has one.** Item 2's hash covers the document as the service assembles it. The parenthesis \"content, title, metadata\" was everything assembly set on a document, its identity aside, when item 2 was accepted. Item 9 adds `organizationId` to the assembled document when the document has one, and the hash covers it then. A document without one hashes byte for byte as it did before, so the version prefix is not bumped.\n>\n> - **Why.** A document that gains an organization, loses it or moves to another one gets a new hash, so a complete reindex never leaves a stale organization on a stored document. The other answer kept the parenthesis and bumped the version. It leaves a later change of organization to the events alone, and missed events are the hole reconcile exists to close (K1).\n> - **A later optional member that assembly sets** enters the hash the same way, left out when it is absent, or the version is bumped.\n> - **What an adapter stores.** An adapter that stores `docHash` stores `organizationId` from the same version on; otherwise, once it starts reading this field, a complete reindex skips its documents and a walled search never ranks them.\n>\n> Item 9's first reader, #37097, is built by PR #37256, and this change to item 2 lands with it. The reasoning is contract review [`7157191417`](https://github.com/objectstack-ai/objectstack/pull/37256#issuecomment-7157191417) on that PR (its M1 and S2). The table is left as written; read items 2 and 9 with this note.",
"changed_bullet": "> - **What an adapter stores.** An adapter that stores `docHash` stores `organizationId` from the same version on; otherwise, once it starts reading this field, a complete reindex skips its documents and a walled search never ranks them."
},
"tests": "No test: the diff is one Markdown file. The gate union was run again after the last commit, at aec56080: 21 of 21 exit 0.",
"gates": {
"local_head": "aec56080",
"derived": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack — the same 21 commands as in round 1 (1 path against merge base d62f9e9c; origin/main has since moved to 9171bed0a6 and touches none of this file, scripts/adr-anchors or docs/adr/README.md)",
"runs_at_aec56080": [
"node scripts/check-adr-links.mjs → exit 0",
"node scripts/check-adr-links.mjs --self-test → exit 0",
"node scripts/check-closing-keyword-parity.mjs → exit 0",
"node scripts/check-closing-keyword-parity.mjs --self-test → exit 0",
"node scripts/check-comment-mask-corpus.mjs → exit 0",
"node scripts/ci/plan-test-core-shards.mjs --self-test → exit 0",
"pnpm --filter @objectstack/lint run check:doc-formula-expressions → exit 0",
"pnpm check:adr-anchors → exit 0",
"pnpm check:adr-index → exit 0",
"pnpm check:adr-symbol-anchors → exit 0",
"pnpm check:ci-filter-parity → exit 0",
"pnpm check:closed-ceremony-text → exit 0",
"pnpm check:cross-package-test-inputs → exit 0",
"pnpm check:doc-authoring → exit 0",
"pnpm check:driver-memory-census → exit 0",
"pnpm check:gitlink-declared → exit 0",
"pnpm check:nul-bytes → exit 0",
"pnpm check:pm-governed-merges → exit 0",
"pnpm check:pm-prior-rulings → exit 0",
"pnpm check:refd-timer-probe → exit 0",
"pnpm check:watch-hint-literal → exit 0"
],
"ran_reconciliation": "node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran (exit codes recorded) at aec56080, exit 0: \"Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN.\"",
"prerequisite_build": "the worktree was recreated for this round; @objectstack/formula and @objectstack/lint were built under the verify lock before the run (`VERDICT command-exit 0`, 5 of 5 tasks from cache), so `check:doc-formula-expressions` was measured: exit 0.",
"overlap_check": "node scripts/pm/overlap-check.mjs --branch=claude/issue-37097-adr-0161-dochash-note before the push of aec56080, against origin/main d62f9e9c and again against origin/main 9171bed0a6: exit 0 both times, \"VERDICT clean exit 0\", 0 PR heads.",
"ci_check_runs_at_aec56080": "One read after the local run, not waited for: 43 check-runs — 23 success (Lint & Repo Gates; TypeScript Type Check; Test UI; Dogfood Regression Gate; Governed Surface Queue Guard; PR-body guards; Check Documentation Links; Check PR Size; Plan Test Core shards; Auto Label; filter; the Lint and Type Check lanes), 1 in_progress (Test Core 1/10), 19 skipped, 0 failed.",
"ci_check_runs_at_dd1756af": "The previous head, read at the same time: 25 success (Test Core, Lint & Repo Gates, TypeScript Type Check, Dogfood Regression Gate, Check Changeset and PR-body guards among them), 1 cancelled (the Test Core 1/10 shard, cancelled by the new push), 23 skipped, 0 failed."
},
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"pr_state_read_back": "PR #37263: open, draft, base main, head aec560807bc964835469e5062b5baa3dfe775a02, 1 file, +9 −0, labels documentation, size/xs and skip-changeset, assignee os-justin, auto-merge not armed. Body unchanged since `pr_create` (11264 bytes).",
"seat_action": [
"The PR body is the seat’s to bring to the new head (a dev writes it once, at `pr_create`). Stale at aec56080: (1) under What changes, the third bullet of the quoted note, which is now the text in note_text.changed_bullet; (2) in the table under it, the last two rows cite e8b0688f, and the branch of PR #37256 is now at 6e978db3 with the TSDoc sentence equal to the note’s; (3) under Tests, the final head is aec56080 and there were four pushes; (4) under Acceptance notes, the two wording bullets on \"from the same version of the adapter on\" and \"a search filtered by organization\" no longer hold and go; (5) under Verification, Read first item 1 quotes the old sentence.",
"No `Rule-change:` line was added (zone message 1); if the seat still wants one on a docs/adr PR, that is a body edit of the seat’s and a reading the template does not give."
],
"mcp_calls": "0 — no MCP GitHub call, read or write, in either round. GitHub reads went through `gh api` GETs. The notifications were read with the session tool, and the copies of the reports went by the session tool `send_message`; neither is a GitHub call.",
"api_writes": "3 relay strokes in all, each as objectstack-fleet[bot]. Round 1: (1) `pr_create` → PR #37263 (POST /repos/objectstack-ai/objectstack/pulls, POST .../issues/37263/assignees, POST .../issues/37263/labels); (2) post-stamped report comment 7157915424 (POST .../issues/37263/comments). Round 2: (3) post-stamped --comment=37263, this report (POST .../issues/37263/comments). Not REST writes: 4 git pushes to the branch (the empty-branch probe, 15616e2f, dd1756af, aec56080), none forced. No PATCH of the PR body. No write to card #37097.",
"deviations": [
"Round 1 deviation 4 is withdrawn by this round: the note no longer says \"of the adapter\" or \"a search filtered by organization\". The other round 1 deviations stand (the reader \"is built by\" PR #37256; \"everything assembly set on a document, its identity aside\"; the later-member rule scoped to what assembly sets; the header bullet; the citation of review 7157191417).",
"The changed bullet opens with a plain label, \"What an adapter stores.\", so that the sentence after it is unbroken by markup and matches the TSDoc as one string.",
"Reading notes on the adopted sentence, for the approver, not a request: \"the same version\" stands one bullet below \"or the version is bumped\", so it can be read as the adapter’s version or as the hash’s; both readings give the same rule, that an adapter which stores the hash stores the organization. \"Walled\" and \"this field\" are the TSDoc’s words: the record does not use \"wall\" elsewhere, and \"field\" elsewhere in it means a field of an object.",
"The first report was sent before the three zone messages were read: they were queued while round 1 ran and the session read its notifications only after it had reported.",
"`test:repo` was not run locally (as in round 1); CI’s Test Core owns it and one of its shards was still running at the read."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat repo:objectstack#4 (contract review 7157191417, N4) · no scripts/adr-anchors entry for K8 item 9 in code; the ADR-anchor gate asks for none for this note · noted, not filed"
]
} |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flagsEach declared deviation, at this head:
Further flags of round 2: the label "What an adapter stores." is fine and keeps the sentence unbroken. The dev states that the PR body was written once and is stale at this head; that is the seat's to settle and is in the seat's L1, not in this record's scope. Open questions: none. The out-of-scope item (no SQL push-down (Prime Directive 5): no code in the diff. ④ Design judgmentAgainst its first consumer, #37256 at
Against the record itself:
A versus B, as the "Why" bullet states it: correct, and the same as review
Implemented-by: VERDICT: PASS No must-fix, no should-fix. |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
席位意见:通过。说明逐句对照了 #37256 的代码,都对得上;给适配器作者的那句话与接口注释里的一字不差;索引页没有变动,检查全绿;与主干、与 #37256 合并都干净。剩 3 处读法上的小提示,不需要改。 Hand-off · 2026-11-25T09:33Z · @os-zhuang — PR #37263 ( |
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Part of #37097
repo:objectstack#4 · os-justin · session_01QSeKYkXwZ3ECV8yacsjMJM
Clause-②: yes
Metadata-protocol: none
维护者速读
What changes
One file under
docs/adr/:0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md, 9 lines added and none removed againstmain. No schema, no code, no changeset.This PR must merge before PR #37256. That PR changes the hash recipe of K8 item 2, and K8 rule 3 gives the form of such a change: "the change is a dated note on this record". Contract review
7157191417on PR #37256 (its finding M1) and the seat's L17157210840hold that PR until this note has merged.docs/adr/**is Tier H: the maintainer merges this PR; no seat approves, merges or enqueues it.Part of #37097, not a closing line: the card's implementation is PR #37256 and stays there. This PR carries the record's note and nothing else.Two additions, both in the form sibling records already use (ADR-0090 and ADR-0151, notes of 2026-11-24):
Note (2026-11-25, card, built by PR). The table is left as written.Amendedbullet at the end of the header list, pointing at the note. TheStatus:line is byte-identical, so the generateddocs/adr/README.mddoes not change and is not in the diff.The note, as it stands at the head:
The header bullet:
What each sentence of the note rests on:
packages/services/service-knowledge/src/knowledge-service.ts#computeDocHashonorigin/mainatd62f9e9crecordToDocumentin the same file atd62f9e9c:id,sourceId,sourceRecordIdbesidecontent,title,metadatav1computeDocHashandDOC_HASH_VERSIONon PR #37256's branch ate8b0688f(and unchanged from3df745d2, the head the review read)7157191417; character for character the spec TSDoc onKnowledgeDocument.organizationIdon PR #37256 at6e978db3Tests
No test changes: the diff is one Markdown file. The derived gate families were run at
dd1756af. The final headaec56080changes only the adapter sentence's wording, and CI ataec56080is 25 success, 19 skipped, 0 failed.Local gates at dd1756a: 21 derived, 21 run, all exit 0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 21 commands from the branch's change set (1 path against merge based62f9e9c). Each was run with its output redirected to a file and its exit code read before any pipe.node scripts/check-adr-links.mjsnode scripts/check-adr-links.mjs --self-testnode scripts/check-closing-keyword-parity.mjsnode scripts/check-closing-keyword-parity.mjs --self-testnode scripts/check-comment-mask-corpus.mjsnode scripts/ci/plan-test-core-shards.mjs --self-testpnpm --filter @objectstack/lint run check:doc-formula-expressionspnpm check:adr-anchorspnpm check:adr-indexpnpm check:adr-symbol-anchorspnpm check:ci-filter-paritypnpm check:closed-ceremony-textpnpm check:cross-package-test-inputspnpm check:doc-authoringpnpm check:driver-memory-censuspnpm check:gitlink-declaredpnpm check:nul-bytespnpm check:pm-governed-mergespnpm check:pm-prior-rulingspnpm check:refd-timer-probepnpm check:watch-hint-literalReconciliation,
node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ranwith the exit codes recorded, atdd1756af:Verdict lines from that run:
One family was not measured on its first run. At the first commit
15616e2f,check:doc-formula-expressionsexited 3, PREREQUISITE NOT MET: it imports the compiled output of@objectstack/formulaand@objectstack/lint, and neither was built in a fresh worktree. Afterpnpm exec turbo run build --concurrency=2 --filter=@objectstack/formula --filter=@objectstack/lintunder the verify lock (VERDICT command-exit 0), it exited 0 at15616e2fand again atdd1756af.node scripts/pm/overlap-check.mjs --branch=claude/issue-37097-adr-0161-dochash-notebefore each of the three pushes:VERDICT clean exit 0(atdd1756af: 1 changed file, againstorigin/maind62f9e9cand 0 PR heads).Acceptance notes
id,sourceIdandsourceRecordId, and the hash never covered those.KnowledgeDocument(the chunk channel of item 5 is set by the splitter and belongs to K7's fingerprint).aec56080), so the record and the contract say the same thing.Amendedbullet per dated note.7157191417, so that the approver finds the reasoning from the record itself.scripts/adr-anchorsentry.pnpm check:adr-anchorsexits 0 without one, so the gate does not require it for the note. The review's N4 (an anchor for K8 item 9 in code) stays a follow-up outside this file surface.docs/adr/**publishes nothing and no derived gate asked for one; the PR carriesskip-changeset.3df745d2(the head the review read) to6e978db3. What changed there is a test file and the spec TSDoc; the hash recipe is the same at every head.Verification
Read first:
docHashstoresorganizationIdfrom the same version on": K8 rule 2 keeps every member optional, and this sentence says two of them are taken up together.computeDocHashon PR feat(service-knowledge): documents carry their organization, and search hands the adapter the caller's organizations #37256's branch,packages/services/service-knowledge/src/knowledge-service.ts, to hold the note against the recipe it describes.Two-minute check: open this PR's Files tab. It shows one file under
docs/adr/, +9 −0: oneAmendedbullet at the end of the header list, and one blockquote between K8's table and the paragraph that starts "What "capabilities" became."Body rewritten to head
aec56080by seat repo:objectstack#4 (session_01QSeKYpEsWWE9Y5YtSsDgqZ) from the dev's round-2 report 7158272523.Generated by Claude Code