Skip to content

Windows subset: selector-literal replay fails with "printed command lost frozen root/diff/JSON scope" #9516

Closed

Description

@EffortlessSteven

Current state: accepted native Windows repair

PR #13297 was protected-squashed at 2026-11-05 10:23:48 UTC as 856e9065cfbdd405308f5835a26829c04cbebe62. Main was read back at this commit, with actual parent c36dee79ec9584d728a66d0cb9ab253f96736a4a and tree f8ba24ba8e70bae0deb162080829f4b8428138e8. The accepted delta is exactly the two reviewed files: Windows workflow blob 558a0d09bd84ba53dbb8b3e4ccc48823a06f5eb2 and changelog fragment cacdfb8666bdc134321ef0afd957d9ae16110495. This issue auto-closed as completed at 10:23:50 UTC.

The consumer now accepts either supported complete literal ending in --json or --format json, preserving the frozen root, diff and quoting. It returns and executes the actual printed command unchanged. Explain and context each independently pass the same scope and original-ID checks; the stale cross-sibling text-equality requirement is removed. Product output, native status handling, stream digests, process/source/executable ownership and cleanup remain unchanged.

The earlier diagnostic was an oracle mismatch before replay: it did not establish that the product dropped scope or PowerShell could not replay the command. The original report and all historical FAIL receipts below retain their historical scope and verdicts.

Acceptance and retained native proof

Predicate Accepted evidence
Both supported forms preserve exact scope and actual text Installed controls 34/34 locally and natively; exact old consumer with final tests fails three cases; restored sibling-equality and relaxed-scope mutants fail.
Wrong root/diff/quoting, absent JSON, extra options/tails and duplicate commands refuse Both forms and host quoting branches are challenged by installed controls; no arbitrary parsing or command normalization is introduced.
Both actual printed sibling commands execute through PowerShell Windows run41999596426/1, job127151175869: actual explain --format json, actual context --json, and repeated literal replay all exit0 and preserve the initial listing bytes.
Recovered selection is the real fixture selection Both actual-ID retries exit0 and all three listing replays retain probe:src_lib.rs:predicate:34000fd8, with the original file/owner/predicate and frozen input observations.
Native receipts remain accountable Selector native status 0 / PASS, 22 cases / 44 verified stream hashes, 5 refusals before any additional launch, correct source/artifact/version and immutable executable observations; producer aliases and staging REMOVED.
Required current qualification and final review 41999596582/1 admission, gates, four shards, verifier and final Result succeeded. Four receipts and aggregate reconcile 27,546 selected identities (6,974/6,941/6,804/6,827), with zero missing/extra/duplicate/failure/error/skipped selected cases. Final review5783355178 binds the unchanged head and reviewed integration basis.

Native implementation head is 3fdd4a951aa4ae88f809097ddc5db399c24a4ecc, tree bc2e8d96b1e61cdf0c33530a7fbf7008bdd2fac1. Actual tested workflow merge G is eb3391f952adfe55ff361407c18a007ddae691be, parents b5a036bb3ca729f2524681ff2cb4a787a449acab + H. Accepted main contains the same reviewed consumer blobs after separately reviewed disjoint main movement; the native receipts keep their original H/G subjects.

Windows artifact 13402629364, 59,516 bytes, ZIP SHA-256 c6a63396c600f9ee1c799c444e276392d74b39457dbad28ceae62a56efcff74a; receipt SHA-256 889f490eccdf97cb51618c3d62557037aa2cbfae02654500d17c23bc9137a400. Required aggregate 13405972935, 834,219 bytes, SHA-256 36189124a8837073ff69ca24c4c88889058d82f76480e71bc98f15c025a74e63. Complete owner inspection and closeout; independent native readback; independent aggregate/native handback.

Evidence boundaries

Receipt workflow_checkout contains H, so G identity comes separately from the raw job log and Git API. Native storage charge 113,331,478 bytes <128 MiB is observed; 5,805 bytes of recursively charged fixture outputs have no uploaded per-file inventory, so independent full-ledger reconstruction is not claimed. The removed native executable is established by native producer/admission/immutable-handle/cleanup observations rather than local rehash.

