GeezerVison is showing github.com — Add capability negotiation and downgrade rejection · Issue #10195 · developing-today/code
Add capability negotiation and downgrade rejection #10195DescriptionProblem and goal
Negotiate only mutually supported protocol/capability versions and reject security-weakening downgrades.
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/crosscut/versioned-design.md#failure-recovery-and-version-rules (section: Failure, recovery, and version rules).
Tier: recommended.
Statement IDs: S1.118, S7.10, S7.11, S7.13, S7.16
Enables: Negotiate highest mutually allowed version and required capabilities, bind negotiation to authenticated identities, and reject downgrade that removes mandatory security/correctness semantics.
Scope and ownership
Parent: #9111 (native component/meta parent).
pkgs/id/crates/id-config/src/negotiation.rs (new; owner: 9111-04)
pkgs/id/tests/config_downgrade.rs (new; owner: 9111-04)
Hard dependencies (native blockers): 9110-02 — Required output from slice 9110-02.; 9111-01 — Required output from slice 9111-01.; 9141 — consume owned contract only; do not wait for full sibling program
Soft sequencing (not blockers): none
Test / evidence first
Create or validate pkgs/id/tests/config_downgrade.rs first. Proposed command: cargo test --manifest-path pkgs/id/Cargo.toml --test config_downgrade
Oracle: model — expected Negotiation selects the highest allowed common capability set and rejects security-weakening downgrade offers.; verifier: Adversarial protocol-negotiation state machine and signed transcript vectors..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-b/versioned-design.md; doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/versioned-design.md.
Rollback: Reject negotiation/config change and continue only with a previously allowed protocol version; never downgrade past a security floor.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026
state: blocked (dependency)
task: 17043 (lane any-d, repo-worker-code)
issue: #10195 — Add capability negotiation and downgrade rejection (slice 9111-04)
Preflight (mandatory triage/preflight packet): native GitHub blocked_by for #10195 = #9141, #10160, #10178, verified fresh 2026-11-14T17:28Z. All three blockers are still OPEN.
Per the packet's acceptance contract, no implementation was started. Task 17043 is self-blocked as a dependency block on #9141, #10160, and #10178 (--blocked-by-issue); the broker will return it to the pool automatically when every blocker closes. No production rollout is authorized by this packet. dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged — task 19145 (lane code-c)
- Work kind: task/small-fix · Priority: priority/high (priorities brief line 2: ID programme tracks are Drew's standing explicit priority order) · Effort: effort/m
- Fresh evidence: issue Add capability negotiation and downgrade rejection #10195 OPEN, unheld. This bulk-intake triage duplicates an already-routed slice: task 17043 owns Add capability negotiation and downgrade rejection #10195 (slice 9111-04, parent design(id): modes & configuration surface — modes, link kinds, storages, tiering as config #9111, programme epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106) and self-blocked at preflight on 2026-11-14 on three native blockers — design(id): peer trust classes + signed-data acceptance rule #9141, Define versioned capability-oriented port contracts #10160, Define versioned configuration schema and hard invariants #10178 (note on this issue). No second packet is enqueued and no second block is recorded.
- Gate re-verification (fresh, this shift, 2026-11-17) — one of three blockers has cleared: issue Define versioned capability-oriented port contracts #10160 (versioned capability-oriented port contracts) is now CLOSED — CLEAR. Issue design(id): peer trust classes + signed-data acceptance rule #9141 (peer trust classes + signed-data acceptance) is OPEN and issue Define versioned configuration schema and hard invariants #10178 (slice 9111-01, versioned configuration schema — itself gated on design(id): peer trust classes + signed-data acceptance rule #9141) is OPEN — both NOT CLEAR.
- First concrete step (unchanged, on task 17043): when design(id): peer trust classes + signed-data acceptance rule #9141 and Define versioned configuration schema and hard invariants #10178 both close, the broker releases task 17043; the claiming lane then builds capability negotiation + downgrade rejection test-first (
pkgs/id/tests/config_downgrade.rs; oracle: model — negotiation selects the highest allowed common capability set and rejects security-weakening downgrade offers), delivering pkgs/id/crates/id-config/src/negotiation.rs per the slice scope.
- Labels: this note adds only task/small-fix, priority/high and effort/m. The existing status/blocked + queue/blocked labels belong to task 17043's live blocked state and are deliberately left untouched.
dezren39 commented on Nov 17, 2026 dezren39 commented on Nov 18, 2026 Agent note (repo-worker-code, code-f scheduled lane): triage verdict
Verified 2026-11-18T08:45Z. #10195 is OPEN and still blocked by its hard dependencies, none closed:
No work started and no follow-on packet needed beyond the existing block. Resume when those slices land. Labels unchanged. dezren39 commented on Nov 20, 2026
agent-note:v1
state: blocked
task: 17043
worker: repo-worker-code
lane: oc-code-03
origin: openchamber-scheduled-lane
stage: native_blocker_preflight
Fresh native blocker preflight (2026-11-20 17:54Z): #9141 is OPEN; #10160 is CLOSED; #10178 is OPEN. Per the mandatory preflight packet, no implementation or rollout is authorized while any blocker remains open. Task 17043 is self-blocked with all three native issues recorded; no repository files changed.
dezren39 commented on Nov 23, 2026
Lane FK (archer) claiming slice 9111-04 via queue task 17043.
Preflight (fresh gh REST, this pass): all three native blockers CLOSED/completed — #9141, #10160, #10178. Per the packet, proceeding to implementation within the issue's approved scope: pkgs/id/crates/id-config/src/negotiation.rs + pkgs/id/tests/config_downgrade.rs, oracle cargo test --manifest-path pkgs/id/Cargo.toml --test config_downgrade. Crate-root export stays with slice 9110-02 (lib.rs carries no module declarations on current main); the test will include the module by path per the established sibling pattern (#10226/#10242/#10275). dezren39 commented on Nov 23, 2026
Slice 9111-04 complete. Preflight: native blockers #9141, #10160, #10178 all verified CLOSED/completed (fresh gh REST), so implementation proceeded within the approved scope.
Landed — PR #12957 merged (merge c63ea7862992, head b76920be4d5, head-SHA guarded; exactly the slice's two owned files, +1362/−0, both re-read on origin/main post-merge):
pkgs/id/crates/id-config/src/negotiation.rs — per-peer Negotiation state machine under a NegotiationPolicy (allowlist, security floor, capabilities classified Required/Optional; from_resolved_config seeds Required from the 9111-01 contract's FIXED_GATE_IDS). Selection: highest mutually supported allowlisted version (numeric ordering, family-bound) + capability intersection. Rejections, all fail-closed with no silent fallback: below-floor outcome and missing required capability are downgrades; a rejected initial offer closes the session; a rejected renegotiation leaves the established session on its previous terms, and any weaker renegotiation (lower version, dropped established capability) is SessionDowngrade. Offers are identity-bound to the expected peer and round-ordered — evaluated offers consume their round, stale/replayed rounds reject. Each acceptance emits a NegotiationTranscript whose canonical_bytes (domain-prefixed deterministic JSON) are the exact bytes a signature must cover; binds() re-verifies the record against the offer.
pkgs/id/tests/config_downgrade.rs — the declared model oracle: an independent reference state machine over raw strings/sets, driven against the module through generated adversarial offer sequences (downgrades, replays, identity swaps, malformed versions, mid-session weakening) with outcome class + settled state compared after every offer, plus fixed tests for each rule and the golden transcript vector.
Verification: cargo test --manifest-path pkgs/id/Cargo.toml --test config_downgrade (nix develop, laptop worktree off origin/main) — 17 passed / 0 failed. rustfmt clean on both files; clippy on the test target shows no warnings in the new files beyond pre-existing workspace noise. Crate-root export of negotiation remains with slice 9110-02 (lib.rs carries no module declarations); the test includes the module by path per the sibling pattern (#10226/#10242/#10275). No production rollout, per the packet.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|