← Back to Pull requests

Delete the demo-data design, refresh the README, and fix two things testing found #32

Closed
unknown closed this pull request without merging on Nov 20, 2026 17:30 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 16:46 UTC
Author

The last PR of the plan to simplify Studio: the old demo-data design goes, the README shows the app as it is now, and two fixes from testing main end to end.

Delete the demo-data design

Studio only shows real data now, so the demo that ran in a plain browser goes:

  • Deleted: views.js, task.js, failures.js and viz.js, along with the four demo smoke suites (smoke_general, smoke_cuj2, smoke_cuj3, smoke_cuj45).

  • Moved: the few helpers the live pages still use (the dropdown, labelled rows, setup steps, the Gateway map) into core.js.

  • Trimmed:

  • - core.js, app.js and overlays.js lose the simulated agents, seeded tasks and demo agent catalog, along with the demo palette, scenarios, review links, timers and state.
    - The stylesheets lose the rules nothing uses anymore.
  • Without the server: opening ux/index.html as plain files now says how to start Studio (make build && ./bin/ax-studio). It no longer shows a demo.

  • ?reset: clears what Studio keeps in this browser and opens Home. The ?cuj= and ?scenario= links are gone.
  • About 12,800 lines removed in all.

    How I checked nothing visible changed:

  • I built Studio twice from this branch: once before and once after the CSS trim, with the same JavaScript.

  • Against a real ax-local, I captured 28 screens in the same state from each build and compared them pixel by pixel: Home, both Tasks tabs, New task (collapsed, expanded and YAML), a task's Activity, YAML and Terminal tabs, Local cluster, every Settings section, the palette, shortcuts, the delete dialog, dark mode, a 900 px window, a toast, and setup in its normal, open, failed and dark states.

  • Every screen matched. The only differences were the random task names New task makes up, plus the delete dialog, which changed on purpose (fix 1 below).
  • Fix 1: the delete dialog names only what the task uses

    Deleting a task said "Kept: Its model, for other tasks to use" even when the task had no model. Now:

  • The Kept line names the task's workspace, Gateway and model only if the task uses them and they aren't being deleted.

  • When nothing is kept, the line doesn't show.
  • Fix 2: New task says whether the agent's API key is stored

    For Antigravity and Claude Code, the key box said "Leave empty if it's already stored", but Studio never checked. A first task could be created that can't reach its model. Testing found exactly this on a real ax-local: there was no gemini-api-creds secret.

    Server: a new GET /api/secrets/credential/status endpoint (session required).

  • It runs kubectl get secret --ignore-not-found with a go-template that prints only the secret's key names, and answers { exists, hasKey }.

  • Values never leave the cluster. A Go test checks the arguments, that no value is read, validation, the session requirement, and an unreachable cluster.
  • New task:

    | The key is | What New task shows |
    |---|---|
    | Stored | "Already stored on the cluster as gemini-api-creds/GEMINI_API_KEY. Leave this empty to use it, or type a new key to replace it." |
    | Missing | "Not stored on this computer yet. Paste it here…". Create task waits, listing "Add your Gemini API key: it isn't stored on this computer yet." among the things to fix first |
    | Unknown (the server can't tell) | Today's hint. It doesn't block Create task |

  • Typing a key clears the issue, since Create task stores the key first.

  • After a task is created with a typed key, New task remembers the key is stored.
  • README

  • New screenshots of the app as it is now: Home (light and dark), Setup, New task, a task, Logs, Terminal and Tasks. They were taken from a real ax-local.

  • The captions describe the current flow (presets, Create task, Tasks with its two tabs).

  • Removed the "serve ux/ with a static file server for demo data" line.

  • ux/README.md describes the live-only app and the files that remain.
  • Testing

  • make build verify passes: smoke_live (82 checks, including new ones for both fixes), go test -race, gofmt and go vet.

  • I ran the full end-to-end walk against this branch's binary on a real ax-local, clicking and typing like a user:

  • - setup states (on stand-in tools)
    - Home and both Tasks tabs
    - creating a task with a workspace and network
    - Activity, Logs, a real terminal (Tab completion, Ctrl-C) and YAML
    - suspend, resume, and delete with cleanup
    - the sample task, Local cluster, Settings, dark mode and a narrow window
  • Everything passed. Everything the tests created on the cluster has been deleted.
  • Diff: 570 lines (+427 / -143) across 7 files Reviewer: MushuEE Review duration: 44m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 570 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.380
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #32"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 49.8% (MEDIUM) · Higher = larger blast radius
    49.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.7% · Safe to merge
    19.7%