Repository navigation
Spec: starting work and administering a machine through the Console API - #1810
Merged
Merged
Conversation
Expose User config through the CLI, Console API and page
Preserve both the Ticket/Spec start API and the User config API, regenerate the manual, and support editing root-level launch_directories settings with a regression test.
Add Console Update and admin data imports
Keep Ticket and Spec run starts and the Launch directory inventory alongside admin Update, Theme import and Eval replay import routes. Combine the API scope documentation and regenerate the manual from docs/guide.md. Validation: - cargo clippy --all-targets -- -D warnings and cargo fmt --check passed. - scripts/affected-tests origin/issue-1768 passed 63 site tests, the locked build and 139 Console browser tests. Its first Rust attempt stopped at a systemd scope-name collision; the affected Activity log case passed alone. - /usr/bin/time -p cargo nextest run --no-fail-fast --test-threads 3 --retries 1 passed all 3823 Rust tests, with 4 passing on retry and 83 skipped. Wall time: 3021.20 seconds, including a warm-cache 0.38-second compilation.
Start Ticket and Spec runs through the Console API
Start Passes and remaining work through the Console API
Enforce complete CLI and Console API parity
Preserve confirmed Console start-control documentation alongside the upstream Experiment API documentation.
Add confirmed Console start controls
JacobStephens2
marked this pull request as ready for review
November 6, 2026 13:14
Preserve both Console homepage additions and integrate upstream Fix runs with the existing Console start API and cron Pass controls. Keep CLI parity and OpenAPI aligned, with HTTP and browser coverage and regenerated documentation.
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
Start work and administer this machine through its Console API and signed-in page. This integrates all six Tickets of Spec #1768.
Launch directories come from this account's cron jobs and User config. Ticket and Spec runs preserve direct CLI behavior; Passes keep cron's gates and skip outcomes. Update answers after installation, then the Console drains connections and re-executes. Config changes preserve comments/layout and record old/new values. Scope, CSRF and requester attribution apply throughout.
The whole-Spec review fixes record lookup for differently capitalized Issue and pull request URLs, recognizes literal
env NAME=value thirdshiftcron directories, and reconciles the API manual with all landed endpoints. Shell-owned trust settings and caller-selected output paths stay CLI-only. The manual and hand-written site pages describe the integrated workflow.Closes #1768
Evidence
Test seams
Execution evidence
Merge reconciliation (
3331aa36, mergingorigin/mainata7d76bbb):cargo test --locked --bin thirdshift console::parity -- --nocapturefailed to compile withE0004:args::Command::Fix(_)was not covered insrc/console/start_controls.rs. After:cargo test --locked --bin thirdshift console::paritypassed 3/3; the full Rust run below also passed the Console HTTP regressions for targeted Fix starts, option forwarding/refusals and Command-limit skips.NEXTEST_TEST_THREADS=4 RUST_TEST_THREADS=4 /usr/bin/time -p cargo nextest run --no-fail-fast: 3,889 passed, 0 failed, 91 skipped. Wall time 2,652.57s, including 1m 29s compilation; Nextest execution 2,560.782s.NEXTEST_TEST_THREADS=4 RUST_TEST_THREADS=4 scripts/affected-tests main: site 67/67 passed (96.73s) and locked build passed (78.45s). Console finished 149 passed, 1 failed (185.37s):read-only sessions hide actions on desktop and phone with and without JavaScripthit a five-secondpage.waitForURLload timeout after navigating to Inbox. The script failed and stopped before Rust; the complete Rust run was executed separately above. On unchanged code,cd console && node --test --test-name-pattern='read-only sessions hide actions' tests/accounts.test.cjspassed 1/1 (13.64s). The new Fix Run now confirmation case passed in the full browser run. The original full browser run remains a failed run.cargo clippy --locked --all-targets -- -D warnings,cargo fmt --all --check,git diff --check, andgit diff --cached --checkall passed. The manual was regenerated withnpm run docs --prefix siteand its generated output passed the site checks.Earlier Spec review evidence (before this merge):
python3 .thirdshift-review-cWCzpo/spec-repro.py casereturned HTTP 422 for both uppercase repository + issue number and uppercase Issue URL, despite retained Command records. After: the identical command returns 200 and{"version":1,"name":"ACME/WIDGETS#7"}for both. Retained regression:cargo test --test console start::api_start_returns_the_record_for_case_insensitive_issue_inputs -- --exactfailed422 != 200, then passed 1/1.cargo test --test console start::api_start_returns_mixed_case_pull_request_record -- --exact --nocapturefailed422 != 200. After: the same command passes 1/1, exercising both Review and Custom-process starts and retrieving their Command withshow. The separately supplied Review-only reproduction also failed before and passed afterward; both tests are retained.python3 .thirdshift-review-cWCzpo/spec-repro.py cronfounddirectories: []for a listedenv NO_COLOR=1 thirdshift pickupjob. After: the identical command finds the expected repository/directory.cargo test --test console start::launch_directories_include_literal_env_wrapped_cron_commands -- --exactfailed with an empty inventory, then passed 1/1 forenvand/usr/bin/env.node --test --test-name-pattern='the manual describes Console starts' site/tests/docs.test.cjsfailed before correction and passes 1/1 against source and generated HTML. It also caught and now prevents documentingoffinstead of the CLI'snone; the unchanged parser still treatsoffas a named account.NEXTEST_TEST_THREADS=8 RUST_TEST_THREADS=8 scripts/affected-tests main: site 67/67 passed (87.48s), locked build passed (24.06s), Console 148/148 passed (153.76s). Rust stopped at 552 passed, 1 failed, 83 skipped, with 3,292 unrun: the existingdismissed_spec_silence_covers_a_different_ticket_runassertion sawnullinstead ofsilent.cargo test --test dismiss dismissed_spec_silence_covers_a_different_ticket_run -- --exact --nocapturethen passed 1/1 on unchanged code. The initial Rust stage took 505.11s, including 186s compilation./usr/bin/time -p cargo nextest run --no-fail-fast --test-threads 8completed all 3,845 Rust tests: 3,843 passed, 2 failed, 83 skipped. Wall time 2,107.37s, including the 0.42s cached test-build check. The full run remains a failed run. Both failed cases subsequently passed focused reruns on the same code and native environment:cargo test --test pickup_run base_ci::unreadable_ci_files_nothing_and_does_not_stop_ready_dispatch -- --exact --nocapture: 1 passed, 36.82s test execution. The parallel run found no fixture pull request (no PR from issue-7: []).cargo test --test security_review security_review_failures_without_a_diagnostic_keep_the_generic_cause -- --exact --nocapture: 1 passed, 20.29s test execution. The parallel failure explicitly reportedUnit thirdshift-session-2790964-0-harness.scope was already loaded or has a fragment filebefore reaching the intended Security-review failure.cargo clippy --locked --all-targets -- -D warnings,cargo test --test console start:: -- --test-threads=3(24 passed, 14.67s test execution),cargo fmt --all --check, andgit diff --checkall passed. The full Rust run above predates the final exhaustiveness-only refinement spelling out the existingKindvariants for clippy; these final checks cover that version.Visual evidence
Paired captures retained from the landed Tickets, showing their implementation before/after states. These are the existing evidence from #1808, #1811 and #1819, not new captures from this review.
Inbox Start — 1440×900 desktop
Inbox Start — 390×844 mobile
Cron jobs Run now — desktop and mobile
1440×900:
390×844:
User config — desktop and mobile
1440×900:
390×844:
Update navigation and page — desktop and mobile
Navigation, 1440×900:
Navigation, 390×844:
Review coverage
Independent Standards and Spec reviews compared the whole Spec branch with
main(8ee0544034522da2a57c52f35eebfb01320d73b6) and completed their follow-up. Standards raised 5 findings: 3 fixed, 2 declined below. Spec raised 3: all fixed. Both axes read all 73 changed files, including generatedsite/docs/index.html. Generated-output exclusions: none. Changed files left unread: none on either axis. Reports, combined files-read lists, reproductions andsummary.json({"standards":5,"spec":3}) are retained in the Session's.thirdshift-review-cWCzpo/artifacts.Unaddressed findings
Standards
src/console/start.rs:160(Kind::fields) and:208(Kind::required) already own command applicability and required fields; admission at:351and OpenAPI atsrc/console/openapi.rs:420consume that shared inventory. The remaining typed decoding declarations and scalar JSON schema metadata serve different interfaces. The specific claim of independently maintained applicability inventories is refuted by those shared calls; a new type/schema framework is not required for this implementation.src/console/start_controls.rs:183encodes existing CLI Flags into a page request;src/console/start.rs:391decodes a request into Flags. They run in opposite directions. The page validates its result throughRequest::argumentsatstart_controls.rs:166, andsrc/args.rs:311owns canonical CLI flag rendering, used bystart.rs:296. These are deliberate interface adapters, with the existing CLI parser retaining authority. This is an implementation judgment; no Spec or Day shift decision is deferred.Spec
None. All three findings, including the follow-up pull request casing cases, are fixed and covered by retained regressions.
Security
None.
Security review outcome
No unaddressed introduced findings.
CI notes
npx playwright install --with-deps chromium: Azure Ubuntu font downloads stalled/retried, andnpm testnever started; the workflow, setup commands and site dependency manifest/lockfile are unchanged versusmain, and the same run’s Console dependency installation succeeded in 24 seconds. Locally at unchanged heade88d1d87,npm ci --prefix siteand Playwright installation passed, thennpm test --prefix sitepassed 67/67, with 0 skipped, in 87.67s; the Rust and Console jobs already passed for this exact head.Merge Danger
Door: two-way
Reverting removes the routes and controls. Remove
launch_directoriesfrom User config before rolling back to an older binary. Existing installed Console services need the generatedKillMode=processsetting applied to preserve detached Commands across service restarts. Update replaces the binary through the existing receipt-checked installer.Blast Radius: machine
runcan spend Harness subscriptions and write repository/GitHub state as the serving account.adminchanges machine defaults and installs updates. The shell retains control of tokens, sign-in access and address scopes.Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh
Tickets