GeezerVison is showing github.com — Trusted-relay permission, max-hop propagation, and breadth×depth resource bounds · Issue #10263 · developing-today/code
Trusted-relay permission, max-hop propagation, and breadth×depth resource bounds #10263DescriptionProblem and goal
Trusted-relay permission, max-hop propagation, and breadth×depth resource bounds as an independently reviewable contract and implementation increment. Account atomically at query, authenticated requester/origin, supplying peer, authorized tenant and node scopes; refund only unused amounts; retries reuse exact multidimensional reservation.
Version and design basis
Version: V3. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-b/versioned-design.md#query-contract (section: Query contract).
Tier: recommended.
Statement IDs: S1.54, S1.55, S1.56, S1.57, S1.61
Enables: Bounds recursive query resource use at requester and honest-node scopes.
Scope and ownership
Parent: #9144 (native component/meta parent).
pkgs/id/crates/id-sync/src/federation/slices/b16_fanout_budget.rs (new; owner: B16)
pkgs/id/crates/id-sync/tests/federation_b16.rs (new; owner: B16)
doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-b/federation_model.py (existing; owner: B16)
Hard dependencies (native blockers): B17 — Minimum output: immutable OriginQuery and signed chained RelayGrant contract.; B20 — Minimum output: stable origin request identity.; B21 — Minimum output: dedup ledger so retries reuse work/reservations.; B32 — Minimum output: mandatory validation gate.; 9110-02 — Minimum output from design(id): extensibility architecture — primitive/adapter/hook boundary spec + backend conformance #9110-02: root federation/slices registry scaffolding and Cargo convention, with this exact module path recorded but not exported before it exists. Slice PRs do not edit shared roots/Cargo/lib.rs; design(id): extensibility architecture — primitive/adapter/hook boundary spec + backend conformance #9110-09 wires versioned public exports after module outputs land.
Soft sequencing (not blockers): B23 — Routing evidence is an optional fanout input after query/dedup foundations; it does not change budget accounting.
Test / evidence first
Create or validate pkgs/id/crates/id-sync/tests/federation_b16.rs first. Proposed command: cargo test -p id-sync --test federation_b16
Oracle: model — expected At per-query, authenticated requester, supplying-peer, tenant and node scopes, spent never decreases and held+spent stays within cap. Duplicate scope IDs, over-cap reservations, and usage outside reserved dimensions reject atomically. Cancel/expiry refunds only unused held values; same reservation retry never mints.; verifier: Dedicated B16 future Rust test compares each vector scope to a small reference ledger; current federation_model.py supplies a separate executable accounting example. Neither proves crypto/fairness/Byzantine enforcement..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Disable recursive remote fanout; retain local query and outstanding ledger/tombstones until expiry.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026 agent-note:v1
state: blocked (dependency) — mandatory preflight result
task: 17101
issue: #10263 (ID/Atlas slice B16)
lane: code-c (repo-worker-code)
at: 2026-11-14T18:02Z
Preflight performed exactly as the B16 packet mandates (triage/preflight only; no implementation attempted, no production rollout authorized):
- Native blocker check: issues Define versioned capability-oriented port contracts #10160 ("Define versioned capability-oriented port contracts"), Request identity, duplicate-vs-loop classification, finite dedup state and expiry #10184, Short-circuit and deduplicate in-flight/answered requests into coherent results #10210, Mandatory universal signed-and-validated acceptance gate #10233, and Query/relay/response signature validation, end-to-end responder provenance and stable request identity #10249 are all OPEN — verified fresh via gh at this claim.
- Result: task 17101 is self-blocked, structurally, on issues Define versioned capability-oriented port contracts #10160, Request identity, duplicate-vs-loop classification, finite dedup state and expiry #10184, Short-circuit and deduplicate in-flight/answered requests into coherent results #10210, Mandatory universal signed-and-validated acceptance gate #10233, and Query/relay/response signature validation, end-to-end responder provenance and stable request identity #10249 (blocked_deps recorded for all five; broker rechecks on its cycle; 3-day max TTL). When every native blocker is closed, the task returns to the pool by itself and the claiming lane proceeds only within B16's approved scope and stated oracle.
- No contingent research trigger exists for B16 (packet: none), and none was started.
dezren39 commented on Nov 17, 2026
🤖 Agent note · already done — task 19196 (lane code-b)
- Already routed (verified fresh this shift): the B16 work packet for this issue is queue task 17101, standing dep-blocked on its native blockers (B17 RelayGrant contract, B20 origin request identity, B21 dedup ledger). No new packet; another would duplicate task 17101.
- Priority: normal, Effort: m — set on the issue now (label sync gap from the earlier routing; one new id-sync federation slice module
b16_fanout_budget.rs, its tests, and the federation model doc).
dezren39 commented on Nov 22, 2026 agent-note:v1
state: picked up
task: 17101
worker: repo-worker-code
lane: code-i
origin: openchamber-scheduled-lane
stage: native_blocker_preflight
Claimed for the required B16 native-blocker preflight. Fresh checks: #10263 is OPEN; blockers #10160, #10184, #10210, #10233, and #10249 are all CLOSED. No implementation or production rollout has been started; reviewing whether this triage packet has any remaining required action.
dezren39 commented on Nov 22, 2026 agent-note:v1
state: done (triaged)
task: 17101
worker: repo-worker-code
lane: code-i
origin: openchamber-scheduled-lane
stage: native_blocker_preflight
Fresh terminal verification: #10263 remains OPEN; all mandatory native blockers are CLOSED: #10160, #10184, #10210, #10233, and #10249. Preflight is complete. No implementation, production rollout, or contingent research was performed; the packet is a triage/preflight task, so implementation remains within the separately approved B16 scope and oracle.
dezren39 commented on Nov 22, 2026 agent-note:v1
state: done (triaged)
task: 20965
worker: repo-worker-code
lane: code-i
origin: openchamber-scheduled-lane
stage: native_blocker_preflight
Fresh preflight: #10263 is OPEN; all mandatory native blockers are CLOSED: #10160, #10184, #10210, #10233, and #10249. This duplicates the completed preflight recorded on this issue for task 17101 at 2026-11-22T01:05Z; no implementation, production rollout, or contingent research was performed. No repository files changed.
dezren39 commented on Nov 23, 2026
agent-note:v1
state: done (already landed — verification only)
task: 21462
worker: repo-worker-code
lane: any-n
Premise check on current main (origin/main 8e61b2c): B16 already landed, so no new code was written and no PR opened — duplicating it would be pure churn.
Evidence already on main:
- Slice: pkgs/id/crates/id-sync/src/federation/slices/b16_fanout_budget.rs (474 lines)
- Tests: pkgs/id/crates/id-sync/tests/federation_b16.rs (693 lines)
- Landed as: commit bc04d31 ("id-sync: B16 fan-out budgets and max-hop propagation"), merged via PR id-sync: B16 fan-out budgets and max-hop propagation #11966 (merge cf91b61). Slice is wired in slices/mod.rs (pub mod b16_fanout_budget).
Verification (laptop fallback in a clean detached worktree off origin/main; dispatch runs attempted first: fp_38c22c5d failed on a wrong package path — my command error, not a test result — and the corrected run failed building aws-lc-sys/ring in the container, an environment failure, not a test result):
- Command: cd pkgs/id && cargo test -p id-sync --test federation_b16
- Result: 10 passed, 0 failed — reserve_use_close_moves_held_to_spent_and_refunds_the_rest, refusals_are_atomic, spent_work_counts_against_the_cap_after_close, retries_reuse_the_exact_reservation_and_never_mint, expiry_closes_refunds_unused_and_tombstones_until_grace, one_requester_cannot_take_anothers_allowance, children_get_fewer_hops_and_a_partition_of_the_rest, a_grant_with_no_hops_left_cannot_forward, ledger_matches_the_reference_and_keeps_its_invariants, a_relay_tree_stays_within_the_origin_grant.
Oracle coverage: per-query/requester/supplying-peer/tenant/node scopes with held+spent within cap and spent never decreasing; duplicate-scope/over-cap/out-of-dimension rejections are atomic; close/expiry refunds only unused held; same-id retry returns the exact reservation. No live competing claim seen in fresh comments (per_page default view); newest notes are the 2026-11-22 code-i preflights.
dezren39 commented on Nov 24, 2026
Agent note — second-pass verdict (task 22010, pass 2 of coverage reconciliation, fresh 2026-11-24): resolved in substance; closing with evidence.
- Landed: slice
pkgs/id/crates/id-sync/src/federation/slices/b16_fanout_budget.rs + tests pkgs/id/crates/id-sync/tests/federation_b16.rs, commit bc04d312747 ("id-sync: B16 fan-out budgets and max-hop propagation"), merged via PR id-sync: B16 fan-out budgets and max-hop propagation #11966 (merged 2026-11-18, merge commit cf91b61). Fresh check: bc04d312747 is an ancestor of freshly-fetched origin/main.
- Oracle verified:
cargo test -p id-sync --test federation_b16 → 10 passed, 0 failed (verified 2026-11-23 on origin/main, recorded on this issue; covers per-scope caps, atomic refusals, refund-only-unused, retry-reuse-exact-reservation, hop partition, relay-tree bounds).
- Done criteria met: oracle passes + test output attached on this issue + changed-file summary (PR id-sync: B16 fan-out budgets and max-hop propagation #11966). No live packet remains for B16 (preflight task 17101 and verification task 21462 both terminal
done).
- No hard-stop labels on the issue; closing as resolved. Rollback path from the issue body retained in history (disable recursive remote fanout; retain local query + ledger/tombstones to expiry).
dezren39 commented on Nov 24, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|