Skip to content

Prevent stale front-app recovery records from contaminating the next matrix run #183

Open

Description

@SSFSKIM

Problem & intent

Hold 3 cua run 2 ran 562 rows but ended INCOMPLETE: put-back declined its saved front app as a scene app. Its own begin read Terminal; the spec says the retained record most likely came from route-ab attempt 4's failed cleanup. saveFrontmost keeps an existing recovery file while begin reports the newly observed app. Preserve genuine recovery without silently making it the next run's restore target. The exact earlier-record provenance remains a hypothesis.

Seams: scripts/native-matrix/live-device.mjs, saveFrontmost, scripts/native-matrix/live-checks.mjs.

Constraints

Success criteria

  • Reproduce failed cleanup followed by begin: either refuse with recovery instructions or finish ownership-safe recovery before recording the new start state.
  • Begin metadata and put-back refer to the same run-scoped front record.
  • Keep scene-app and process-identity safeguards; never reactivate a scene app just to make the verdict green.
  • Test clean, failed-cleanup, stale-record and exited-process cases; demonstrate clean put-back in a targeted hold.

Open questions

Can the old journal be safely completed before begin, or must begin refuse? Prefer explicit unresolved recovery to discarding its only record.

Decision log

Sources

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P1
    on Oct 22, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Oct 22, 2026
  3. SSFSKIM commented on Oct 22, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Harness recovery fix; live mini proof remains deferred.

  4. added
    status:in-review
    and removed
    status:in-progress
    on Oct 22, 2026
  5. SSFSKIM commented on Oct 22, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: Recovery ownership unit-proven; targeted clean put-back remains in authorized hold.

  6. SSFSKIM commented on Oct 22, 2026

    @SSFSKIM
    OwnerAuthor

    PR #199 makes begin refuse retained front/Finder recovery records before new state or engine stop, preserves the original record, reports an explicit device recovery command, and derives begin metadata from the saved record. Put-back clears it only after successful activation plus matching PID/bundle. Regression coverage includes clean begin/cleanup, failed cleanup followed by begin, stale/malformed/unreadable records, scene-app refusal and exited/replaced process cases. Focused harness/parity suite: 508/508. Clean live put-back remains for the authorized hold; no mini access made.

  7. SSFSKIM commented on Oct 22, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] Final reviewer-medium verdict for d95261f..4364bb0: correct, no material findings. Initial P2 probe-settlement ownership finding fixed in4364bb00; follow-up review passed nine focused settlement regressions. Final hosted CI39873872950 green (test/plugin/verdict); focused harness/parity517/517. PR#199 is ready. M4 native-probe integration and authorized live hold proof remain required; no issue closed and no mini access made.

  8. added 4 commits that reference this issue on Oct 23, 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

    Labels

    bugpriority:P1status:in-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions