Skip to content

Deepen process supervision for reply-driven Plan usage reads - #2444

Open
JacobStephens2 wants to merge 2 commits into
mainfrom
issue-2443
Open

JacobStephens2 wants to merge 2 commits into
mainfrom
issue-2443

Conversation

@JacobStephens2

Copy link
Copy Markdown
Owner

Summary

Plan usage refresh
└── Codex app-server and Muse serve
    ├── Plan usage prepares JSON-RPC requests and collects the requested replies
    └── Shared process supervision owns both pipes, the deadline, and cleanup

The exchange returns as soon as the requested replies arrive, even while the Harness is still running. The deadline includes request writes and preserves complete replies received in time. Interruption preserves the saved Plan usage snapshot.

Closes #2443

Evidence

Execution evidence

  • cargo test --test plan_usage interrupting_a_local_refresh_stops_the_probes_and_keeps_saved_plan_usage
    • Before probe process 3811772 survived (1 failed).
    • After The probes stopped, the snapshot stayed intact, and a fresh read succeeded (1 passed).
  • cargo test --locked --bin thirdshift process::tests::exchange_rejects_replies_after_the_deadline_during_a_slow_group_observation -- --exact
    • Before The assertion got Some("late reply") and expected None (1 failed).
    • After The late reply was discarded (1 passed).

The tests exercise the process interface with local children and the Plan usage CLI with faux Harnesses.

Merge Danger

Door Two-way

Blast radius Probes

Unaddressed findings

  • Standards None. Both findings were addressed.
  • Spec None. The late-reply regression was fixed and retained.

Both reviewers read every changed file.

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.

Deepen process supervision for reply-driven Plan usage reads

1 participant