Skip to content

feat(PC-195): support isolated Prompt Studio review runs - #182

Draft
au-re wants to merge 32 commits into
mainfrom
feature/pc-195-remote-test-matrix
Draft

au-re wants to merge 32 commits into
mainfrom
feature/pc-195-remote-test-matrix

Conversation

@au-re

@au-re au-re commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

  • PC-195 needs real Git history, pinned browser tools and a private Docker engine to run Prompt Studio review and qualification commands remotely.
  • Missing workers and failed or partial evidence must prevent a complete passed matrix.

Fix

  • Add verified Git bundles, a pinned review runtime, prerequisite checks, durable run/suite records, final artifacts and bounded partial snapshots. Nested browser traces are collected automatically; tar operands stay literal.
  • Add operator-granted Kata placement and atomic profile capacity. Each workspace owns its Docker daemon, ext4 scratch, cgroups, Compose, Buildx and init process. No node Docker socket is mounted.
  • Supply guest-only desktop sandbox setup and a private Xvfb/Openbox display. Wait for supervisor cleanup before stopping X11. Keep each run's disk temporary path short enough for Chromium Unix sockets.
  • Verified at latest head: check/typecheck, 15 runner/evidence tests (40 assertions), six real Kata runtime tests (22 assertions), and passing affected CI. Permanent display lifecycle tests passed at the preceding display revision (two tests, five assertions); actual whole-engine TERM waited for delayed cleanup. Regressions failed before their repairs.
  • The unchanged Prompt Studio review passed all 84 groups, including five Docker integrations and Chromium, on image 49d161f7. A later display image passed the six affected/unrun groups (CLI P1 and all five desktop groups). The latest image passed the two original Chromium CLI cases unchanged, with complete evidence and JUnit results. No full review on the latest image is claimed.
  • Every root test stage has passing evidence across the original run and affected-stage continuations. The last continuation passed image, extension and CI checks, build, and actual CLI/SDK pack/install. Earlier passing evidence remains scoped to its original source; no single all-green latest-head root invocation is claimed.
  • Self-reviewed: independent review found no unresolved P1/P2 source findings. Repairs include cancellation finalization, ownership, capacity reasons, init entrypoints, orphan reaping, browser pins, archive bounds, per-run evidence, literal tar operands, display startup/shutdown and temporary paths. Live concurrency, isolation, cap queuing, expiry and restart collection evidence is retained.

Background

  • The user chose Kata. Native macOS and Windows workers are deferred to PC-197.
  • Candidate source stays frozen at 0c1503dd3ae84171a9dca60d0eaff50f12cca96d. Validation used an isolated Kito controller, worker pools and test project. The production deployment and original connection records were preserved.
  • C4 full qualification timed out at the unchanged 60-minute limit: 89 successes, 34 canceled groups. The following focused run retained 24 successes, one UI failure and one quarantined failure before guest exit255; evidence is partial. Later affected/unrun coverage does not replace the original timeout.
  • A proposed full-only timeout increase was canceled. No review, run, workspace or CI limit was raised. A failed focused preparation attempt also remains recorded; its corrected command built the SDK before running the two selected tests.
  • One generated migration adds admission_profile_capacity to workspace/history constraints. PostgreSQL deployments must run pcd db migrate; PGlite migrates at startup.

Downsides

  • Acceptance is not cleared. Both Linux targets still need full qualification. Kito cannot supply the required native Arm Kata worker because its Arm VMs lack nested virtualization. Recorded UI and quarantined failures remain; the original full timeout remains nonpassing.
  • The guest-loss cause is unknown. Kata agent RPC timeouts preceded exit255 and controller cleanup. This is not classified as a false provider-loss result.
  • VM isolation costs resources. Docker and temporary data use a 32 GiB sparse ext4 disk backed by workspace storage. The passed review took about 34 minutes, above the non-gating 15-minute target.
  • Protocol/template v2, the companion and image require coordinated rollout. Main publication and merge remain pending.
Notes
  • Workspace: WS-29 (b89a359d-8e82-469d-9f84-9e45167b676c). Head: 47f4004936659fcd60ffe748551f42da28011c17. Base: 0fd83c5b1a7573961ee9cc2d4592fef1af4923ed.
  • Latest review runtime: sha256:1ab190c7399b6d002a4ca4cbb5e2ef42f7e83539cb55455a734b2c496e6d6a62.
  • Isolated controller: sha256:44a528b2372a2fbf1c390bbe458f8d308a7c45d31c77429294fa4ccd311e110b.
  • Passed review: run 4f723af6-0b2e-41cd-b821-3eb7007f0a0c, 2057439 ms, complete evidence, report local_passed.
  • Passed affected groups: run 4fc642ce-fd8f-465f-9d8f-fd3a3d1b9c38, 658581 ms, complete evidence, image 775e013f.
  • Passed two Chromium cases: run cfbe9f5e-c209-4f9d-9b02-254736148387, 173172 ms including install/build, complete evidence; two tests, six assertions, 12.17 seconds of test time. Twelve other tests were explicitly filtered, not counted as passed.
  • Passing latest-head CI. Exact stage/revision maps, failed attempts, logs and traces are retained in PC-195 Activity.
  • Evidence: PC-195 Activity comment eef06f2ce0ab9c10729df40d7d905cb06a0fab392094eb7c6e30cb8e9007f05b contains the independent review and all artifacts in 14 numbered parts with a checksum/reassembly manifest. Structured outcome publication was rejected by the host session/workspace ownership check; no ownership or approval was fabricated.
  • Isolated cleanup is verified: all 44 workspaces terminal; controller/Kata releases, cluster resources, namespace and PV removed; all three test pools, VMs, boot disks and controller disks gone. Production remains 1/1 ready. The original companion is restored to 0.1.0 and original connection records are unchanged; that connection currently returns HTTP401 (revoked/expired key), and it was not rotated.

@github-actions github-actions Bot added contracts Public schemas and runtime contracts database Database, migrations, backups and checkpoints drivers Docker and Kubernetes workspace drivers runtime Scheduling, reconciliation and workspace lifecycle server Controller API and services supervisor Workspace supervisor and agent processes deployment Container images, Helm and deployment configuration docs Documentation and contributor guidance examples Examples, harnesses and end-to-end flows extensions Prompt Studio extensions and project configuration tooling Build scripts, dependencies and repository tooling labels Nov 20, 2026
@github-actions github-actions Bot added the cli Command-line tools and native controller label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Command-line tools and native controller contracts Public schemas and runtime contracts database Database, migrations, backups and checkpoints deployment Container images, Helm and deployment configuration docs Documentation and contributor guidance drivers Docker and Kubernetes workspace drivers examples Examples, harnesses and end-to-end flows extensions Prompt Studio extensions and project configuration runtime Scheduling, reconciliation and workspace lifecycle server Controller API and services supervisor Workspace supervisor and agent processes tooling Build scripts, dependencies and repository tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant