Skip to content

Add Console Update and admin data imports - #1811

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

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

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

admin requests Update
  run the CLI installer
  return the result after installation
  drain connections and re-execute the Console

admin imports → Theme JSON / machine-local Eval replay data → Console log

The Console's Update page shows current and latest versions. Theme import now requires admin; selecting a Theme and Eval judgments retain act. Local-path Eval preparation remains CLI-only. The guide and site describe the administration calls.

Closes #1774

Evidence

Execution evidence

  • Before: cargo test --test update console::admin_update_answers_after_installation_then_console_serves_the_new_version -- --exact
    failed: left: 404, right: 200, {"error":"Unknown Console API endpoint."}.
    After: Same test passes, including receipt-backed installation into a private copy, response completion, a Console re-exec serving version 99.0.0, and the requester's Console log entry.
  • Before: cargo test --test console admin::machine_changes_require_admin_and_import_theme_content_without_paths -- --exact
    failed: read: /update, left: 404, right: 403.
    After: Same test passes; read, act and run tokens receive 403 naming admin for every machine-changing route; Theme content round-trips and paths are refused.
  • Standards reproduction: python3 .thirdshift-review-lcdzfr/verify-admin-theme.py failed with An admin-only session cannot reach Theme import controls; after the fix, the same command passes. The retained browser test imports and exports with admin alone on desktop and phone. The stale architecture assertion also failed before its correction and now passes, with a retained documentation regression.
  • CI passed at 2c4f4073: full Rust tests, formatting, clippy with warnings denied, and both site and Console browser suites.
  • Local scripts/affected-tests origin/issue-1768 passed the site tests (134.63s) and locked build. Its Console stage had 137 passes and two 5-second sign-in navigation timeouts under parallel load; node --test console/tests/accounts.test.cjs then passed all 4 tests alone. Focused update, admin HTTP, route/API parity, browser and documentation checks also passed.
  • /usr/bin/time -p cargo nextest run --test-threads 3 started before CI finished and was stopped after exact-head CI passed: 812.41s including compilation, 288 passes before interruption. The three active tests were interrupted intentionally; this is not a passing local full-suite claim. The cancelled run's processes were reaped.

Test seams: the binary's update CLI, the Console over HTTP using existing release fixtures, the route-table parity test, and signed-in browser controls at desktop and phone widths.

Visual evidence

Inbox navigation, 1440×900:

Before
After

Inbox navigation, 390×844:

Before
After

New Update page with the release fixture, desktop and phone:

Update desktop
Update phone

Review coverage

Independent Standards and Spec reviews used issue-1768 at a7d6e6247fc1c30f7ee993a5e24792af09b5309e as the fixed point and reviewed the final follow-up commit. Standards raised 2 findings, both fixed: admin-only Theme import controls and stale architecture wording. Spec raised 0 findings. Both axes read all 25 changed files, including generated manual hunks. No changed files were left unread; no generated output was excluded.

Unaddressed findings

Standards

None. Both findings were reproduced and fixed; the regressions are retained.

Spec

None.

Security

None.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

The code change is reversible. Invoking Update replaces the installed binary through the existing receipt-checked installer and restarts the Console.

Blast Radius: Console

Administration requires admin; Theme-import callers with only act must use an admin token.

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

@JacobStephens2
JacobStephens2 merged commit 7323bef into issue-1768 Nov 6, 2026
16 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1774 branch November 6, 2026 05:42
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