Repository navigation
Deepen the Command reader around selection and ownership - #800
Merged
Merged
Conversation
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make status, show, logs and Stop share one Command reader for discovery, history, selection and exact ownership. Callers retain formatting, byte streaming and Stop effects.
Closes #793
Evidence
Snapshotandretained_workdid not exist; callers reconstructed ownership across status/inspect/Stop.After: five reader-interface tests pass, covering direct Runs, Pass dispatches, equal-numbered children, separate Commands, historical selection, Session choice and retained-work reload.
cargo test --test status --test show_logs --test stoppassed all 42 existing tests.cargo test --test show_logs logs_follow_drains_final_bytes_after_an_outcome_or_selected_child_ends: passes for both a durably ended outer Command and a selected ended child, comparing all followed bytes to the final Command log.cargo fmt --checkandcargo clippy --all-targets -- -D warningspass.cargo testpassed: 1,968 tests across 49 test groups, zero failures and two existing ignores.Test seams
Unaddressed findings
Standards
reading.rs:163disables live-first grouping for--alland includes a repository tie-break; resolution atselection.rs:116always prefers live observations. #793, decision 3 requires preserving their distinct listing/resolution rules. This judgement-only smell does not justify another abstraction in this migration.OnMachineat reader construction,reading.rs:196and follow observation,selection.rs:259. #793, decisions 2 and 8 settle explicit logs-root/time inputs, real filesystem fixtures and reuse of existing process identity, without a generic reader effects trait. The focused reader process-identity test and real-process final-byte test pass. A new internal port is unnecessary for this scope. No unresolved Spec or Day shift decision remains.Spec
None.
Neither reviewer asserted a behavior defect, so there were no finding-specific failing commands to adjudicate.
Security
None. Reviewed
b9a3330bd992460f2a4510ca7bc10590c7391983...HEADand supporting Command record, filesystem ownership, Session selection, historical recovery and Stop/process-identity code usingthirdshift-security-auditin guidance mode.Validation: all 5 reader tests, 14 show/logs tests, 20 status tests and 9 Stop tests passed across isolated offline runs with local fixtures. No source changes were required.
Security review outcome
No unaddressed introduced findings.
Review coverage
Standards and Spec independently read every changed file, including the removed historical source. Changed files left unread: none on either axis. Generated-output exclusions: none. Full reports and each axis's final files-read list are retained in
.thirdshift-review-1vxwfC/standards.mdand.thirdshift-review-1vxwfC/spec.mdin the implementation workspace.Merge Danger
Door: two-way
Internal refactor with no persisted-format change.
Blast Radius: CLI
Command observation, log following and Stop selection across configured logs; existing durable-outcome and process-identity signaling checks remain in place.
Built with codex · gpt-6.1-sol · high