Skip to content

ADR-0142 D4: amend the claim-race promise to the ruled answers (409 / 404 / 403, exactly one owner) and the queues docs paragraph with it #39223

Description

@objectstack-fleet

repo:objectstack@os-bill · os-bill · session_01Utp6CYUove7YBXgHy4iEsr

Filing gate: ② seat-filed, ruled term (1) of ruling 7363773549 on #39065 (option B). Source: fleet. Carries item (1) of #39065; #39065 keeps items (3) and (4) (Console sentence, race pin, probe-branch reset).

维护者速读

  • 问题:ADR-0142 D4 写的是「同时认领,输家一律 409」,实测做不到;你已裁定 B:把承诺写准。
  • 要做的:在 ADR-0142 D4 和 Codes 段加一条带日期的修订注记,写清三种回答(检查时还看得到记录且未被认领的输家得 409;检查晚于认领:读不到记录的得 404、读得到的得 403)和「只有一个负责人」不变量;同步改文档 queues-and-assignment-rules.mdx:137 那段,包括私有对象回 404。
  • 要你做的:这是 Tier H(改 docs/adr/**),落地前需要审批人批准。

Ruled terms (verbatim from 7363773549)

"(1) One Tier H PR: a dated amendment note in ADR-0142 D4 and in its Codes paragraph stating the three answers, who gets which, and the one-owner invariant; the docs paragraph rewritten to match, including that a private object answers 404. (2) Status codes, messages and the ownership gate are unchanged; no spec schema, context field or column is added."

Files (read on origin/main 440331f)

  • docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md (D4 "One owner" closing paragraph; Codes paragraph CONCURRENT_UPDATE 409 for a lost claim race)
  • content/docs/automation/queues-and-assignment-rules.mdx:137 (and the code-reader bullet at :166 that says code "handles 409 as someone else took it")

Acceptance

  • The ADR carries a dated amendment note citing ruling 7363773549; D4 and Codes agree with it; nothing else in the ADR changes.
  • The docs paragraph states the three answers and that a private object answers 404; the :166 bullet tells code to treat 409, 404 or 403 straight after a claim as "no longer available, reload".
  • No code, spec or status-code change.

Downstream: objectstack-ai/hotcrm#2642 unblocks once this note is on main (ruled term 5).

Activity

  1. added
    priority:p2
    domain:skills
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-03T01:06Z

    定级:area:data · Task · p2 · ADR-0142 D4「同时认领输家一律 409」实测做不到,按裁定 B 写准 · 读码(裁定 7363773549)

    • 作者定级保留;类型 Task,进 pm:queue。ADR 改动属 Tier H。
  3. added
    pm:queue
    on Dec 3, 2026
  4. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Claim: PM loop round 9 · card thread of seat repo:objectstack@os-bill (ruling B on #39065, 7363773549)
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Thread session: session_01Utp6CXA7kUkccMCRG2nBfJ
    Account: os-bill
    Branch: claude/project-thread-ohljq3
    Worktree: objectstack-issue-39223
    Domain: domain:skills
    Seat: repo:objectstack@os-bill
    File surface: docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md, content/docs/automation/queues-and-assignment-rules.mdx (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: claude-fable-5-2 (dispatch-gates --tier prints MANDATORY on docs/adr/**; served tier read by get_session: claude-fable-5-2, matches), effort: xhigh — reason: the ADR-revision row sets xhigh for docs/adr/** edits
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: inbox — the card thread re-reads the D4 closing paragraph, the Codes paragraph and the mdx lines 137 and 166 on origin/main 440331f1 before any edit, against ruling 7363773549.
    Serial constraints cleared: check-handover --inflight reads one overlap, #39102 (os-bob), whose surface holds the whole content/docs/ dir for the one page that documents app skills; it does not name the queues page, so no file is shared. The zone data-p2 keeps #39065 (Console sentence and race pin, claim 7363867578), on other files.
    Intake: hand-off from zone data-p2 (ADR cards sit outside a zone's hand-off set); the maintainer's ruling B on #39065.
    Landing: Tier H (governed docs/adr/**); contract-tier L2, seat ACCEPT, then the four-piece handoff to the approver; the seat lands after approval. On merge, the seat tells the hotcrm seat that objectstack-ai/hotcrm#2642 unblocks.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  6. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CXA7kUkccMCRG2nBfJ
    os-dev-report

    Card thread of seat repo:objectstack@os-bill, under claim 7363974897. Draft PR #39233, head 11a12bdbb1c235c5a2d049542acf7753a89904a1. Tier H: the thread does not ready, queue or request review.

    {
      "issue": 39223,
      "status": "done",
      "branch": "claude/project-thread-ohljq3",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39233",
      "session": "session_01Utp6CXA7kUkccMCRG2nBfJ",
      "served_tier": "get_session reads this session as served at CONTRACT_REVIEW_TIER, effort xhigh; matches the claim's Container & model line",
      "premise_still_valid": true,
      "summary": "One draft PR, two files, two commits (5e6b003d, 11a12bdb) on merge base 440331f1: docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md (+39/-1) and content/docs/automation/queues-and-assignment-rules.mdx (+12/-2). ADR-0142 gains a dated amendment citing ruling record 7363773549 in three places: a Status segment, a note in D4 between the 'One owner' paragraph and 'Release', and a note inside D9's Codes bullet. D4's note states the invariant (exactly one owner) and the three answers a claimant whose claim did not land can hear: 409 CONCURRENT_UPDATE for a claim the gate admitted on an unowned record whose write then matched nothing; 404 RECORD_NOT_FOUND for a claim judged after the owner is set where the caller cannot read the record (a private object, queue the only basis); 403 PERMISSION_DENIED where the caller can still read it. It says a client reads all three straight after a claim as 'no longer there to claim' and reloads, that a test asserts one owner and an answer from the set, never 409 alone, that options A and C were not taken, and that status codes, messages and the gate are unchanged and no schema, context field or column is added. D9's note says 'a lost claim race' is the case D4's note defines and that no code is added, renamed or re-registered. The queues page's 'Only one person wins' paragraph now gives the promise, the three answers, the private-object 404 and the reload advice, and its checklist bullet tells code to treat 409, 404 or 403 straight after a claim as 'no longer available' and to assert one owner in a two-claim test. No code, spec or status-code change.",
      "files_changed": [
        "docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md",
        "content/docs/automation/queues-and-assignment-rules.mdx"
      ],
      "tests": "None added and none owed: prose in one design record and one docs page, no behaviour changes, nothing to ablate. A live check is not owed: the diff changes no MCP tool text or result, no skills file, no dataset behaviour and not the package doc tools. Premise check, read on origin/main 440331f1 as the ruling's premise clause orders. Premise 1 holds: in packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts the claim branch opens at line 2245 and the file's only writePrecondition assignment is line 2256, inside it. Premise 2 holds: the row check of the same file answers recordNotFoundError where the caller cannot read the addressed row (the block under the comment at line 1640) and PermissionDeniedError where it can read and may not write; packages/core/src/utils/record-not-found.ts sets RECORD_NOT_FOUND and 404. Premise 3 holds: ui/packages/app-shell/src/views/RecordDetailView.tsx line 2610 (detail.claimFailed) and line 2615 (notifyDataChanged). Premise 5 holds: ui/packages/plugin-detail/src/queueClaim.ts sends owner_id alone (comment at lines 180 to 183). NOT MEASURED: premise 4 and the ruling's named I/O-tick premise, reason: both are runs of the probe files, which the ruling keeps out of every pull request and which the pin work under claim 7363867578 owns.",
      "gates": "Local, at head 11a12bdb: dispatch-gates --commands derives 49 commands against merge base 440331f1; all 49 ran with exit 0, each code captured before any pipe; --ran prints 'Run reconciliation — 49 derived, 49 run, 0 NOT-MEASURED, 0 UNRUN'. check:docs-transcript-drift first answered exit 3 (prerequisite not met: the lint package was not built); it answered 0 after two builds under the verify lock, the @objectstack/lint closure (5 tasks, 93 s) and the @objectstack/client-react closure (47 tasks, 209 s). check-governed-merges --branch: landing tier H, 54 changed lines (+51/-3). adr-index --report: README current. Pre-push hook check:commit-card-trailers passed on both pushes. CI on the head at the time of this report: 50 check runs, 14 success, 26 skipped, 10 in progress, 0 failed; the final CI result is NOT MEASURED, reason: the report does not wait for the 10 running jobs. The 49 exit codes are in the PR body.",
      "deviations": [
        "One clause goes past the ruling's wording: a caller who can edit the record and holds the transfer grant is answered by a successful transfer once the record has an owner, not by 404 or 403. D4's closing paragraph already admits that write and the gate tests the grant first (hasTransferGrant at line 2220), so '404 or 403' alone would be false for that caller. It is one clause in the D4 note and one sentence on the queues page; L1, L2 or the approver can strike both.",
        "The Status line gains a segment. The card says nothing else in the ADR changes; the segment is how this record registers each amendment, so it is taken as part of the note. docs/adr/README.md is unchanged.",
        "The Console sentence on the queues page (line 139, 'when someone beats you to it, it says so') is left as it is: it is true of the 409 path today, and ruled term (3) changes the Console in the claim-race card's own pull request, which is where that sentence gets its update.",
        "The project's standing step to request the requester's review after opening a PR was not done: the assignee os-bill rode pr_create, and the review request belongs to the seat's hand-off.",
        "dev-worktree.sh cannot build a tree for a platform branch that is already checked out, so the primary checkout was detached at origin/main and the worktree added by hand, then pinned with dev-worktree.sh --pin-base."
      ],
      "mcp_calls": "0 GitHub MCP calls. Two session calls on the claude-code-remote server, neither a GitHub write: get_session (the served tier) and subscribe_pr_activity on #39233.",
      "api_writes": "2 relay strokes: (1) fleet-write dispatch fw-20261203T014034Z-38a097, run 47013535419, op pr_create (the draft create with assignee os-bill and label skip-changeset; read back identical, 14692 bytes), (2) this report comment through post-stamped. Plus two git pushes of the branch, which are not REST writes.",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: the race pin under claim 7363867578 on the claim-race card, if the zone takes it · noted, not filed · read from the code, not run. On an UNOWNED record the gate tests the transfer grant before the claim case (hasTransferGrant, then continue, at line 2220; the claim branch is line 2245), so a claim by a grant holder carries no owner_id: null precondition, and modifyAllRecords covers transfer. D4's first paragraph puts the claim case 'ahead of the grant check' and names modifyAllRecords among the claimants. The reading: two such callers claiming at once are both answered 200 and the later write decides the owner. One owner still, and neither caller is told. This PR takes no side: both of its statements about a grant holder concern a record that already has an owner, where the ADR and the code agree.",
        "carrier: the Console pull request of the claim-race card (ruled term 3) · noted, not filed. The queues page's Console sentence at line 139 will owe an update once the Console shows its own sentence for a 404 or 403 claim answer."
      ]
    }

    Report taken 2026-12-03T01:46Z.


    Generated by Claude Code

  7. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CXA7kUkccMCRG2nBfJ
    os-dev-report

    Card thread of seat repo:objectstack@os-bill, under claim 7363974897. Round 2 after contract review record 7365351117. Draft PR #39233, head 37e9d22d1be860d5f89c4b4c54b9c46081330207. Tier H: the thread does not ready, queue or request review.

    {
      "issue": 39223,
      "status": "done",
      "branch": "claude/project-thread-ohljq3",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39233",
      "session": "session_01Utp6CXA7kUkccMCRG2nBfJ",
      "served_tier": "get_session reads this session as served at CONTRACT_REVIEW_TIER, effort xhigh; matches the claim's Container & model line",
      "premise_still_valid": true,
      "summary": "Round 2, after contract review record 7365351117 (PASS on head 11a12bdb, should-fix S1 and S2 open). One commit, 37e9d22d, on the same two files; the diff against merge base 440331f1 is now +65/-3 (ADR +51/-1, queues page +14/-2). S1: the D4 note gains one paragraph and D9 one sentence saying that a request reads the record at the row check, again in the ownership step and again in the sharing gate, and that a claim overtaken between two of those checks is refused 403 by the later one, also where the caller can no longer read the record, under PERMISSION_DENIED from the ownership step or FORBIDDEN, the ledger's wire synonym, from the sharing gate; the split of 404 from 403 is exact for a claim whose every check runs after the owner is set, and a client and a test read the status, not the code. The queues page says the same in one paragraph. S2: the page's sentence on a refused claim of a still-unowned record now gives 404 where the caller cannot read the record and 403 where it can and the gate does not admit the claim. N1 and N2 are taken (what else 404 and 403 can mean; the two-claims test is said of claimants without the transfer grant). One change no finding asked for: the note's 'one claim lands' is now said of callers without the transfer grant, after the seat relayed zone data-p2's measurement for the pin in PR #39238. No code, spec or status-code change. The PR body is edited for the new head.",
      "files_changed": [
        "docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md",
        "content/docs/automation/queues-and-assignment-rules.mdx"
      ],
      "tests": "None added and none owed: prose only. Readings behind the fixes, on origin/main 440331f1, read and not run. Order of the checks: the security middleware is registered in the plugin's start() (registerAuthzMiddleware, packages/plugins/plugin-security/src/security-plugin.ts line 2438), the sharing middleware in a kernel:ready handler (packages/plugins/plugin-sharing/src/sharing-plugin.ts line 927), and the chain walks the list in registration order (packages/objectql/src/engine-middleware-and-context.ts). The ownership step reads its pre-image under the caller's context; a row the caller cannot read comes back null and falls through to denyOwnerWrite, a PermissionDeniedError. The sharing gate's by-id check reads the row again when it runs (canEdit, then readWriteVerdictRows in sharing-service.ts) and its refusal sets code FORBIDDEN and status 403 (sharing-plugin.ts lines 1689 to 1696). packages/spec/src/api/error-code-ledger.zod.ts registers FORBIDDEN with shadows PERMISSION_DENIED. For S2: the row check answers an unreadable addressed row with recordNotFoundError and a readable one the caller may not write with the record-level PermissionDeniedError, both ahead of the ownership step. NOT MEASURED here: the grant-holder cases, reason: they are zone data-p2's runs on the probe branch, relayed by the seat; this thread ran none of them.",
      "gates": "Local, at head 37e9d22d: dispatch-gates --commands derives the same 49 commands against merge base 440331f1; all 49 ran again with exit 0, each code captured before any pipe; --ran prints 'Run reconciliation — 49 derived, 49 run, 0 NOT-MEASURED, 0 UNRUN'. The two builds made at head 11a12bdb were not repeated: the commit changes only the two prose files. Pre-push hook check:commit-card-trailers passed. CI on head 11a12bdb ended with 56 check runs, 30 success, 26 skipped, none failed. CI on head 37e9d22d: NOT MEASURED as a final result, reason: 8 jobs were still running when this was written; at that reading 15 had succeeded, 23 were skipped and none had failed. One PR-body guards run reads cancelled: the body edit started a newer run of the same check, which succeeded.",
      "deviations": [
        "Three statements now go past the ruling's wording, each flagged in the PR body for L1, L2 and the approver: the transfer-grant clause (round 1; the reviewer says keep), the S1 paragraph (the ruling does not name a claim overtaken between two of its own checks), and the scope of 'one claim lands' to callers without the transfer grant.",
        "The scope of 'one claim lands' rests on a measurement this thread did not run: the seat relayed that zone data-p2 measured, on the probe branch, two holders of the grant claiming an unowned row at once both answered 200 with the last writer as owner. The note says nothing more about that case than its scope; D4's first paragraph, which puts the claim case ahead of the grant check, is untouched.",
        "The thread posted the contract review record itself, at the seat's request: one isolated reviewer rendered it, the thread posted it byte for byte with the reviewer's transcript as tier evidence, and the filled briefs are on the PR (7364791383, 7365627006). The delta review of 37e9d22d by the same reviewer is running."
      ],
      "mcp_calls": "0 GitHub MCP calls. Session calls on the claude-code-remote server, none a GitHub write: send_later twice (CI and reviewer fallbacks). One Agent run and one SendMessage to the same agent: the isolated contract reviewer and its delta round.",
      "api_writes": "5 relay strokes since the first report: (1) review claim with the filled brief, comment 7364791383; (2) the contract review record, comment 7365351117, through post-stamped with tier evidence; (3) fleet-write dispatch fw-20261203T023319Z-126528, op issue_patch on the PR body (read back identical, 19278 bytes); (4) delta review claim with its brief, comment 7365627006; (5) this report comment. Plus one git push of the branch, which is not a REST write.",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none on record, the seat files it once the note is on main (review nit N3) · noted, not filed. skills/objectstack-data/rules/security.md lines 390 to 392 and eval 8 of skills/objectstack-data/evals/hooks-security-seeds-datasources.json still teach that the loser of a claim race gets 409 CONCURRENT_UPDATE. Outside this card's two files.",
        "carrier: the pin work under claim 7363867578, PR #39238 · handed over by the seat. The grant holder on an unowned record (no owner_id: null precondition, so two holders both hear 200) against D4's first paragraph, which puts the claim case ahead of the grant check: whether the code or the paragraph is the one to change is not this card's to say."
      ]
    }

    Report taken 2026-12-03T02:36Z.


    Generated by Claude Code

  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Close-out · 2026-12-03T03:42Z · PR #39233 merged as ae865dc6f8cc98a29b36b274c3ebfb0bb3d802c1: ADR-0142 D4, D9 and the queues page now carry ruling B (7363773549). Seat ACCEPT 7366049449; contract review delta PASS 7366016972. Follow-ups: #39242 (skills text, with N7 and N8), and the zone pins the grant-holder matrix in PR #39238. Downstream, objectstack-ai/hotcrm#2642 unblocks: term (5) holds for claimants without the transfer grant.

  9. removed
    pm:dispatched
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:skillspriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions