Skip to content

Deepen Console Inbox row preparation for local Commands - #2355

Merged
JacobStephens2 merged 7 commits into
mainfrom
issue-2354
Nov 29, 2026
Merged

JacobStephens2 merged 7 commits into
mainfrom
issue-2354

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Console Inbox HTML
  capture and evaluate the owning Inbox once
  prepare typed Command facts and admitted Fleet rows
  render both through one recursive presenter

Console status HTTP and CLI JSON
  emit the existing version-2 Document

The presenter keeps dispatch progress and Slow markers when a dispatched Run has its own row. It preserves Ready for review grouping, checks, title and link precedence, and local and Fleet controls. Non-UTF-8 paths use exact selectors for Command and Session links. Kept GitHub answers and Dismissals still use the keys already stored on disk.

Closes #2354

Evidence

Execution evidence

Regression command Before After
cargo test --test console inbox_renders_a_command_when_its_record_path_cannot_be_serialized Inbox returned HTTP 500. Console stderr reported path contains invalid UTF-8 characters. HTTP 200 with the Command in Needs you.
cargo test --test console inbox::inbox_opens_details_for_command_in_non_utf8_logs_directory -- --exact HTTP 404, Command details are unavailable. 1 passed; 0 failed
cargo test --test console inbox::inbox_opens_session_in_non_utf8_logs_directory -- --exact HTTP 404, Log is unavailable. 1 passed; 0 failed
cargo test --bin thirdshift logs::reading::tests::legacy_frozen_answer_keeps_non_utf8_failed_command_settled -- --exact A saved settlement was ignored and the Command appeared in Needs you. 1 passed; 0 failed. The archived Command stayed in History with its original departure reason.
cargo test --test console inbox::inbox_full_log_preserves_the_frozen_title_for_a_non_utf8_command -- --exact The Full log page omitted the frozen PR title. 1 passed; 0 failed
cargo test --locked --bin thirdshift logs::status::rows::tests::checked_document_preserves_wire_and_prepares_legacy_rows -- --exact called Option::unwrap() on a None value Passed after the regression used the dispatch iterator.

cargo fmt --all --check and cargo check --locked passed. The test seams are the local Console HTTP routes, the owning Inbox evaluation, the common presentation interface for a captured Command and its emitted Fleet Document, and the status CLI.

scripts/affected-tests refs/remotes/origin/main passed the full Rust suite and all 280 Console browser tests. The test process used a PATH without the host's installed Muse so the Plan usage fixture could exercise its absence. GitHub CI passed all four Rust partitions, their coverage gate, and the Console and site browser suites on 103b98de. CI run

Visual evidence

Headless Chromium exercised Inbox grouping, Peek, repository filtering and Dismiss/Undo. The new walkthrough compares the pinned base 8e12706b and head 103b98de with the same faux Command directory containing a non-UTF-8 byte. The base returns HTTP 500. The head opens Peek, reads the full Command log and opens the Session trace. The recording masks the host name and filesystem paths.

Before — Inbox and Peek, desktop 1440×900

Before Inbox and Peek at desktop 1440×900

After — Inbox and Peek, desktop 1440×900

After Inbox and Peek at desktop 1440×900

Before — Inbox with a non-UTF-8 Command directory, desktop 1440×900

before-nonutf8-desktop.kjGqNR.mp4

After — Inbox, Peek and Session trace with a non-UTF-8 Command directory, desktop 1440×900

after-nonutf8-desktop.97Ylvl.mp4

Merge Danger

Door Two-way. A revert restores the prior presentation path.

Blast Radius Console Inbox and archive rows, Command detail links, and the local status handler.

Unaddressed findings

Standards

  • The earlier reviewer withdrew a macOS/APFS portability concern about the byte-path fixture after the exact Linux regression passed. The repository specifies native Linux runs and a Linux VM filesystem for macOS contributors. Supported platforms in the base README

Spec

None.

Security

No unaddressed introduced findings.

Security review outcome

  • Security review on grok failed; see Session trace

Review coverage

The Spec reviewer read all 17 changed files. The Standards reviewer read 16. src/logs/status/target.rs was changed to address the Spec follow-up after the Standards pass.

Built with codex codex-cli 0.167.2 · gpt-6.2-sol · xhigh

@JacobStephens2

Copy link
Copy Markdown
Owner Author

Delivery completed on agent-authored or reviewed head 6bca0a5.

@JacobStephens2

Copy link
Copy Markdown
Owner Author

Review run. Pushed fixes to issue-2354 at 64ecf91. Spec axis used the linked closing issues.

