Skip to content

Warn when gap-ledger repo-exposure input has no artifact envelope - #9570

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/gap-ledger-unenveloped-warning
Oct 22, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/gap-ledger-unenveloped-warning

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: n/a
Spec: docs/specs/RIPR-SPEC-0046-gap-decision-ledger.md
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #9500 item (a)
Acceptance delta (one sentence): An unenveloped repo-exposure input to the gap ledger yields an explicit warning, and an enveloped one does not.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/gap-ledger-unenveloped-warning
Stack parent or prerequisite PR (if any): none

Proof

  • cargo test -p ripr --lib output::gap_decision_ledger (116 pass), including new unenveloped_repo_exposure_input_warns_and_enveloped_does_not; check-traceability, check-spec-format, check-doc-artifacts pass.
  • Local goldens check could not run offline (anyhow download); hosted CI is the proof there.
  • Static evidence only; no runtime claim.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Dpu1AbBoAbyviXbo3msrWD

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 07:47
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 100 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

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: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: ec407d4d-1612-465a-9b9e-a9fcaa132ef1
📥 Commits

Reviewing files that changed from the base of the PR and between 5f18fa8 and 37f53fc.

📒 Files selected for processing: 4
  • .ripr/traceability.toml
  • changelog.d/9500-gap-ledger-unenveloped-warning.md
  • crates/ripr/src/output/gap_decision_ledger.rs
  • docs/specs/RIPR-SPEC-0046-gap-decision-ledger.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a warning to ripr reports gap-ledger --repo-exposure when the input lacks an artifact envelope, ensuring that unvalidated producer identity and currentness are flagged. It also includes a corresponding unit test and changelog entry. The review feedback suggests simplifying the JSON check in gap_decision_ledger.rs by using direct subscript indexing on serde_json::Value instead of .get().is_some_and(), which is safe and cleaner.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

…item a)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dpu1AbBoAbyviXbo3msrWD

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • The envelope predicate accepts any artifact object, not a valid repo-exposure envelope.
  • Negative-direction coverage is thin: only one enveloped shape is tried (artifact as object). Cases like missing source_value_snapshot, source_kind != RepoExposure, or artifact present but non-object (e.g., string/number) are not asserted; the gate !source_value_snapshot.as_ref().is_some_and(\|v\| v.get("artifact").is_some_and(Value::is_object)) is the actual contract and is not pinned by a dedicated test.

Refuted

  • The warning predicate is overbroad or treats malformed/non-enveloped artifact values as valid envelopes.; refuted because: It is restricted to parsed-clean RepoExposure inputs and requires the artifact member to be an object; malformed JSON does not reach it, while missing or non-object artifact values warn.

Parked follow-ups

  • Existing renderer coverage plus the warning's use of the established warnings list is sufficient, though this PR does not add a case-specific rendered assertion.

Evidence gaps

  • The repository sensor failure leaves the behavioral claim without a confirmed local receipt, but the provided diff does not substantiate a source defect.
  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven
EffortlessSteven merged commit 2e2757d into main Oct 22, 2026
56 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/gap-ledger-unenveloped-warning branch October 22, 2026 08:35
EffortlessSteven pushed a commit that referenced this pull request Oct 22, 2026
… a warning in #9570 (#9500)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh
EffortlessSteven added a commit that referenced this pull request Oct 22, 2026
…gn producer.version in agent verify (#9500 b,c) (#9632)

* fix(agent): refuse unenveloped/foreign-producer repo-exposure on gap-ledger and verify; bind recovery to running binary (#9500)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

* test(cli): gap-ledger repo-exposure envelope refusal through the binary (#9500)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

* fix(agent): keep the program-bound repo-exposure command reachable from xtask (#9500)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

* refactor: drop gap-ledger refusal; item (a) was delivered upstream as a warning in #9570 (#9500)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

* fix(agent): version-independent test fixtures and spec/schema parity for the exact producer-version check (#9500)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

* docs: drop ledgers from the 9500 changelog entry; the gap-ledger route is unchanged (#9500)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018HD9fbAVQpnXMUzif6Y2oh

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants