Skip to content

feat(evidence): report each definition's validitySeconds in explain - #2463

Merged
jeremi merged 1 commit into
mainfrom
feat/evidence-explain-validity
Oct 28, 2026
Merged

jeremi merged 1 commit into
mainfrom
feat/evidence-explain-validity

Conversation

@jeremi

@jeremi jeremi commented Oct 27, 2026

Copy link
Copy Markdown
Member

Summary

evidencectl explain JSON now reports each assertion definition's validitySeconds beside its representations and subjectBinding. A tool that checks credential lifetimes against a deployment policy (for example, a cap on credentials issued without status) can read the value from explain without compiling the project or parsing evidence.yaml. Owning area: Evidence (crates/registry-evidencectl).

The value is the definition's own validitySeconds, which the authored project requires, so every definition carries it and nothing is defaulted. It is not added to authority.effectiveCeilings or the compiled ceilings: those feed effectiveGrantDigest and the authority revision, and a lifetime is not a grant ceiling.

Evidence

  • New test explain_json_reports_each_definitions_validity_seconds (crates/registry-evidencectl/tests/explain_sources.rs) copies the standalone example, sets the first definition to 900 seconds and asserts 900 for it and 300 for the rest. It failed before the change.
  • cargo test -p registry-evidencectl --locked: all pass, 0 failed.
  • cargo clippy -p registry-evidencectl --all-targets --locked -- -D warnings: clean. cargo fmt --check: clean.
  • No golden or snapshot moved. The full workspace suite was not run locally; CI covers it.

Notes

Additive field; the report apiVersion (evidence/ctl-report/v1alpha1) is unchanged. credentialStatus is not part of this change. No migration. Can merge before or after 0.44.0.

DCO

  • Every commit includes a Signed-off-by trailer.
  • I reviewed the submitted changes and am responsible for the contribution.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T03:53:52.393134Z e398fb6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@jeremi
jeremi force-pushed the feat/evidence-explain-validity branch from d1ec2f0 to e398fb6 Compare October 28, 2026 03:52
@jeremi
jeremi added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 048cada Oct 28, 2026
61 checks passed
@jeremi
jeremi deleted the feat/evidence-explain-validity branch October 28, 2026 04:59
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