Skip to content

skills: data-hooks api.transaction row should say a body transaction is one datasource and a cross-datasource write is refused (follow-up of #35102) #35117

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

Carries the Skills-docs: follow-up of PR #35102 (card #35028, route A). PR #35102 keeps the code and ADR-0119 note; this card owns only the skills teaching.

What

PR #35102 narrows ctx.api.transaction inside an action body: a business write to an object on another datasource inside the body's transaction is refused with CrossDatasourceTransactionWriteError (400 ERR_CROSS_DATASOURCE_TRANSACTION_WRITE) before anything runs. The skill that teaches the API still describes the callback only as running "in one driver transaction" and says nothing about datasources.

Done when

Re-check

grep -n "one driver transaction" skills/objectstack-data/references/data-hooks.md (positive control in the same file: api.transaction).

Activity

  1. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch: p2 · domain:skills · pm:queue. Grading principle of 2026-11-18, item 3: a precise detail in the skills teaching (the one-datasource rule of ctx.api.transaction in an action body), which an author meets only when writing across datasources. Its carrier behaviour ships in PR #35102 (card #35028, p2); edit after that PR merges, as the card says.

  2. added
    domain:skills
    pm:queue
    priority:p2
    area:ai
    on Nov 18, 2026
  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CazXu8zyYD5PC6J2u7

    Claim: PM loop round 1 · area ai-1 (lease:ai-1; the maintainer, verbatim, 2026-11-19 project chat: 「再开一个 ai 区」「暂时都只派 p1 p2 的卡」) · 2026-11-19T03:18Z
    Session: session_01Utp6CazXu8zyYD5PC6J2u7
    Account: os-bill
    Branch: claude/issue-34967-transaction-row (one PR for #34967 and #35117, the same api.transaction row; it also carries the declaration half of #34546 — hook texts + ctx.text in the same file — as Part of #34546)
    Worktree: objectstack-issue-34967
    Domain: domain:skills
    Seat: repo:objectstack#5
    File surface: skills/objectstack-data/references/data-hooks.md, skills/objectstack-data/evals/hooks-security-seeds-datasources.json, generated outputs, scripts/check-skills-token-ratchet.mjs (row notes only under letter B), root .changeset/. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — skills/** governed: seat contract review and landing, effort: high
    Clause-②: no (text-only served skill text)
    Metadata-protocol: none
    Responsibility: the api.transaction row does not say a body transaction is one datasource and a cross-datasource write inside it is refused (400 ERR_CROSS_DATASOURCE_TRANSACTION_WRITE, PR #35102); every agent writing an action body across datasources
    Thread-read: 6970276025
    Premise: holds — on origin/main c809deb67: skills/objectstack-data/references/data-hooks.md:334 anchor one driver transaction, nothing on datasources; PR #35102 merged as a6cf988
    Serial constraints cleared: open draft #34964 (seat 4, #34504, lease:o4-C) edits the same file and eval json — overlap-check before each push queues this PR behind it on a real conflict
    Pre-claim lane: domain:skills (skills/objectstack-data/**, governed)
    Pre-claim deps: PR #35102 merged (a6cf988)
    Prior rulings read: skills,data-hooks,transaction,body,datasource,cross-datasource,write,refused,follow-up → 168 hits; ADR-0119 D1, ADR-0119 D4, ADR-0034 Decision §4, ADR-0035 Decision §5, ADR-0055 Decision §3; thread: none; repo: objectstack-ai/objectstack

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    ACCEPT → PR #35309 comment 7000197900 (head 84b73e214610ea6179b01f0411b3488806aef1dd, L2 delta PASS 7000185525). Tier H: awaiting a maintainer merge or approval (reviewers os-zhuang, hotlong). 2026-11-19T05:02Z

  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Close-out 2026-11-19T05:45Z: PR #35309 MERGED as e4bfa339ab; Fixes closed this card. Delivered: the data skill states the hook transaction bound (default datasource) and the declared-texts example (L2 delta PASS 7000185525, seat record 7000197900). Follow-up #35324. pm:dispatched off.

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

Metadata

Metadata

Assignees

Labels

area:aidomain:skillspriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions