Repository navigation
Give Inbox rows in Landing, Ready for review and Stopping their state - #1183
Merged
Merged
Conversation
The Inbox row's state word is now computed once, beside the grouping: a Needs you kind, then Stopping for a live Command given a Stop, Ready and Landing for those groups, otherwise the Command's own state. The Console row's data-state and the status text line both use it, so every Theme's Landing and Ready tag colours and the Stopping stripe apply. status --json adds stopping beside landing. Landing keeps Working's live-activity marker and a Stopping row keeps Working's tag colours.
Review follow-ups: InboxItem::state_word names the row's word apart from the Command's own state, live_record takes its issue number, and the manual says only Command record rows carry the word in status text.
Merged
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
An Inbox row's state word is now computed once, beside the Inbox grouping. The Console row and
thirdshift statusboth show that word:Console row data-state + <span class="state"> ← state_word() (was: raw state, or Needs you kind) status text "… · <word> · harness …" ← state_word() (was: raw state) status --json state (raw, unchanged), group, needs_you_kind, landing + stoppingThe existing styles now apply:
--tag-landing-*colours and keep Working's live-activity marker.--tag-ready-*.Live updates need nothing new: the Stop request file is under
logs.dir, so writing it already pushes an Inbox change.The manual (
docs/guide.md, regeneratedsite/docs/index.html) andconsole/README.mddescribe the words and the newstoppingfield.CLI and JSON agreement (acceptance criterion 5):
thirdshift statustext now prints the same word as the Console for every Command record row. That includes Needs you rows, which used to printended/died/livethere.--jsonkeepsstateas the Command's own state, so existing readers are unaffected, and addsstopping. Withgroupandneeds_you_kind, that gives the word, and the guide documents how.Evidence
cargo test --test console inbox::landing_ready_and_stopping_rows_carry_their_state_in_the_console_and_statusfails on the base code. The Landing row rendersdata-state="live" … <span class="state">live</span>.After: It passes. In one fixture home, Landing, Working, Stopping, Ready and Failed rows each match on Console
data-state, the visible word, their section,status --jsongroup/stopping, and thestatustext line.Landing, Ready and Stopping rows carry their state, Theme tags and still-able motion(console/tests/inbox.test.cjs), built against main'sconsole.css, fails withLanding keeps the live-activity marker.After: It passes. The test checks, under
focus-lightandsignal-light:--tag-landing-*/--tag-ready-*, and under Signal they differ from Done's.Stoppingthrough the live update. The::afterstripe drifts (activity-drift), and has no running animation under Pause motion or under reduced motion.Failed.cargo fmt --checkandcargo clippy --all-targets -D warnings: clean.cargo test --test '*'all passed. After merging currentorigin/main,--test consolepassed again (71).consolebrowser suites:inbox,stop,themes-regressionsandnotifications42/42;inbox24/24 after review fixes.site:npm test49/49,npm run docs:checkpassed.GIT_CONFIG_GLOBAL, because this machine'stag.gpgsign = truemakes threeworktree::synchronization_testsfail atgit tag("no tag message?"). That is unrelated to this change.Merge Danger
Door: two-way
Blast Radius: small
statustext: Readers that parse the state word instatustext now see the Console's words. For example,Failedinstead ofendedon Needs you rows, andLandinginstead oflive.--json: Additive only (stopping).Review coverage
The Standards and Spec reviews ran against
origin/main(merge-base 399abec; localmainwas stale).site/docs/index.html. Both reviewers confirmed that exclusion: it comes fromdocs/guide.mdvia the unchangedsite/generate-docs.mjs, andnpm run docs:checkexited 0. Standards also inspected its hunks.No changed file was left unread.
Fixed after review:
state_word(),live_recordtakes an issue number,use crate::logs::stop.statustext.Unaddressed findings
Standards
state_word()returns&str. Declined.Row.statewas already aStringthat the Askama template writes intodata-state, andconsole.cssmatches those exact strings (src/console/assets/console.css:69-73). The change extends that existing contract, and a type would only be converted back to the same strings at both edges.group/needs_you_kind/landing/stopping; serialize the word instead. Declined.status --jsonreports observations, not presentation words.needs_you_kindis already lowercase while the Console shows titles, andgroupalready sayslanding/ready for review.stoppingis the one fact JSON lacked, and the guide documents the derivation (docs/guide.md, "Withgroupandneeds_you_kind,stoppinggives the row's state word…").:is([data-state="live"], [data-state="Landing"])in both the marker and animation rules. Declined. It follows the stylesheet's existing pattern: the static rule and its motion insideprefers-reduced-motion: no-preference/:not([data-paused])must be separate rules, as for Silent and Stopping (console.css:75,86-90).statusclosure in the new test. Declined. The closure is used twice within one test. The other copies are single inline calls with different assertions.Spec
· Failed ·instead of· ended ·). Kept on purpose. Acceptance criterion 5 asks the CLI to agree with the Console. "Needs you rows and Working rows are unchanged" holds for the Console, which the other criteria describe. Text output is not the API: the guide namesthirdshift status --json"the versioned API", and itsstateandneeds_you_kindare unchanged. Run:cargo test --test console inbox::landing_ready_and_stopping_rows_carry_their_state_in_the_console_and_statusasserts the agreed text for the Failed row.--jsoncarries no state word. Accepted by the reviewer as documented. See the Data Clumps entry above.console.cssrules change, not Theme tokens (out of scope per the issue).stoppingis recomputed rather than reusingstop::inspect. Declined.inspectjudges a selected Command, which may be a child whose owner was stopped (src/logs/stop.rs:126-151). An Inbox row is the owner itself, sostate == "live"(process identity alive, no outcome;src/logs/reading.rs:189-195) plus its own Stop request is the same fact. Both use the sharedstop::requested.Security
stateonly to fixed words (Landing, Ready, Stopping) or the values it already had. Askama HTML-escapes the row template, and live updates re-parse that server-rendered HTML. The newstoppingfact reads the existing Stop request file beside the Command record, underlogs.dir, through the sharedstop::requested. No new input, sink or trust boundary.Closes #1106
Built with claude · claude-opus-5-5 · high
Security review outcome
No unaddressed introduced findings.