Skip to content

id-core: policy-gated deletion from clear markers - #16032

Merged
developing-today-fleet[bot] merged 5 commits into
mainfrom
agent-next-24-local/25396-delete-policy
Nov 27, 2026
Merged

developing-today-fleet[bot] merged 5 commits into
mainfrom
agent-next-24-local/25396-delete-policy

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add a server-local evaluator for verified, role-aware tag.clear markers.
  • Missing policy, disallowed authority, and markers inside the grace period defer without changing state or evidence.
  • A qualifying marker creates signed policy_deleted_on_clear evidence with the policy ID, marker event ID, authority, and marker time.

This PR adds the evaluator seam. Persisted server policy settings and event-store invocation remain follow-up slices. Issue #2091 remains open.

Evidence

  • Failing-first: cargo test -p id-core graph::delete_policy::tests::unconfigured_authority_and_unelapsed_grace_are_not_authorized failed on the test-only stub because it accepted a disallowed group-admin clear: https://github.com/developing-today-fleet/fleet/actions/runs/45967759016
  • Final latest-main verification on head da92341d069888a34eae84a7b789be8b421d34f0: cargo test -p id-core graph::delete_policy::tests passed all 4 tests: https://github.com/dezren39/fleet/actions/runs/45972812252
  • rustfmt --edition 2021 --config skip_children=true ... --check and git diff --check passed.
  • .github/scripts/check-rust-module-reach.sh stopped on an existing nested symlink loop under pkgs/id/worktrees/pr7653-relay-boundary (ELOOP). The remote Cargo test compiled the newly declared module.

Merge Danger

The policy apply path is crate-private and only reached through the evaluator. No production server configuration or event-store path is changed by this slice. Follow-up work must persist server policies and pass verified clear-marker facts into the evaluator.

Part of #2091


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

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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: b92153f3-b0ca-4232-9bb1-4655ecd68bb9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@developing-today-fleet
developing-today-fleet Bot merged commit a6bb8b7 into main Nov 27, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the agent-next-24-local/25396-delete-policy branch November 27, 2026 09:32
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Merged by lane 0307-F (charlie ADVANCE, 2026-11-27) — merge commit a6bb8b7 at exact head da92341.

Evidence gate verified firsthand by this lane (not metadata-only): dezren39/fleet run 45972812252 completed success; Linux job 140417185930 log shows Target HEAD: da92341d069888a34eae84a7b789be8b421d34f0 (exact) and command cd pkgs/id && cargo test -p id-core graph::delete_policy::tests → test result ok, 4 passed / 0 failed (all four named delete_policy tests ok). Pre-merge re-read: OPEN/non-draft, mergeable=true/clean, head unchanged, sole comment CodeRabbit — no live claim. Body states #2091 remains open (this is a Part-of slice), so no issue closure is expected from this merge.

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