Skip to content

A digest in the project's pin is consent to install below the machine's anti-rollback mark (REQ-ROLLBACK-002) - #295

Merged
avrabe merged 3 commits into
mainfrom
feat/rollback-digest-consent
Oct 28, 2026
Merged

avrabe merged 3 commits into
mainfrom
feat/rollback-digest-consent

Conversation

@avrabe

@avrabe avrabe commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Implements REQ-ROLLBACK-002 (#256). The maintainer decided on digest-as-consent on 2026-10-21. This fixes gale's shared runners: one project installing a newer layer made every other project's older pin on that line uninstallable.

Behaviour

  1. A digest pin the line still stands behind installs. A layer selected by digest in varve.toml installs below the machine's high-water mark, as long as the line's signed line-status reports it supported and not yanked. The install says so: "installed past this machine's anti-rollback mark: the pin selects sha256:… by digest (counter 1), this machine has seen counter 5 on line 2026.08, and the line's signed line-status reports it supported and not yanked. The mark is unchanged."
  2. A pin by name only is still refused, as today. That is the replay REQ-ROLLBACK-001 exists for.
  3. The mark never goes down.
  4. Consent never overrides the line's own word. The install is refused, with a reason, in each of these cases:
    • the layer is yanked;
    • the support window has expired;
    • the layer's counter is below the line-status's min-counter floor;
    • no line-status verifies against the root;
    • the pin names one layer but carries another layer's digest.
  5. The registry can't roll consent back. The newest signed line-status by counter decides, whether it came from the registry or the local cache. A registry replaying a validly signed status from before a yank cannot re-enable the yanked layer.
  6. varve verify agrees with the install. It reaches the same verdict offline from the cached status, so a project doesn't install past the mark and then fail its own gate.
  7. Composition includes don't get consent. The requirement says "the project's pin", and an include is a signer's choice. This is a deliberate choice, and it is tested.

How it was built. The implementation was delegated to a subagent and reviewed. Review found two holes, the replay (5) and the floor (in 4); the automated security review flagged them too. Both tests failed before the fix, and the floor test fails again with the check removed. The branch also adds a dependabot ignore for ureq >=3.5 until pulseengine/sigil#319 is fixed (#294 widened the cap and went red).

Evidence

🤖 Generated with Claude Code

https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu

@temper-pulseengine

Copy link
Copy Markdown

Automated review for PR #295

pulseengine/varve:feat/rollback-digest-consent → pulseengine/varve:main

Verdict: 💬 Comment

Summary: The pull request has been approved for merging into the main branch.

Findings: 0 mechanical (rivet) · 1 from local AI model.

Findings (1):

  1. .github/dependabot.yml:64
    ignore:
    
    The rand dependency is ignored because it requires version >=0.9, which is not compatible with the current version of varve-core. This should be addressed in a separate PR.

Generated by a local AI model and post-validated against a strict JSON contract. Each finding includes the verbatim line being criticised — verify by reading the file at the cited location.

Reviewed at 48b44a8

avrabe and others added 3 commits October 28, 2026 16:08
…'s anti-rollback mark (REQ-ROLLBACK-002)

varve#256: the high-water mark is per machine, a pin is per project. A layer
selected by digest in varve.toml, which the line's signed line-status reports
neither yanked nor out of support, now installs whatever the machine's mark
says, and the install says so. Resolution by name keeps the refusal, the mark
never goes down, a yank or lapsed support window is never overridden, and with
no verifiable line-status (none served, none cached, wrong root) the pin alone
is not trusted. `verify` repeats the same verdict from the cached line-status.
A digest named by an [[include]] is not consent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
…spects its floor

The registry is the party anti-rollback constrains, so a line-status it serves
can no longer outrank a newer one cached on this machine. A replayed status
from before a yank would otherwise re-enable the yanked layer through digest
consent. A layer below the line-status's own min-counter floor is refused even
when pinned by digest.

Both cases failed first. The floor test fails with the check removed.

dependabot: ignore ureq >=3.5 until pulseengine/sigil#319 (closed #294).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
…boundary, and pick the newest status by counter

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
@avrabe
avrabe force-pushed the feat/rollback-digest-consent branch from 48b44a8 to 8fa76ac Compare October 28, 2026 15:08
@avrabe
avrabe merged commit 66ee231 into main Oct 28, 2026
38 checks passed
@avrabe
avrabe deleted the feat/rollback-digest-consent branch October 28, 2026 18:29
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