Reviewed PR #2355 against 8e12706b84a9d4d9141719fa06024ab728d71362. The fix and regression are committed as 64ecf91c.

Standards

Fixed duplicate Inbox identities for non-UTF-8 paths. Two distinct Command records rendered with the same row ID and selector because both paths converted to the same display string. The fix preserves the exact path bytes for identity and selection. The retained regression verifies that each rendered selector undoes only its own saved Dismissal. Regression test

Spec

No actionable findings against the linked closing issue. The Inbox HTML route evaluates the owning Inbox once, and typed local Commands and checked Fleet rows use the shared presenter. Issue #2354

Unaddressed findings

  • Standards — None.
  • Spec — None.

Coverage

Both reviewers read all eight files in the pinned diff. The review covered all six follow-up files. No changed files were unread or excluded. Standards report · Spec report · Finding counts

Validation

The PR was open at the single pre-validation check. The affected suite and focused follow-ups ran with ~/.local/bin removed from PATH to isolate the Muse fixture from the host installation.

Command Result
gh pr view https://github.com/JacobStephens2/thirdshift/pull/2355 --json state --jq .state Exit 0, OPEN
cargo test --offline --locked --test console inbox::inbox_keeps_distinct_non_utf8_records_selectable -- --exact Exit 101 before the fix, reproducing the duplicate ID and selector. Exit 0 after the fix.
cargo test --test console inbox_renders_a_command_when_its_record_path_cannot_be_serialized Exit 0 before and after the fix
cargo fmt --all --check Exit 0
git diff --check 8e12706b84a9d4d9141719fa06024ab728d71362...HEAD Exit 0
scripts/affected-tests main Exit 1 after the Rust test failure below
cargo build --locked Exit 0 within the affected suite
npm test --prefix console Exit 0 within the affected suite, 280 passed
cargo nextest run Exit 100. Of 4,953 selected tests, 626 passed, 1 failed, and 4,326 were canceled. Nextest reported 219 additional skips.
cargo test --locked --test console tokens::read_scope_cannot_read_security_findings -- --exact Exit 101. The isolated rerun reproduced the API and CLI stage.age_seconds difference of one second.
cargo nextest run --rerun de2d44cf-dae5-4363-89b9-a9677fc393ec --no-fail-fast Exit 95 before running tests. Nextest’s experimental recording feature was disabled.
cargo test --locked --bin thirdshift logs::status Exit 0, 15 passed
cargo test --locked --test dismiss --test status Exit 0, 111 passed, 4 ignored
cargo test --locked --test console inbox:: Exit 0, 32 passed
cargo test --locked --test console fleet:: Exit 0, 15 passed
cargo test --locked --test console api:: Exit 0, 14 passed

The full Rust suite remains incomplete. Its failure was in the existing token test’s API and CLI equality assertion. Failing assertion · Validation log

Standards 1 finding, duplicate Inbox identity fixed. Spec 0 findings.

Security

  • Security review on grok failed; see Session trace

CI passed or absent at 64ecf91

@JacobStephens2 JacobStephens2 removed the in-progress A Claim: thirdshift has taken this issue label Nov 29, 2026
@JacobStephens2 JacobStephens2 added the in-progress A Claim: thirdshift has taken this issue label Nov 29, 2026
@JacobStephens2

Copy link
Copy Markdown
Owner Author

Delivery completed on agent-authored or reviewed head 143686c.

@JacobStephens2

Copy link
Copy Markdown
Owner Author

Review run. The branch moved; no fixes were pushed. Proposed fixes remain in the local worktree. Spec axis used the linked closing issues.

Reviewed PR #2355 against 8e12706b84a9d4d9141719fa06024ab728d71362 and committed the fixes as 8c20546b. All four retained regressions passed after the fixes. Both browser suites passed. The full Rust suite stopped on a Fleet test that passed on an exact rerun.

Standards

  1. Fixed frozen GitHub answers leaking between Commands. Distinct paths could produce the same saved key, letting a newer failed Command inherit an older Command’s closed-issue answer and skip refresh. New entries use exact path bytes. Legacy entries are used when the captured inventory identifies a unique Command for that spelling. Cache lookup
  2. Fixed Command log selectors rejected by the resolver. Details now uses an explicit type for log paths and selectors. The resolver accepts the encoded log selector, and the manual documents how to pass it back. Regression · Manual

Spec

The Spec was the supplied linked closing issue. Issue #2354

  1. Fixed Inbox log links for non-UTF-8 filenames. Command log discovery preserves the filename bytes. The retained Console test opens each of two distinct logs from its own Inbox row. Regression
  2. Fixed a newer Command disappearing from Ready for review. An older Command’s frozen Closed answer could mask the current Open answer for the newer Command. The retained regression verifies that the newer Command stays in Ready for review. Regression

