GeezerVison is showing github.com — Implement agent-note placement routing and gated promotion · Issue #7717 · developing-today/code
Implement agent-note placement routing and gated promotion #7717DescriptionParent: #6022 (placement policy). Related: #6062 (ID-graph publication format), #6267 (note_submission pilot), #3125 (provenance registry), #5669 (Atlas staging and sensitivity tiers).
Implement the placement policy from #6022 in the existing note_submission pipeline. This issue does not redefine the submission envelope or ID relation vocabulary, and it does not replace the #6267 pilot or #6062 publication-format design.
Scope
Acceptance
Dependencies
Blocked by #6022 design review/merge and #6062 publication-format decision. Reuse the #6267 submission DB pilot.
Acceptance criteria
- Submissions are classified into exactly the design(id/atlas): where agent notes live — zettel vs repo vs publishing directly into the ID graph #6022 canonical homes (workspace/memory unpublished, repo document, registry-selected Zettelkasten corpus, ID-native publication when design(id/atlas): where agent notes live — zettel vs repo vs publishing directly into the ID graph #6022/design(id/atlas): ID-graph publication format — Atlas objects + provenance/lineage relations as ID-graph objects #6062 eligibility + format are met).
- Every submission stays in the Turso submission DB with content hash, provenance spans, source system/machine/date, author/owner, and its sensitivity decision.
- Uncertain classification or sensitivity remains staged: nothing auto-commits or auto-promotes, and promotion is a recorded human action.
- Any approved projection records its canonical identity and source revision/hash, and the audit trail can reconstruct who promoted what, when, and why.
Activitydeveloping-today commented on Nov 8, 2026 dezren39 commented on Nov 8, 2026 Intake review
Related: parent #6022; #6062 (publication format), #6267 (pilot this extends, not replaces), #3125 (provenance registry), #5669 (sensitivity tiers); inventory companion #7718.
Live check: fresh implementation issue from the landed #6022 policy; no existing PR implements the routing.
Notes / risks: the fail-closed promotion gate is the safety property — tests should prove an uncertain item cannot reach a canonical home without a recorded promotion. Keep the #6267 envelope untouched, as the issue states.
Suggested approach: add the classifier + gate inside the existing note_submission pipeline, with the staged state as the default and promotion as an explicit verb.
— fleet monitor (repo-fleet-monitor), 2026-11-08 08:12 CST run: acceptance criteria appended to the body, labels normalized, meta/enriched applied. dezren39 commented on Nov 10, 2026 dezren39 commented on Nov 16, 2026 Blocked-until condition fired (2026-11-16 daily checker, item br-blocked-review-gate-04-1, test custom).
Evidence: #7719 state=MERGED merged_at=2026-11-16T10:54:03Z (need pr-merged); #7998 state=MERGED merged_at=2026-11-14T21:27:19Z (need pr-merged)
Gate link(s): #7719, #7998
Queue task 14511 released to queued (fleet-queue events row kind=condition_fired, worker=blocked-until). Labels synced to queue/queued. dezren39 commented on Nov 17, 2026
Triaged: queue task 18534 (bulk-intake triage of issue #7717), Muse lane code-b, 2026-11-17.
Verdict: the packet_defect record of task 14511 (lanes any-n + code-a, 2026-11-16) is re-verified fresh and still true. The blocked-until gate fired on PR #7719 + PR #7998 merging, but both are docs-only (placement policy; #6062 publication format) — git grep -li note_submission at current main still returns doc files only, zero code hits (*.rs/*.py/*.ts/*.go). There is still no pipeline code for issue #7717's implementation to extend.
Action taken by this triage: the re-scope the prior lanes suggested was never filed, so I filed it — issue #10936, "create the note_submission pipeline (envelope, staging, promotion gate)", is now the named prerequisite. Routing: task 14511 (the #7717 implementation packet, released to queued when the docs gate fired) should be dep-blocked on issue #10936; when the pipeline exists at a named location, #7717's packet names it and proceeds. Issue #7717 stays OPEN (priority/high, effort/l stand; no hard-stop labels). dezren39 commented on Nov 17, 2026 Implementation base clarified: this issue extends the new pkgs/note-submission Rust crate being introduced by prerequisite #10936 / PR #10991. The crate supplies the typed submission envelope, staging, and human-approved promotion gate; this issue remains responsible for policy-aware placement classification and routing. PR #10991 includes a package-local lockfile and test workflow; CI is running. The crate is not merged yet. dezren39 commented on Nov 17, 2026 Update: prerequisite #10936 is now complete and closed by merged PR #10991 (merge commit e12e2c2139eaac6fa055ac2cb07aa05a4c4ee7e0). Extend pkgs/note-submission for policy-aware placement classification and routing; its current boundary provides the typed submission envelope, staging, and human-approved promotion gate. Package CI passed, and the local end-to-end suite reports 4 passed, 0 failed. dezren39 commented on Nov 23, 2026
Claim — Lane AAH (archer), 2026-11-23. Picking up #7717 from the packet-defect census re-feed: the packet defect of record (no note_submission code existed to extend) is dissolved — prerequisite #10936 / PR #10991 merged the pkgs/note-submission crate (typed envelope, staging, human-approved promotion gate), and both design gates are merged (PR #7719 placement policy for #6022; PR #7998 publication format for #6062). Premise re-verified first-hand at current main: crate present (src/lib.rs, tests/pipeline.rs), no live claim on this thread. Implementing policy-aware placement classification + routing in the crate with table-driven tests per the acceptance criteria. dezren39 commented on Nov 23, 2026
HOLD — platform execution-risk flag (Lane AAH, archer), 2026-11-23. Creating the laptop worktree for this item (~/wt-lane-aah-7717, branch lane-aah-7717 off origin/main) tripped a platform execution-risk check on the checkout content. Per the standing rule I stopped immediately: nothing was run inside that checkout (no builds, tests, edits, or cleanup) and it is left exactly as created.
State of work at the stop — premise VERIFIED TRUE first-hand, scope prepared:
- Both design gates are merged: PR docs: define agent-note placement policy #7719 (placement policy, design(id/atlas): where agent notes live — zettel vs repo vs publishing directly into the ID graph #6022) and PR docs(#6062): Atlas-to-ID publication format design #7998 (publication format, design(id/atlas): ID-graph publication format — Atlas objects + provenance/lineage relations as ID-graph objects #6062).
- The historical packet defect (no
note_submission code existed to extend) is dissolved: prerequisite id: create the note_submission pipeline (envelope, staging, promotion gate) — prerequisite for #7717 #10936 / PR feat: add note submission pipeline gate #10991 merged pkgs/note-submission (typed envelope, staging, human-approved promotion gate; src/lib.rs + tests/pipeline.rs at main).
- Remaining scope, ready to implement on an approved landing route: extend
pkgs/note-submission with policy-aware placement classification + routing per the design(id/atlas): where agent notes live — zettel vs repo vs publishing directly into the ID graph #6022 decision table (workspace/memory unpublished, repo document, registry-selected Zettelkasten corpus, ID-native publication when design(id/atlas): where agent notes live — zettel vs repo vs publishing directly into the ID graph #6022/design(id/atlas): ID-graph publication format — Atlas objects + provenance/lineage relations as ID-graph objects #6062 eligibility + format are met), Atlas physical tiers public/internal/secret applied only after the source/caller sensitivity ceiling (default internal), fail-closed staging for uncertain classification/sensitivity, approval rechecked immediately before publication, and table-driven tests covering every design(id/atlas): where agent notes live — zettel vs repo vs publishing directly into the ID graph #6022 note class plus the stage → human approval → destination end-to-end path.
Landing this needs the user's item-specific go-ahead naming this work, or a landing route whose checkout does not trip the check. Issue stays open; no code changed by this lane. dezren39 commented on Nov 23, 2026
Claim — Lane OB4 (archer), 2026-11-23. Picking up #7717 under Drew's explicit item-specific approval given 2026-11-23 11:27 CST, approving the flag-hold batch that included this item after Lane AAH's hold (c.7108025114). Premise re-verified first-hand: both design gates are merged (PR #7719 placement policy for #6022; PR #7998 publication format for #6062), and prerequisite #10936 / PR #10991 merged the pkgs/note-submission crate (typed envelope, staging, human-approved promotion gate). Implementing policy-aware placement classification + routing per the #6022 decision table — Atlas physical tiers applied only after the source/caller sensitivity ceiling (default internal), fail-closed staging for uncertain classification/sensitivity, approval rechecked immediately before publication — with table-driven tests for every #6022 note class plus the stage → human approval → destination end-to-end path. Working in a fresh laptop worktree on branch lane-ob4-7717; Lane AAH's flagged worktree ~/wt-lane-aah-7717 is left untouched. dezren39 commented on Nov 23, 2026
LANDED — Lane OB4 (archer), 2026-11-23. Implemented under Drew's explicit item-specific approval of 2026-11-23 11:27 CST (the flag-hold batch including this item, after Lane AAH's hold c.7108025114). Worked in a fresh worktree (branch lane-ob4-7717); AAH's flagged worktree was left untouched. No platform flag fired on this route.
PR: #13520, merged as 1162f8e0bdd61e5a272b4543397e6da6f5e3f8f8. This issue closed on the merge.
What landed in pkgs/note-submission:
classify() — the design(id/atlas): where agent notes live — zettel vs repo vs publishing directly into the ID graph #6022 §2 decision table as routing: declared class + RoutingContext (registry-selected Zettel corpus, owning repo, explicit tier request, §5 ID-native eligibility evidence) + sensitivity ceiling → Routed(PlacementDecision) / NotPublished (workspace scratch, memory, requesting surface, owning-system store) / fail-closed StaysStaged with the reason recorded in the verdict. Uncertain classification or sensitivity is never published and never auto-commits.
- Atlas physical tiers resolved only after the ceiling: default
internal; public/secret are explicit requests; an internal ceiling forbids public; secret-bearing requires an explicit secret tier and is never ID-native (§5 ban); personal/local-only ceilings never route.
- ID-native routing requires all §5 conditions (cited across systems, stable identity, nameable id: implement Writer-set view projection - view projection and discovery query (design doc) #5545 writer-set) plus the graph object id as canonical identity; decisions pin canonical identity + source revision/hash (the submission content hash), so projections cannot silently become a second canonical owner. No parallel relation/permission schema — the object format stays design(id/atlas): ID-graph publication format — Atlas objects + provenance/lineage relations as ID-graph objects #6062's.
stage_classified() stages routed decisions into the existing human gate; promote()'s approval recheck and corpus-control recheck run immediately before publication, unchanged, and rejected/held attempts still leave audit rows.
Tests (tests/routing.rs, 6 new; 13 total with the existing pipeline suite): table-driven coverage of every §2 class (selected destination, Atlas treatment, ID-native eligibility), fail-closed cases (missing corpus/repo, each missing §5 condition, undeclared submission), ceiling/tier resolution, stage_classified staging only routed verdicts, and an end-to-end submit → classify/stage → approval recheck (wrong-tier approval rejected + audited) → publish run verifying content hash and provenance against the submission record.
Verification: laptop cargo run (private target dir, sccache disabled per #13367): cargo test --all-targets 13 passed / 0 failed on the branch and again on the merged main commit 1162f8e0bdd6. cargo fmt --all applied. Clippy unavailable in the laptop toolchain (missing librustc_driver) — environment limitation, not a code result.
One modelling note: an uncertain submission remains in the submission DB in the crate's Submitted state (the crate's Staged state requires a placement decision to exist); it is unpublished and unpromotable until a human resolves the classifier's recorded reason — the fail-closed property the acceptance criteria require.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|