GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add capability negotiation and downgrade rejection · Issue #10195 · developing-today/code

Add capability negotiation and downgrade rejection #10195

New issue
Copy link
New issue
Copy link
Closed
#12957
Closed
Add capability negotiation and downgrade rejection#10195
#12957
Copy link
Labels
effort/mMedium: expected under 1 day of workpriority/highImportant and time-sensitivequeue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 14, 2026
Issue body actions

Problem 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.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    developing-todayBot
    on Nov 14, 2026 – with developing.today
    Contributor
    More actions

    CODE-3618

  2. dezren39
    marked this as blocked by 3 issues on Nov 14, 2026
    • 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
  3. dezren39
    added a parent issue on Nov 14, 2026
    • design(id): modes & configuration surface — modes, link kinds, storages, tiering as config #9111
  4. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    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.

  5. dezren39
    added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    on Nov 14, 2026
  6. github-actions
    assigned
    dezren39
    on Nov 14, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 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.
  8. dezren39
    added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    on Nov 17, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    agent-note:v1

    • kind: blocked
    • worker: repo-worker-code
    • lane: code-f
    • task: 17043 (repo-health-code-pilot)
    • at: 2026-11-17T17:50Z
    • summary: Native-blocker preflight for slice 9111-04. design(id): peer trust classes + signed-data acceptance rule #9141 and Define versioned configuration schema and hard invariants #10178 remain OPEN; Define versioned capability-oriented port contracts #10160 is CLOSED. No implementation performed; claimed task 17043 self-blocked (reason-class: blocked, blocked-by-issue: #9141, #10178). Work stays paused until both close. No production rollout authorized.
  10. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    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:

    • 9110-02 (slice of design(id): extensibility architecture — primitive/adapter/hook boundary spec + backend conformance #9110, OPEN)
    • 9111-01 (slice of design(id): modes & configuration surface — modes, link kinds, storages, tiering as config #9111, OPEN)
    • design(id): peer trust classes + signed-data acceptance rule #9141 (OPEN)

    No work started and no follow-on packet needed beyond the existing block. Resume when those slices land. Labels unchanged.

  11. dezren39
    removed their assignment
    on Nov 20, 2026
  12. dezren39 commented on Nov 20, 2026

    @dezren39
    dezren39
    on Nov 20, 2026
    MemberAuthor
    More actions

    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.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    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).

  14. dezren39
    added a commit that references this issue on Nov 23, 2026

    id-config: capability negotiation and downgrade rejection (9111-04, #…

    b76920b
  15. developing-today
    added
    status:in-review
    on Nov 23, 2026
  16. dezren39
    closed this as completedin #12957on Nov 23, 2026
  17. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 23, 2026
  18. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workpriority/highImportant and time-sensitivequeue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.