Unaddressed findings

  • Standards — None.
  • Spec — None.

Coverage

Both reviewers read all 17 files in the pinned diff. I read every fix hunk, including the regenerated manual. Every changed file was covered, with no generated-output exclusions. The non-UTF-8 fixtures used the serving OS account. The separate Other-account suite passed all 19 tests. Standards report · Spec report · Finding counts

Validation

Each retained regression exited 101 before the fix and 0 after it.

Command Reproduced before the fix
cargo test --locked --bin thirdshift logs::reading::tests::non_utf8_history_does_not_freeze_another_commands_issue -- --exact The newer Command’s issue was skipped for refresh
cargo test --locked --bin thirdshift logs::reading::tests::encoded_command_log_preserves_absolute_path_selection -- --exact The resolver rejected the emitted selector
cargo test --locked --offline --test console inbox::inbox_opens_each_non_utf8_command_log -- --exact The Inbox log link returned 404
cargo test --locked --offline --bin thirdshift logs::reading::tests::frozen_pr_answer_stays_with_its_non_utf8_record -- --exact The newer Command appeared in Done instead of Ready for review

The cache reproduction also failed through python3 - against the original CLI with exit 1 and passed through python3 .review-logs/reproduce-github-cache.py against the repaired CLI with exit 0. An intermediate Details test build failed with exit 101 on a Rust visibility error. The corrected build and exact rerun passed.

Command Result
gh pr view https://github.com/JacobStephens2/thirdshift/pull/2355 --json state --jq .state Exit 0, OPEN
scripts/affected-tests main Exit 1 after the Rust failure below
npm test --prefix site Exit 0, 74 passed
cargo build --locked Exit 0, debug build
npm test --prefix console Exit 0, 280 passed
cargo nextest run Exit 100, 413 passed, 1 failed, 4,547 stopped by fail-fast, 219 skipped
cargo test --locked --test console fleet::status_reports_failed_machines_without_losing_the_local_inbox -- --exact Exit 0, 1 passed
cargo test --locked --test show_logs --test dismiss --test status Exit 0, 128 passed, 6 ignored
cargo test --locked --test console other_accounts:: Exit 0, 19 passed
cargo test --locked --test console inbox:: Exit 0, 35 passed before and 36 after
cargo test --locked --test console fleet:: Exit 0, 15 passed
cargo test --locked --offline --test console api::inbox_api_equals_status_json_without_sign_in -- --exact Exit 0 before and after, 1 passed each
cargo test --locked --bin thirdshift logs::reading Exit 0, 55 passed
cargo test --locked --bin thirdshift logs::status Exit 0, 15 passed
cargo build --locked --bin thirdshift Exit 0, baseline CLI reproduction build
npm ci --prefix console, npm ci --prefix site Exit 0 each
npm run docs --prefix site, npm run docs:check --prefix site Exit 0 each
cargo fmt --all --check, git diff --cached --check, git diff --check 8e12706b84a9d4d9141719fa06024ab728d71362...HEAD Exit 0 each

The Fleet fixture expected unreachable and received needs update after a 404. The exact rerun passed, and the cause of the 404 remains unconfirmed. The affected suite and follow-up runs used a PATH with ~/.local/bin removed to isolate the host’s Muse installation. Fleet assertion · Affected-test log

The manual browser probe initially timed out with a nested section folded. After correcting the probe, REVIEW_MANUAL_CAPTURE="$capture" REVIEW_MANUAL_PHASE=before bash .review-logs/verify-manual.sh and the same command with REVIEW_MANUAL_PHASE=after each exited 0. Both verified the page with JavaScript enabled and disabled. Before · After

Standards 2 fixed, most serious the shared frozen GitHub answer. Spec 2 fixed, most serious the missing Ready for review Command.

Security

No unaddressed introduced findings.

Delivery failed

head moved after review; expected 103b98d, actual 143686c; the PR stays ready for review

@JacobStephens2 JacobStephens2 added in-progress A Claim: thirdshift has taken this issue and removed in-progress A Claim: thirdshift has taken this issue labels Nov 29, 2026
@JacobStephens2

Copy link
Copy Markdown
Owner Author

Review run. Pushed fixes to issue-2354 at 427c383. Spec axis used the linked closing issues.

Reviewed PR #2355 against 5991922886dfa32ae0e44aee6fdafa83cb33dbcb using linked issue #2354 and its supplied Trusted comments as the Spec. Addressed all five findings in local commit 427c383d. The worktree is clean. Issue #2354