Acceptance is limited to this frozen-fixture Windows selector lane under #5252/#5581. It does not close those broader parent goals, establish all Windows capabilities, full developer setup, saved-task restoration or a release. Setup #13231 retains its own source/integration/qualification obligations and consumes this accepted prerequisite.

Original report and history

Repro: windows-advisory-subset step "Produce and replay exact-head selector recovery (advisory)" (#5252/#5581). On run 39723987552 (head 26b0ce4) and the following run (head 01607c9) the native consumer wrote state: FAIL, error: "printed command lost frozen root/diff/JSON scope" after git rev-parse HEAD succeeded, so the printed-command replay under stock Windows PowerShell does not preserve the frozen root, diff and JSON scope. The step is advisory (the job stays green), so nothing gated on it, and the failure has gone unread behind the red compile errors that previously masked the whole subset.

Goal hurt: printed ripr recovery commands that actually work when pasted in a Windows shell (trustworthy refusals say what to do next).

Next step: read the retained receipt (ripr-windows-advisory-subset artifact, target/selector-literal/receipt.json) to see which of root/diff/JSON scope was dropped, then fix the printed command or the consumer's quoting.

Owner: printed-command replay / selector lane (#5252/#5581). Found while proving #9295's controls natively (#9471).

Activity

  1. added
    status/needs-work
    on Oct 22, 2026
  2. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Likely already fixed on main by #8849 (4a480c0, "match Windows selector recovery console quoting"), which landed while my branch was behind it: the failure reproduced only against a head older than that change. #9471 merged main at 9db962a and its subset run on that head will confirm. Closing this once that run shows subset-selector-literal: PASS; reopening with the retained receipt if it doesn't.


    Generated by Claude Code

  3. EffortlessSteven commented on Oct 22, 2026

    @EffortlessSteven
    MemberAuthor

    Closing as fixed by main's #8849 (selector recovery quoting). Receipt: the Windows subset run 39732372801 on #9471 head 9db962a, with #8849 merged in, passed the selector-literal replay step, and #9471 is now merged (e71318b).


    Generated by Claude Code

  4. EffortlessSteven commented on Nov 4, 2026

    @EffortlessSteven
    MemberAuthor

    A fresh recurrence appears in Windows advisory run 41805862336, attempt 1, on #12966 head 7b759db17c180dd38bb437acf44555b3ed9626b9: retained subset summary reports subset-selector-literal: FAIL (exit 1) and receipt error printed command lost frozen root/diff/JSON scope. The job reports success because this is an advisory subset. Artifact 13311601872 (SHA-256 7020f2557bf287cf1b5eb66bfa947686b70ae8bbaa5b468900ad3f81e5137cac) contains the retained evidence. The PR changes only a checklist; its exact base has not been independently run, and the cause or relationship to the previous fix is not established. Selector/Windows owner: inspect the receipt and actual command before assigning cause.

  5. EffortlessSteven commented on Nov 4, 2026

    @EffortlessSteven
    MemberAuthor

    2026-11-04 diagnosis of run 41805862336

    Candidate 7b759db17c180dd38bb437acf44555b3ed9626b9 differs from its base 05b9f30daab2c734d4eb7203d2fb95a8a08787bc only in docs/releases/0.11.0-cut-checklist.md; no product, Cargo lock or Windows workflow bytes changed. The hosted receipt printed in job 126492687821 identifies a native Windows binary built from that head, records a successful initial listing and five rejected admission controls, then explain-malformed exit 2 with empty stdout and the selector-syntax diagnostic. Its exact-string consumer rejected the suggested command before any PowerShell replay. It records the stderr SHA-256 e3b4942864c266633b5b080a2605b8ca65df52d4c66e1e7cbc566940270c707d, but the log does not print that stderr text.

    A concrete likely cause exists in current/base source: explain_list_command deliberately rewrites the navigation suffix --json to --format json (landed #11844), while windows-advisory.yml's recovery_command requires the literal --json suffix for both sibling commands. On Linux with the actual candidate-built target/debug/ripr, a real temporary Cargo fixture and diff with spaces produced exit 2, empty stdout, and an explain hint preserving root/diff with --format json. Feeding that actual stderr to the workflow's extracted printed_recovery function rejected it with the identical printed command lost frozen root/diff/JSON scope message; replacing only --format json with --json was accepted, and a wrong-root mutation was rejected. Both actual printed command and the alias returned exit 0 and valid JSON on that fixture. This is a real producer-to-consumer counterexample to the strict spelling oracle, not a Windows execution proof.

    The artifact download returned a CONNECT 403 in this execution environment, so I could not read the retained Windows explain-malformed.stderr or verify the ZIP digest locally. Therefore the suffix mismatch is strongly supported but the exact hosted command and whether any additional Windows path/quoting mismatch exists remain not established. No PowerShell replay occurred in the failed hosted journey, so neither a product replay failure nor a Windows fix is established. Next owner: inspect artifact 13311601872's stderr, then update the consumer to accept both documented JSON forms while preserving frozen root/diff and execute both sibling commands with wrong-root/diff controls on native Windows. Do not infer release readiness from the green advisory job.

  6. EffortlessSteven commented on Nov 5, 2026

    @EffortlessSteven
    MemberAuthor

    Fresh native Windows witness: JSON alias oracle mismatch, 2026-11-05

    The existing recurrence in comments 6627678604 / 6627734868 is now confirmed by downloaded raw Windows bytes from run 41983465714, job 127098659943, attempt 1, on provider PR #12972 head 85d871424b891f97d5cf45764bcb9beef1e7aa7b, tree acfb3f79fe0e57cca7727450395eeb29a5655794.

    Artifact 13397045712 (ripr-windows-advisory-subset) was downloaded and its ZIP SHA-256 verified: e5e8a3b27d5745356f8eee1b25f6423f1299cf1a13f3613f7d45b336d4139577. All 28 command stdout/stderr digests in its selector receipt were independently checked. The aggregate job is green, but the retained subset verdict is FAIL, exit 1; the ten other subsets report PASS. This advisory result is not being called clean.

    explain-malformed actually exits 2 with empty stdout. Raw stderr SHA-256 is b4fc76dbb85b3907abcb9ce40b2c22af9540dc7aa1f710378341e956f9fb92b7. It prints:

    ripr check --root "D:/a/_temp/selector literal 41983465714-1" --diff "D:/a/_temp/selector literal 41983465714-1/fixture change.diff" --format json
    

    The workflow's recovery_command expects the identical root, diff and quoting but a terminal --json. Product app/explain.rs::explain_list_command deliberately rewrites that suffix to --format json, landed by #11844 for #11570 item 4. This is a stale advisory-oracle spelling, not observed loss of root/diff/JSON scope. The raw stream also retains a Git quota/cache warning; that does not explain the exact-string mismatch.

    A bounded replay of the actual committed Python printed_recovery function against these retained bytes rejects the actual command, accepts replacement of only --format json with --json, and still rejects wrong-root and wrong-diff controls. This executes the consumer oracle on retained bytes; it does not execute the printed command in PowerShell. The failed hosted journey stops before recovery-command replay, so native Windows replay remains NOT_ESTABLISHED.

    Source equivalence was checked directly at accepted main 9d296a50a6f6ad8d0056fbd4df41001a4322b408, provider head above and package PR #13107 head bfe2481e36ce52f7e1f0af925de730ede5a1effa: Windows workflow blob def1953088b278c8c49fe50520b712ceea82ff23, navigation 207fc06d607ab9757d9ff013e2ca42fc2c37bb64, explain 512bb4886f6a30f3a8f864f06bd56c905c0d4bea, context 51463512a54664f605fdc69f6a0c7cd465f9e89d, and selector f88178058f994a7abe0351bf1660b6667ad28573 all match. Provider and package also share quoter blob b72bf094a8647589f4129089b38e825903dedf2e. The package run must retain its own actual receipt; source equivalence does not substitute one run's result for another.

    All-state searches for the exact diagnostic, selector-literal, printed_recovery, 9516, and selector/JSON forms found this existing recurrence and the historical #8848/#8849 quoting repair, plus #5252/#5581's selector ownership. No duplicate issue or provider repair is opened. #12972's seven-file Linux installed-recovery delta touches none of these Windows consumer/selector/renderer paths and makes no Windows literal-replay claim; this inherited instrument finding does not invalidate its installed same-home recovery evidence. The existing selector owner should repair the alias-aware consumer while preserving frozen scope, actual literal replay, and wrong-root/diff controls, then establish native Windows execution through its normal proof route.

  7. EffortlessSteven commented on Nov 5, 2026

    @EffortlessSteven
    MemberAuthor

    Current native recurrence and reopened acceptance

    The selected setup run 41985534575/1, job 127105817635 supplies another independently consumed native Windows witness. Root checkout e00e8c4; workflow checkout 417bac3. Artifact 13397536491 is 45,503 bytes, ZIP SHA-256 2c25c169278ca4044e5d2976ba1459359505dea83c613a5721b76248386aa78b. Every one of the 28 retained selector command streams matches its receipt hash.

    The selector receipt is FAIL/native status 1, despite the advisory job's successful conclusion. Malformed explain exits 2 and prints the frozen root/diff correctly with --format json. The consumer requires --json and rejects the exact string before PowerShell replay. Running the committed oracle against the retained stderr reproduces refusal; changing only that JSON spelling passes, while wrong-root and wrong-diff controls still refuse. Native literal replay remains unestablished.

    The complete executed selector consumer is byte-identical to catalog 9d296a5 and observed main a24077d (consumer SHA-256 de44331d4b8f5228ed05fcaf4db330d53a6602b4c39fd62bac80e11c9fb499e8). Product explain blob 512bb4886f6a30f3a8f864f06bd56c905c0d4bea also matches. Setup's workflow changes are confined to its separate editor/process suite and denominator; its exact 34/31/0/3 native receipt is passing and does not make this selector failure clean.

    This confirms the same unresolved recurrence already diagnosed in 6627734868 and 6652411867, following intentional product formatting change #11844. All-state carrier searches found no active Windows consumer repair; #11982 was closed/unmerged and Rust-test-only. Reopening this existing issue preserves its actual unresolved acceptance instead of creating a duplicate or attributing it to the setup candidate. Ownership remains the printed-command/selector lane under #5252/#5581. Required next proof is an alias-aware, frozen-scope consumer plus actual native Windows replay and wrong-root/diff controls.

  8. EffortlessSteven commented on Nov 5, 2026

    @EffortlessSteven
    MemberAuthor

    Accepted repair custody — Windows selector consumer

    The assigned #9516 repair is complete in PR #13297, protected-squashed at 2026-11-05 10:23:48 UTC as 856e9065cfbdd405308f5835a26829c04cbebe62. Accepted main, parent c36dee79ec9584d728a66d0cb9ab253f96736a4a, tree f8ba24ba8e70bae0deb162080829f4b8428138e8 and the exact two reviewed file blobs are verified. This issue auto-closed/completed at 10:23:50 UTC.

    The sole writer/request owner remained /root/activation_delivery. Head 3fdd4a951aa4ae88f809097ddc5db399c24a4ecc stayed unchanged through one required request 41999596582/1, final exact-head review5783355178 and expected-head squash. Full receipts reconcile 27,546 selected Rust tests across all four shards and aggregate; gates, verifier, final Result and live eligibility/source rechecks succeeded.

    Actual native Windows run41999596426/1 supplies selector 0 / PASS, 22 cases / 44 verified streams, 3 unchanged real PowerShell literal replays, 2 original-ID retries, 5 refusals before any additional launch, 34/34 installed controls, correct source/executable observations and completed producer/staging cleanup. Explain retains its actual --format json; context retains its actual --json. Product output and process/status/hash ownership are unchanged. Historical failing receipts keep their original verdicts.

    Complete review, receipts, integration and resource closeout retains the distinct H/G/accepted-main subjects and native ledger boundary. In particular, the 5,805-byte unuploaded recursive-fixture remainder prevents claiming independent full-ledger reconstruction. No full developer-setup, saved-task restoration, all-Windows or release claim follows from this bounded repair. Setup #13231 and broader #5252/#5581 retain their own acceptance.

  9. removed
    status/needs-work
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions