Skip to content

Start Passes and remaining work through the Console API - #1817

Merged
JacobStephens2 merged 2 commits into
issue-1768from
issue-1772
Nov 6, 2026
Merged

JacobStephens2 merged 2 commits into
issue-1768from
issue-1772

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Start Passes, Review runs, Custom processes, skill runs, Scoring and triage through the existing run-scoped endpoint. Structured options use the CLI parser; Passes retain cron's gates and Activity log behavior. Triage receives Report text through stdin. The manual, hand-written site pages and OpenAPI describe the starts and response shapes.

POST /api/v1/runs
  repository → known Launch directory
  command + options → CLI parser → detached CLI with requester
    Command record → {version, name}
    early skip     → {version, outcome, reason}
    skill preflight→ {version, outcome, process_id}

Closes #1772

Evidence

Execution evidence

  • Before: cargo test --test console api_pickup_at_the_command_limit_returns_crons_skip_and_activity -- --nocapture failed: left: 422, right: 200.
    After: the same command passed: 1 passed; 0 failed. The retained test verifies the exact Command-limit reason, cron's Activity log line/suppression and Console audit event.
  • Before: cargo test --test console api_starts_other_commands_with_cli_options_and_requester -- --nocapture failed: base: unknown field, HTTP 422 instead of 200.
    After: the same command passed: 1 passed; 0 failed, starting all seven additional command kinds with the fakes and checking requester attribution.
  • Before: the Spec review's node /tmp/thirdshift-1772-spec-anchor-repro.cjs passed the new fragment, then failed the legacy fragment with locator.waitFor: Timeout 30000ms exceeded.
    After: the exact reproduction passed both fragments. Its retained regression, node --test --test-name-pattern='API start bookmarks' site/tests/pages.test.cjs, passed both JavaScript modes: 2 passed; 0 failed.
  • cargo test --test console start:: -- --nocapture: 16 passed after review fixes, including literal CLI option parity, quiet/repeated skips, Report text, path refusals and detached lifetime.
  • cargo clippy --locked --all-targets -- -D warnings, cargo fmt --check and npm run docs:check --prefix site: passed.
  • NEXTEST_TEST_THREADS=3 RUST_TEST_THREADS=3 scripts/affected-tests origin/issue-1768: 65 site tests and 139 Console browser tests passed. The native Rust run stopped after 735 tests (734 passed, 1 failed; 83 skipped) because systemd refused an already-loaded thirdshift-session-…-harness.scope in the unchanged fresh_run::a_second_run_adds_no_second_exclude_entry test. That Rust attempt took 962.53s, including about 120s of compilation; 3,094 tests remained unrun.
  • cargo test --test fresh_run a_second_run_adds_no_second_exclude_entry -- --exact --nocapture and cargo test --test base_fix a_base_fix_that_failed_and_left_its_issue_open_is_started_again_by_the_next_run_to_find_it -- --exact --nocapture: 1 passed each in the native environment. The latter also encountered the same host scope collision during a broader retry.
  • A full Rust retry with a private unavailable-manager PATH shim reached the supported fallback but failed an existing warning-count assertion because sweeping could not read another process's environment (Permission denied). Its native isolated rerun, cargo test --test activity_log an_activity_log_that_cannot_be_written_is_one_warning_and_changes_nothing_else -- --exact --nocapture, passed. No scope or unrelated test code was changed. Full Rust validation remains incomplete on this shared host.

Test seams: Console HTTP requests through the real binary and fake GitHub/Harnesses; the actual CLI parser reached through the login shell; rendered manual fragment navigation in Chromium with JavaScript enabled and disabled.

Visual evidence

Public documentation only. Each pair uses the same viewport and expanded section. Images are hosted in a secret Gist; no evidence media is committed to this branch.

Manual: API starts — 1440×900 desktop and 390×844 mobile

Desktop:

Before
After

Mobile:

Before
After

Homepage: Console — 1440×900 desktop and 390×844 mobile

Desktop:

Before
After

Mobile:

Before
After

How it works: Console — 1440×900 desktop and 390×844 mobile

Desktop:

Before
After

Mobile:

Before
After

Architecture: Console API — 1440×900 desktop and 390×844 mobile

Desktop:

Before
After

Mobile:

Before
After

Review

Independent Standards and Spec reviews used issue-1768 at cc4f0cde333be015da7fdeb764083e9da259df3a as the fixed point, with a follow-up on the fixes. Standards raised 2 findings; Spec raised 1. All were addressed. Both axes read all 15 changed files, including the generated manual; no generated-output exclusions and no changed files left unread. Reports and counts are retained in .thirdshift-review-hhk4dA/{standards.md,spec.md,summary.json}.

Unaddressed findings

Standards

None. Shared Kind option metadata resolves the duplicated membership finding; typed Started and EarlyOutcome resolve the outcome-protocol finding.

Spec

None. The reproduced legacy-bookmark regression is fixed and covered by a browser test.

Security

None.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Reverting removes the additional HTTP starts. Commands already started keep their detached CLI lifetime.

Blast Radius: machine

A holder with run can start these CLI commands in the machine's known Launch directories. The CLI retains its existing gates, defaults and execution behavior.

Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit 75e0236 into issue-1768 Nov 6, 2026
16 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1772 branch November 6, 2026 08:31
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