Skip to content

id: capability-change notice surface + grant-page listing (#12921) - #14049

Merged
dezren39 merged 1 commit into
mainfrom
oc-code-03/id-notice-surface
Nov 24, 2026
Merged

dezren39 merged 1 commit into
mainfrom
oc-code-03/id-notice-surface

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Scope

Pure notice-surface data side (#5959 §3–§4) + grant-page listing data side for #12921, lane oc-code-03 (ID-100R): a NEW module pkgs/id/crates/id-caps/src/cap_notice.rs (+ one-line lib.rs registration). Composable with slice 1 (PR #13079) and sibling slice PR #13999; overlapping neither.

Tests

New: 10 cap_notice unit tests covering the #12921 notice-level oracles at the notice layer — prompt iff trigger (both directions), per-class denial excludes exactly that class (and re-prompts next time), load-bearing denial refuses, connect-once/don't-connect change nothing, honesty line only for grant-on-use, narrowing-then-re-addition prompts, YOLO leaves no stale baseline, uncomputable prompts with unknown, grant-page ordering. #5999 §7 invariants 1–5, 8, 9 property tests already live on main in cap_diff.rs — deliberately not duplicated.

Verification

  • Laptop: cargo test -p id-caps from pkgs/id — 267 passed (263 lib + 3 + 1 integration), 0 failed, incl. the 10 new tests.
  • Fleet dispatch on this branch (--ref oc-code-03/id-notice-surface): succeeded — developing-today-forks/fleet run 45315830387, Linux job success. (An earlier dispatch without --ref failed on infra grounds — wrong ref — and was re-dispatched, not a code result.)
  • cargo fmt -p id-caps -- --check: clean (one unrelated pre-existing rustfmt drift in world_caps.rs was reverted, not included).
  • cargo clippy -p id-caps --all-targets: environment failure, not a code result — stale cached id-core deps built by a different rustc (E0514); cargo build -p id-caps shows no warnings from the new module.

Relation to #13999 (oc-code-07, open)

Composable, no file overlap: #13999 adds the pure connect-verdict API inside cap_baseline.rs; this PR adds only cap_notice.rs (+ lib.rs mod line). Design fit: #13999's verdict holds the connection, this module renders the held diff. If #13999 merges first, the only shared hunk is the lib.rs pub mod ordering — trivial.

Merge readiness

NOT ready for lane-side merge — do not merge without coordinator review. Code is verified green, but sibling PR #13999 is open against adjacent code in the same crate; the packet allows merge when verified, yet the coordinator should decide ordering. Recommend reviewing/merging #13999 and this PR as a pair.

Refs #12921. Design of record #5959 (§3–§4 notice, §5 re-baselining, §7 invite pin noted as follow-on), #5960 §2 (denial composition), #5999 §7 (invariants).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T03:28:13Z",
    "session_id": "ses_e5df49a558bffeACeFwzSbdqnj",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/wt-id-notice",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/wt-id-notice",
      "repo": "developing-today/code",
      "branch": "oc-code-03/id-notice-surface",
      "sha": "b3e46d5c6108d816f6f2adbe320fc03845bb1972"
    },
    "auth_subject": "oc-code-08",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

New pure module cap_notice: delta-only headline lines grouped
client-side/server-side, three choices with no Default impl, per-class
denial composing per #5960 section 2, grant-on-use honesty line, and
the fail-closed unknown notice constructor. Plus grant-page listing
data functions over BaselineStore. Composable with #13999, no file
overlap.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9aae2c73-10c8-4e52-ab6f-b75464514aa8
Commits

Reviewing files that changed from the base of the PR and between c64e8cd and b3e46d5.

Files selected for processing: 2

  • pkgs/id/crates/id-caps/src/cap_notice.rs
  • pkgs/id/crates/id-caps/src/lib.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant