oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

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