Skip to content

Dismiss and take back an Inbox row from the CLI - #1209

Merged
JacobStephens2 merged 5 commits into
issue-919from
issue-1191
Oct 24, 2026
Merged

JacobStephens2 merged 5 commits into
issue-919from
issue-1191

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add thirdshift dismiss <command> [--undo] [--json] for a whole Inbox row in Needs you or Ready for review, including live rows and collapsed failures. It accepts the same Command names as Stop and show.

dismiss <command>
  resolve Command → select whole Inbox row
  keep who / when / CLI / kind / covered rows beside each Command record
  leave Needs you or Ready for review → Working / Landing / Done / Resolved / History
  append Activity line
dismiss <command> --undo
  remove the covered dismissals → regroup by current rules

Live Commands keep running with their health line. Resolved counts inbox.days from the dismissal, and History retains its attribution. Later failures with the same cause form a fresh row. Dismissal changes no Command record, issue, labels, Claim or pull request and makes no gh call. Text/JSON status and Console rows show the attribution; the Console action is outside this CLI ticket. The manual, domain-to-code index and all three hand-written site pages describe the command.

Seams

  • thirdshift dismiss <command> [--undo] [--json]: naming, refusals, Activity entries and local effects.
  • thirdshift status [--all] [--json]: grouping, health, dismissal metadata and retention.

Evidence

  • Before review fixes: all five exact behavior reproductions supplied independently by Standards and Spec failed as reported: two retention checks lost the row at its original cutoff; two configured-silence checks accepted a Working row; undo reported success despite failing to remove its sidecar.
    After: all five regression tests are kept and pass. cargo test --test dismiss: 17 passed, one ignored subprocess fixture. Additional assertions cover History undo/attribution, later Commands, shorter silence thresholds and unchanged Activity after failed undo. A binary recordless-row refusal replaces the isolated formatting-expression test.
  • cargo check --bin thirdshift and cargo fmt --all -- --check: passed.
  • cargo test --test command_surface help_is_a_compact_reference_with_a_link_to_the_details -- --exact: passed. Help including the new command fits the existing 65-line budget; its limit test is unchanged.
  • CI on ce358c8 is green for Rust, site and Console; release build checks are green too. Console's focus assertion failed once, passed six consecutive targeted local runs, and passed on the CI rerun without Console changes.
  • /usr/bin/time -p scripts/affected-tests issue-919: passed, including 49 site checks and the full Rust suite (cargo test, nextest unavailable). Selector wall time 2,494.85s (41m35s) included compilation and browser checks; the final-head CI Rust job took 11m21s.
  • Independent review against issue-919: Standards found nine items (six addressed, three judgement calls declined below); Spec found two P2 behavior issues, both fixed. Each axis read all 14 changed files, including generated site/docs/index.html. Generated exclusions: none. Changed files left unread: none. Final reports and each axis's combined files-read list are saved in .thirdshift-review-WLoGIr/standards.md and .thirdshift-review-WLoGIr/spec.md.

Merge Danger

Door: two-way. dismiss --undo removes the local dismissal; removing its sidecar also restores ordinary grouping.

Blast Radius: Inbox. Dismissal adds local sidecar reads and partitions collapsed failures by dismissal state. Existing Commands and GitHub state retain their normal lifecycle.

Unaddressed findings

Standards

  • Possible Primitive Obsession — stored kind: String: retained at src/logs/dismiss.rs:22. NeedsYouKind::title already exhaustively maps Needs you kinds, and READY_KIND covers Ready. The implementation decision is to keep that persisted vocabulary without duplicating it in another enum. This is a structural suggestion; the retained kind/retention regressions pass.
  • Possible Duplicated Code — Unix-user lookup: retained at src/logs/dismiss.rs:203, matching the existing Stop lookup. The implementation decision keeps these small CLI adapters and their action-specific failure messages local. Binary dismissal tests verify attribution and Activity behavior.
  • Possible Duplicated Code — independent silence regressions: retained at tests/dismiss.rs:443 and :460. Both reviewers' exact commands failed before the fix and now pass. The Session explicitly requires keeping each reproduced failing test; the second also checks a below-default silence threshold.

Earlier PR notes are also accounted for: from_console at src/logs/dismiss.rs:26 is required by #1191's CLI/Console provenance requirement; Row.left: String at src/logs/status/inbox.rs:45 already exists unchanged on issue-919 and follows the surrounding rendered-row fields. Neither needs a new interface for this change.

The earlier parser-duplication note is retained as a deliberate implementation choice: the Dismiss branch in src/args.rs:417 follows its adjacent Stop parser (:395). The earlier test-depth note is closed by the retained binary tests for dispatched rows, Landing health and collapsed undo in tests/dismiss.rs; all pass in cargo test --test dismiss.

Spec

None. No finding was deferred for a Spec or Day-shift decision, so no needs-triage issue was needed.

Security

None.

Closes #1191

Built with codex · gpt-6.1-sol · xhigh

Security review outcome

No unaddressed introduced findings.

thirdshift dismiss names a Command as stop and show do and gives its
Needs you or Ready for review row a Dismissal, kept beside the Command
record with who, when, CLI or Console, covered rows and kind. The row
leaves for Working or Landing live, otherwise Done, Resolved or History,
saying dismissed by and who; Resolved holds it for inbox.days after the
dismissal. Collapsed failures dismiss every Command they stand for, and
--undo takes a dismissal back wherever the row now is.

Closes #1191
cargo fmt --check failed on the dismiss files this branch added.
No logic changed.
…id=c05b0a88-938d-4d00-b14b-69141da0811f]: Subscription quota exhausted. Your usage window resets at 2026-10-24T03:28:16Z. (rate_limit_error))

2026-10-24T02:17:29Z, host stephens. Uncommitted work at the time of failure is included in this commit.
@JacobStephens2
JacobStephens2 marked this pull request as draft October 24, 2026 02:17
@JacobStephens2
JacobStephens2 marked this pull request as ready for review October 24, 2026 03:36
@JacobStephens2
JacobStephens2 merged commit 1c68c36 into issue-919 Oct 24, 2026
24 of 25 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1191 branch October 24, 2026 03:47
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.

1 participant