| 1 | DRAFT: copy review required |
| 2 | |
| 3 | # Supervised trial controller report |
| 4 | |
| 5 | Implemented the 2026-11-03 trial brief on `runner`, starting at `96aaefd`. |
| 6 | The trial brief supersedes plan 2's refusal for the four named Paseo gaps. |
| 7 | The design, plan 2 rulings and dispositions, live-gate instructions and Equipo |
| 8 | discussion 3 were read. No other agents or model reviewers were used. |
| 9 | |
| 10 | ## Behaviour |
| 11 | |
| 12 | A current team owner can enable or turn off supervised trial for an enrolled |
| 13 | runner from Machines. The additive `supervised_trials` table records the owner, |
| 14 | owner revision, runner, time and reported provider/server versions. Each write |
| 15 | checks the roster inside its transaction and records an audit event. A version |
| 16 | change revokes consent durably, including a change followed by a downgrade. |
| 17 | Owner removal or demotion makes the saved owner revision unusable. Reports must |
| 18 | be fresh; missing connections cannot remain eligible through trial metadata. |
| 19 | |
| 20 | Discovery can report trial eligibility while preflight still refuses dispatch. |
| 21 | The runner needs an authenticated, current assignment carrying consent before |
| 22 | trial preflight succeeds. Codex's separate acknowledgement remains required. |
| 23 | The requested credential home travels through Paseo's supported per-agent |
| 24 | environment. An observed account mismatch refuses the session. Missing account |
| 25 | observation remains labelled, with no retry against another account. |
| 26 | |
| 27 | The runner executes the configured provider's `--version` under its own OS user. |
| 28 | Trial records distinguish this local observation from Paseo reporting. The |
| 29 | requested policy hash identifies the tuple; it is never evidence that the |
| 30 | policy took effect. Every trial connection is unconfined. Historical trial |
| 31 | consent, local version provenance and unverified checks survive in step, |
| 32 | artifact, event, executor and publication isolation records and in the views. |
| 33 | |
| 34 | A trial subscription cannot be resumed or replaced after a gap. The runner |
| 35 | persists the admitted action before sending, reports an interrupted action as |
| 36 | lost, and preserves the full reservation. The task waits visibly for a person. |
| 37 | Restart recovery reports saved in-flight trial actions before containment. |
| 38 | Containment and credential rotation continue through the existing supervisor. |
| 39 | |
| 40 | Production publication remains disabled. `forge.ReadBranchDescription` prepares |
| 41 | the announced GET request with escaped branch names, authenticated readback, |
| 42 | redirect refusal, bounded response size, author checks and content-hash checks. |
| 43 | Its request and response match the Amadan branch-description-read worktree. |
| 44 | The deployed contract and ordering still require verification before enabling it. |
| 45 | |
| 46 | The live-gate draft describes Paul's commands for a dedicated `equipo-runner` |
| 47 | user, locked password, lingering, pinned installations, separate loopback Paseo |
| 48 | service, provider logins, private credentials, runner-owned clones and enrolment. |
| 49 | The script requires that OS user and its daemon home. New runtime strings are |
| 50 | individually marked pending in `internal/equipo/copy.go`; release copy checking |
| 51 | continues to refuse pending copy. README prose and vendored static files are |
| 52 | unchanged. |
| 53 | |
| 54 | ## Verification |
| 55 | |
| 56 | Initial failing tests: |
| 57 | |
| 58 | - `CGO_ENABLED=0 go test ./internal/runner/paseo ./internal/equipotest -run TestSupervisedTrial -count=1` |
| 59 | failed because the trial types and methods did not exist. |
| 60 | - `node --test --test-name-pattern='trial routes' runner/paseo/bridge.test.mjs` |
| 61 | failed with `invalid_request` before credential-home routing was implemented. |
| 62 | - `CGO_ENABLED=0 go test ./internal/runner/forge -run TestPlannedAmadanDescriptionReadback -count=1` |
| 63 | failed because the planned client did not exist. |
| 64 | |
| 65 | Restored targeted gate: |
| 66 | |
| 67 | ```sh |
| 68 | CGO_ENABLED=0 go test ./internal/runner/paseo ./internal/equipotest ./internal/equipo/team ./internal/runner ./internal/runner/forge -run 'TestSupervisedTrial|TestTrial|TestPlannedAmadan' -count=1 |
| 69 | node --test runner/paseo/bridge.test.mjs |
| 70 | sh -n scripts/live-gate.sh |
| 71 | git diff --check |
| 72 | ``` |
| 73 | |
| 74 | All passed. The Go gate covers trial off/on, missing consent, all four gap |
| 75 | behaviours, owner and version lapse, downgrade after lapse, missing profiles, |
| 76 | account mismatch, local version reads, unconfined labels on the task surfaces, |
| 77 | evidence and descriptions, charged reconnect waiting and refusal of readmission. |
| 78 | The bridge suite passes all 31 tests. Existing unsupported-capability, |
| 79 | unconfined-label and migration parity tests also passed in targeted runs. |
| 80 | |
| 81 | Each mutation below was applied alone, observed failing its named test, then |
| 82 | restored. Commands used `CGO_ENABLED=0 go test <package> -run '^<test>$' -count=1`. |
| 83 | |
| 84 | | Broken guard | Package | Failing test | |
| 85 | | --- | --- | --- | |
| 86 | | Authorize trial without consent | `./internal/runner/paseo` | `TestSupervisedTrialDispatchAccount/off` | |
| 87 | | Accept a different observed account | `./internal/runner/paseo` | `TestSupervisedTrialPreflight/mismatch` | |
| 88 | | Accept unknown process coverage | `./internal/runner/paseo` | `TestSupervisedTrialPreflight/containment` | |
| 89 | | Ignore the approving owner's role | `./internal/equipotest` | `TestSupervisedTrialConsent/demote` | |
| 90 | | Stop recording permanent version lapse | `./internal/equipotest` | `TestSupervisedTrialConsent/provider` | |
| 91 | | Strip trial from selection provenance | `./internal/equipotest` | `TestSupervisedTrialConsent/on` | |
| 92 | | Complete an uncertain trial as failed | `./internal/runner` | `TestTrialReconnectWaitsWithoutRetry` | |
| 93 | | Use the wrong description endpoint | `./internal/runner/forge` | `TestPlannedAmadanDescriptionReadback` | |
| 94 | |
| 95 | The first owner-guard mutation caused an unused-variable build failure. It was |
| 96 | restored and replaced with a compiling mutation; the named assertion then failed. |
| 97 | The full bridge suite also exposed shared fixture state in the new routing test; |
| 98 | the assertion now checks the provider selected by that fixture. Both targeted |
| 99 | and complete bridge runs pass. |
| 100 | |
| 101 | `make ci` ran once in the background with network access and default Go caches. |
| 102 | Build, vet, formatting, staticcheck, govulncheck, gitleaks and size budgets passed. |
| 103 | The full Go suite had one failure: `TestLiveGateConfirmation` used the old shared |
| 104 | user fixture. All other packages and tests passed. The runner package took |
| 105 | 199.588 seconds; the integration package took 203.007 seconds, within their |
| 106 | existing budgets. |
| 107 | |
| 108 | The confirmation fixture now supplies a fake dedicated user and the required |
| 109 | loopback daemon configuration. The real live gate is never invoked by the test. |
| 110 | `CGO_ENABLED=0 go test ./internal/equipotest -run 'TestLiveGateConfirmation|TestLiveGateRequiresDedicatedUser' -count=1` |
| 111 | passes. Removing each of the script's user, daemon-home and loopback checks |
| 112 | individually failed `TestLiveGateRequiresDedicatedUser/user`, `/home` and |
| 113 | `/endpoint`; the script was restored and both tests passed again. |
| 114 | |
| 115 | `make runner-adapter-test migration-check perf` then completed the remaining CI |
| 116 | targets successfully. The complete bridge suite passed 31 tests, migration parity |
| 117 | passed, all screen medians were below 150 ms, and cold boot was 59 ms against |
| 118 | 500 ms. `make vet fmt-check staticcheck budget` also passed after the test fixture |
| 119 | change. There was no second full-suite or `make ci` run. |
| 120 | |
| 121 | ## Remaining human work |
| 122 | |
| 123 | Review pending copy before a release. Verify Amadan's deployed readback and |
| 124 | ordering before enabling the production transport. Complete the live probes and |
| 125 | calibration before claiming live acceptance. Trial never enters the verified |
| 126 | isolation tuple list. |
| 127 | |
| 128 | No machine was enrolled, no real Paseo agent or service was started, and no sudo, |
| 129 | merge or deployment command was executed. Only test fixtures and local inspection |
| 130 | were used. The final handback records the commit, push and CI result. Task scratch |
| 131 | and test processes are removed before handback. |
| 132 | |
| 133 | ## Round 2 review fixes, 2026-11-03 |
| 134 | |
| 135 | Applied `trial2-brief.md` from `ad32cda`. No other agents, copy-review server, |
| 136 | enrolment, deployment or real Paseo agents were used. |
| 137 | |
| 138 | Trial preflight now requires a dedicated UID. It reads the account database, |
| 139 | refuses login shells, checks the locked password status without reading password |
| 140 | hashes, and checks that the canonical Paseo home belongs to that user inside its |
| 141 | home. Every live process with that UID must belong to the runner, its installed |
| 142 | Paseo CLI daemon tree, user systemd, or an open tracked attempt. Arbitrary user |
| 143 | services, unrelated Node scripts, closed attempts and old boot records cannot |
| 144 | supply ownership. The connection report carries `routing.dedicated_user`; the |
| 145 | server requires it for trial routing. Missing observations deny admission. |
| 146 | |
| 147 | An observed account mismatch has the terminal reason `account_mismatch`, both |
| 148 | at preflight and after agent creation. The scheduler refuses another attempt |
| 149 | regardless of the task's retry allowance. Both runner trial authorization and |
| 150 | workspace admission require Codex's separate acknowledgement, including the |
| 151 | current authorization returned by the instance. |
| 152 | |
| 153 | Local version reads retain at most 256 bytes and discard stderr. They run only |
| 154 | when strict preflight failed or the current assignment carries trial consent. |
| 155 | A failed read clears the version observation, which ends saved consent. The |
| 156 | publisher requires both `supervised trial` and `unconfined` in a trial branch |
| 157 | description. Other errors during an interrupted, admitted trial turn now keep |
| 158 | the same charged human wait as reconnect errors; account mismatches remain |
| 159 | terminal. Cancel is the documented exit from the wait. No outcome-resolution |
| 160 | action was added. |
| 161 | |
| 162 | A current owner can turn trial off with a stale runner revision or after the |
| 163 | runner person leaves the roster. Revoked runners with saved trial consent remain |
| 164 | visible to owners until trial is off. Enable and ordinary revoke controls are |
| 165 | hidden for those revoked runners. Authority still comes from the current owner |
| 166 | inside the write transaction, and disablement is audited. |
| 167 | |
| 168 | The live-gate draft uses a non-login shell, names Claude's login directory, |
| 169 | disables the Paseo relay, checks the listener with `ss -ltnp`, and explains that |
| 170 | all trial work, including Claude, can read world-readable files on docs-t1. |
| 171 | It includes service shutdown, lingering removal and user deletion. Temporary |
| 172 | setup shells and unrelated user services must stop before trial admission. |
| 173 | |
| 174 | ### Tests and guard checks |
| 175 | |
| 176 | The first regression run failed on strict preflight running the provider CLI, |
| 177 | account mismatch losing its terminal reason, a second scheduler attempt after |
| 178 | mismatch, non-reconnect errors failing the job, missing trial publication labels, |
| 179 | and trial disablement with a stale revision or removed person. After correcting |
| 180 | two fixture prerequisites, the workspace acknowledgement and publication tests |
| 181 | also failed on their intended guards. The new dedicated-user tests initially |
| 182 | failed to compile because the checks did not exist. The owner-page test failed |
| 183 | because the disable action disappeared when its runner was revoked. A separate |
| 184 | process test accepted an unrelated Node script before CLI identity was checked. |
| 185 | |
| 186 | The restored targeted command passed: |
| 187 | |
| 188 | ```sh |
| 189 | CGO_ENABLED=0 go test ./internal/runner/paseo ./internal/runner ./internal/runner/workspace ./internal/runner/forge ./internal/equipo/team ./internal/equipotest -run 'TestSupervisedTrial|TestTrial|TestRunnerService|TestPreflight|TestConnections' -count=1 |
| 190 | ``` |
| 191 | |
| 192 | The full Paseo adapter Go package passed. All 31 bridge tests passed with |
| 193 | `node --test runner/paseo/bridge.test.mjs`. `sh -n scripts/live-gate.sh`, |
| 194 | `git diff --check`, and `make vet fmt-check staticcheck budget` passed. |
| 195 | |
| 196 | Each mutation below was applied alone, caused a test failure, and was restored. |
| 197 | The command for each row was |
| 198 | `CGO_ENABLED=0 go test <package> -run '^<test>$' -count=1`. |
| 199 | |
| 200 | | Guard removed | Package | Failing test | |
| 201 | | --- | --- | --- | |
| 202 | | Non-login shell | `./internal/runner` | `TestTrialDedicatedIdentity/shell` | |
| 203 | | Locked password | `./internal/runner` | `TestTrialDedicatedIdentity/password` | |
| 204 | | Paseo home inside own home | `./internal/runner` | `TestTrialDedicatedIdentity/outside` | |
| 205 | | Reject unrelated UID processes | `./internal/runner` | `TestTrialDedicatedProcessInventory/shared` | |
| 206 | | Verify installed Paseo CLI | `./internal/runner` | `TestTrialDedicatedProcessInventory/unrelated-node` | |
| 207 | | Dedicated UID trial capability | `./internal/runner/paseo` | `TestTrialSharedUIDRefused` | |
| 208 | | Server requires dedicated UID | `./internal/equipotest` | `TestSupervisedTrialConsent/dedicated` | |
| 209 | | Terminal account mismatch | `./internal/equipo/team` | `TestTrialAccountMismatchNoSecondAttempt` | |
| 210 | | Typed mismatch after creation | `./internal/runner/paseo` | `TestTrialAccountMismatchTyped` | |
| 211 | | Workspace Codex acknowledgement | `./internal/runner/workspace` | `TestTrialCodexRequiresSeparateAcknowledgement` | |
| 212 | | Local Codex acknowledgement | `./internal/runner` | `TestTrialRuntimeCodexAcknowledgement` | |
| 213 | | Current Codex acknowledgement | `./internal/runner` | `TestTrialRuntimeCodexAcknowledgement` | |
| 214 | | Version output limit | `./internal/runner` | `TestTrialVersionOutputBounded` | |
| 215 | | Strict preflight skips local read | `./internal/runner/paseo` | `TestTrialStrictPreflightSkipsLocalVersion` | |
| 216 | | Trial consent forces local read | `./internal/runner/paseo` | `TestTrialConsentForcesLocalVersion` | |
| 217 | | Failed read clears version | `./internal/runner/paseo` | `TestTrialVersionFailureClearsObservation` | |
| 218 | | Trial publication label | `./internal/runner/forge` | `TestTrialPublisherRequiresBothLabels` | |
| 219 | | Other interrupted errors wait | `./internal/runner` | `TestTrialOtherTurnErrorWaits` | |
| 220 | | Disable ignores stale revision | `./internal/equipotest` | `TestTrialDisableIgnoresStaleRunnerAndRemovedMember/revision` | |
| 221 | | Disable permits revoked runner | `./internal/equipotest` | `TestTrialDisableIgnoresStaleRunnerAndRemovedMember/removed` | |
| 222 | | Revoked runner keeps disable action | `./internal/equipotest` | `TestTrialRevokedRunnerKeepsDisableAction` | |
| 223 | |
| 224 | The failed-version mutation first exposed a weak fixture: its version was already |
| 225 | empty. The corrected fixture starts with a reported version and trial consent; |
| 226 | removing the clearing guard then failed the test. The guard was restored. |
| 227 | |
| 228 | The final full gate is `make ci`, started in the background after these source, |
| 229 | test and report changes, with network access and default Go caches. Its log is |
| 230 | polled until the process exits; the five-line handback records the exit status. |
| 231 | This report is written before that run so the final gate covers it too. |
| 232 | |
| 233 | ### Copy awaiting review |
| 234 | |
| 235 | The changed app string is `trial.reconnect`: `trial outcome uncertain`. It stays |
| 236 | individually marked pending in `internal/equipo/copy.go`. The diagnostic reason |
| 237 | `dedicated_user_required` is new; `account_mismatch` is now also a terminal |
| 238 | attempt reason. Review these with `docs/live-gate.md` and this draft report. |
| 239 | README prose is unchanged. No copy-review server was started. |
| 240 | |