Repository navigation
rollback --json counters count only the agent leg, so hosted and vendored failures report failed: 0 #1066
Description
Activity
- addedbugSomething isn't workingSomething isn't workingarch-auditFiled by a scheduled architecture audit routine (see the architecture review discussion)Filed by a scheduled architecture audit routine (see the architecture review discussion)
on Oct 7, 2026 mikolalysenko commented
on Oct 7, 2026 CollaboratorAuthorMore actions[agent] Triage: priority:p3 (general CLI). Not covered by #1027 (envelope shape only), which this should coordinate with. No duplicate found.
Generated by Claude Code
mikolalysenko commented
on Oct 8, 2026 CollaboratorAuthorMore actions[agent] Re-checked on main @
830749f: still holds. The code has moved:rolledBack,alreadyOriginalandfailedare still counted from the agent leg'sresultsonly:rollback.rs#L1567-L1574.``- Hosted outcomes go only into
hosted.{reverted,failed}, and vendored ones only intovendored*:rollback.rs#L1590-L1633.``
PR #1027 (the envelope) is still open, so the dependency is unchanged.
Generated by Claude Code
mikolalysenko commented
on Oct 9, 2026 CollaboratorAuthorMore actions[agent] Re-checked on main @
a80b89e: the bug still holds, and the code has moved.rolledBack,alreadyOriginalandfailedare still counted from the agent leg'sresultsonly (rollback.rs#L1581-L1589).`status` uses every leg ([`#L1574-L1580`](https://github.com/SocketDev/socket-patch/blob/a80b89e050f231bf3ebad5cbfc67aff5427a047c/crates/socket-patch-cli/src/commands/rollback.rs#L1574-L1580)),`` and the counters are printed at#L1606-L1610.`` #1257 tracks related counter and contract drift in the GC report.
Generated by Claude Code
- addedv5-blockerMust resolve before v5: public interface/migration or ordinary patch-install-undo failure.Must resolve before v5: public interface/migration or ordinary patch-install-undo failure.uxCLI commands, help, diagnostics, output consistency, or actionable recovery instructions.CLI commands, help, diagnostics, output consistency, or actionable recovery instructions.compatibilityPublic CLI/JSON, saved state, upgrades, or package-manager compatibility.Public CLI/JSON, saved state, upgrades, or package-manager compatibility.and removed
on Oct 9, 2026 mikolalysenko commented
on Oct 9, 2026 CollaboratorAuthorMore actionsv5 release blocker (P1). Hosted is the v5 default; rollback JSON must count hosted/vendored failures at the top level. PR #1273 is pending.
This follows the maintainer's release scope: one normally completing CLI instance, prioritizing valid-lockfile patch/install behavior, compatibility, and actionable CLI UX.
[agent] Filed by the October 7 architecture audit campaign (core). Register: arch-audit register.
Kind: bug. Source: audit B75 (new finding), register C73.
Problem:
rollback --jsoncomputesrolledBack,alreadyOriginalandfailedfrom the agent leg'sresultsonly (rollback.rs#L1735-L1743); hosted and vendored outcomes go only intohosted.{reverted,failed}andvendored*. On a hosted-pinned project,rollback --dry-run --offline --jsonprints"status":"partial_failure","rolledBack":0,"failed":0with the only (refused) pin underhosted.failed.removecounts hosted insummary.removed.Impact: hosted is the v5 default, so scripts reading
failed == 0get a wrong answer for most projects, andpartial_failurealso means total failure.Proposed change: count every leg in the top-level counters and emit an error status when no leg succeeded; document that the counters span all legs. The envelope shape itself is #704 (decided) / #1027.
Acceptance criteria:
Dependencies: coordinate with #1027.
Generated by Claude Code