Standards

  1. Details treated selector text as a filesystem path. Details now serializes selectors as text, and URL builders accept that text directly. Filesystem readers keep native paths. The Dismissal sidecar key has a separate name from the selectable identity and display label. Details selector
  2. The Dismissal test checked only how many sidecars were removed. The strengthened test identifies each row by its issue title and verifies that Undo removes that row’s own sidecar while preserving the other Command’s Dismissal. Regression

Spec

  1. A newer Command could disappear from Ready for review. Two byte-distinct paths could share a lossy cache key, letting an older frozen Closed answer override the newer Command’s Open answer. New answers use exact keys. An existing legacy key is used when it identifies one captured Command. Regression
  2. Full Command log links returned 404 for existing non-UTF-8 filenames. Log discovery now preserves the filename bytes. Chromium confirmed that both links went from HTTP 404 to HTTP 200 and that each opened its own log. Regression
  3. Details emitted Command log selectors that the resolver rejected. Encoded selectors now resolve against captured log paths. The manual documents how to reuse them. Regression · Manual

Unaddressed findings

  • Standards — None.
  • Spec — None.

Review coverage

Both reviewers read all 17 files in the pinned diff. I reviewed every fix hunk, including the regenerated manual. No changed files were unread or excluded. Standards report · Spec report · Finding counts

Validation

The affected suite ran in the review worktree with NEXTEST_TEST_THREADS=3 and ~/.local/bin removed from PATH so the Plan usage fixture could exercise Muse’s absence. The first rebuild of the two Spec unit tests exited 101 on URL helper type errors. I corrected the callers, and both exact reruns passed. Validation log

Command Result
gh pr view https://github.com/JacobStephens2/thirdshift/pull/2355 --json state --jq .state Exit 0, OPEN at the single pre-validation check
bash .review-logs/validate.sh, which ran scripts/affected-tests main Exit 0 for both
npm test --prefix site Exit 0, 74 passed
cargo build --locked Exit 0
npm test --prefix console Exit 0, 280 passed
cargo nextest run Exit 0, 4,961 passed, 219 skipped
cargo test --locked --bin thirdshift logs::reading::tests::frozen_pr_answer_stays_with_its_non_utf8_record -- --exact Exit 101 on the baseline, which showed Done. Exit 0 after the fix.
cargo test --locked --test console inbox::inbox_opens_each_non_utf8_command_log -- --exact Exit 101 on the baseline with HTTP 404. Exit 0 after the fix.
cargo test --locked --bin thirdshift logs::reading::tests::encoded_command_log_preserves_absolute_path_selection -- --exact Exit 101 on the baseline because the selector did not resolve. Exit 0 after the fix.
cargo test --locked --test console inbox::inbox_keeps_distinct_non_utf8_records_selectable -- --exact Exit 0 before and after the production changes
cargo test --locked --bin thirdshift logs::reading::tests::legacy_frozen_answer_keeps_non_utf8_failed_command_settled -- --exact Exit 0 before and after
cargo test --locked --test console inbox::inbox_opens_session_in_non_utf8_logs_directory -- --exact Exit 0
cargo test --locked --test console inbox::inbox_full_log_preserves_the_frozen_title_for_a_non_utf8_command -- --exact Exit 0
cargo test --locked --test console api::inbox_api_equals_status_json_without_sign_in -- --exact Exit 0
bash .review-logs/verify-console.sh before and bash .review-logs/verify-console.sh after Exit 0 each. Verified both expected 404s before and both exact log contents after.
bash .review-logs/verify-manual.sh before and bash .review-logs/verify-manual.sh after Exit 0 each, with JavaScript on and off
npm ci --prefix console, npm ci --prefix site, npm run docs --prefix site, npm run docs:check --prefix site Exit 0 each
cargo fmt --all --check Initial exit 1 on formatting, final exit 0
git diff --check, git diff --cached --check, git diff --check 5991922886dfa32ae0e44aee6fdafa83cb33dbcb...HEAD Exit 0 each

Standards 2 fixed, chiefly the path and selector type mix-up. Spec 3 fixed, chiefly the missing Ready for review Command.

Security

No unaddressed introduced findings.

CI passed or absent at 427c383

@JacobStephens2
JacobStephens2 merged commit 25d4b5e into main Nov 29, 2026
25 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-2354 branch November 29, 2026 20:43
@JacobStephens2 JacobStephens2 removed the in-progress A Claim: thirdshift has taken this issue label Nov 29, 2026
@JacobStephens2 JacobStephens2 mentioned this pull request Nov 30, 2026
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 Console Inbox row preparation for local Commands

1 participant