| 1 | # Owner mode controller report |
| 2 | |
| 3 | Branch `owner-mode` starts at `e953698`, after the coordinator merge. The work |
| 4 | is for commit only. Production data, the installed service and release |
| 5 | certifications were not changed. No copy-review server was started. |
| 6 | |
| 7 | ## Behavior |
| 8 | |
| 9 | An owner connection becomes available after pinned executable verification, |
| 10 | production policy construction and account preflight. Its report carries an |
| 11 | owner-mode marker. Instance selection checks the current runner and roster in |
| 12 | the transaction; the runner repeats the person and runner-ID comparison against |
| 13 | its credential before launching. Unknown actions still fail profile lookup. |
| 14 | Non-owner launches still require the release action and exact policy certificate. |
| 15 | |
| 16 | Owner mode skips certificate matching, including certified path matching. It |
| 17 | keeps the production policy builder, account lease and identity checks, |
| 18 | executable digests, bubblewrap namespaces, deny rules, protected paths, egress |
| 19 | relay, native-tool inventory checks, fenced tool proxy and containment. Publishing |
| 20 | and the human merge boundary are unchanged. The release/install manifest and its |
| 21 | certification evidence are unchanged. |
| 22 | |
| 23 | Connections show the owner-mode label and explanation. Claims and launches carry |
| 24 | that mode into the journal. Coordinator turns get an owner-mode conversation |
| 25 | note. Task steps and publication evidence retain the mode; evidence cannot erase |
| 26 | it by relabelling the same isolation tuple. |
| 27 | |
| 28 | Both a new message and coordinator polling can replace an unusable binding with |
| 29 | an available connection on that person's own runner. This uses the existing |
| 30 | binding-change transaction, generations, cancellation and containment checks. |
| 31 | It posts the existing auto-bound note. Pending requests survive the change. |
| 32 | Task polling waits at most two seconds, so it no longer holds up coordinator |
| 33 | polling for 25 seconds. Waiting states produce conversation updates and plain |
| 34 | notes. Admission-paused and other pre-claim refusals have a visible denial state. |
| 35 | |
| 36 | ## Saved defaults |
| 37 | |
| 38 | Only verified, available subscription connections in owner mode trigger defaults. |
| 39 | Heartbeat and coordinator admission use the same transaction-bound operation. |
| 40 | Existing settings are preserved; errors never become an unset budget. |
| 41 | |
| 42 | | Monthly limit | Team | Person's coordinator | |
| 43 | | --- | ---: | ---: | |
| 44 | | Calls | 500 | 100 | |
| 45 | | Input tokens | 16,000,000 | 3,200,000 | |
| 46 | | Output tokens | 2,000,000 | 400,000 | |
| 47 | | Seconds | 360,000 | 120,000 | |
| 48 | |
| 49 | Coordinator defaults are capped by each existing team limit. The ordinary team |
| 50 | budget record and coordinator-limit record are saved with revisions and audit |
| 51 | events, so the existing settings forms can edit them. There is no currency cap |
| 52 | for subscription use. Non-owner connections do not create defaults. |
| 53 | |
| 54 | ## Verification |
| 55 | |
| 56 | The initial discovery test failed because an uncertified owner connection was |
| 57 | unavailable. The initial instance test failed because an owner turn received no |
| 58 | offer. Both passed after implementation. |
| 59 | |
| 60 | Targeted commands: |
| 61 | |
| 62 | - `CGO_ENABLED=0 go test ./internal/ownermodetest ./internal/equipo/ownermode ./internal/runner/certified/... -run '^TestOwner' -count=1` |
| 63 | - `CGO_ENABLED=0 go test ./internal/plan3test ./internal/runnerproto ./internal/runner/certified/... ./internal/equipo/conversation ./internal/equipo/team -run 'TestOwner|TestCoordinator|TestConnectionAvailable|TestStarterDispatch|TestIsolation|TestPublication' -count=1` |
| 64 | |
| 65 | Mutation checks deliberately removed binary verification, preflight, cleanup |
| 66 | failure propagation, person matching, runner matching, taint rejection, instance |
| 67 | ownership, evidence mode retention, default budgets, fallback and denial notes. |
| 68 | Each corresponding test failed, then passed with the guard restored. The first |
| 69 | cleanup mutation matched part of `err` and failed to compile; the corrected, |
| 70 | exact-line mutation produced the intended assertion failure. No mutation remains. |
| 71 | |
| 72 | `TestOwnerPublicationLabels` also failed first when a description retained owner |
| 73 | metadata but changed its displayed label to confined. Publication and evidence |
| 74 | labels now retain owner mode or the stronger unconfined warning. The targeted |
| 75 | team publication, Git and isolation tests passed after that change. |
| 76 | |
| 77 | The owner live harness builds the real instance and runner without a certificate |
| 78 | overlay, signs in normally, enrols a disposable runner and uses only `claude-a`. |
| 79 | It verifies a coordinator reply and `propose_project` through the HTTP forms, |
| 80 | runner protocol and rendered conversation. It starts with no budgets and checks |
| 81 | that defaults were saved. The implementation leg runs the production launch |
| 82 | path, Claude adapter, namespace, tool proxy and journal in a separate harness |
| 83 | process against a local Git repository. Claude writes the requested change; |
| 84 | the harness commits it on `equipo/owner-mode` and checks that `main` is unchanged. |
| 85 | That repository has no remote. This leg does not exercise remote publication or |
| 86 | the complete queued task workflow. |
| 87 | |
| 88 | Earlier harness attempts caught two setup mistakes: supplying a different |
| 89 | executable to the containment manager, and omitting the implement profile's |
| 90 | `submit_render` tool. The exact process-identity and tool-inventory guards rejected |
| 91 | both. The harness was fixed; neither production guard was relaxed. |
| 92 | |
| 93 | The complete live gate passed twice consecutively in **51.75 s and 52.51 s**. |
| 94 | The final follow-up run passed in **49.57 s** after the certificate checks were |
| 95 | made explicit short-circuits and unused harness configuration was removed. |
| 96 | Across eight harness invocations there were **18 attempted turns**, conservatively |
| 97 | including two turns rejected during CLI initialization. Twelve coordinator turns |
| 98 | and four implementation turns completed. The other harness failure happened |
| 99 | before an implementation turn. This stays below the authorized 25-turn ceiling; |
| 100 | all live model use was through the harness and only on `claude-a`. |
| 101 | |
| 102 | The first full `make -k ci` found an unused alias, review-inventory rows placed |
| 103 | outside the inventory section, and missing timing entry points in the two new |
| 104 | test packages. Those were corrected. A later targeted test also exposed a stale |
| 105 | binding revision that returned a refusal without posting a waiting note; it now |
| 106 | keeps the authority refusal and posts `admission_denied`. The second full run |
| 107 | caught an older test expecting the turn to remain silently queued. The revised |
| 108 | test requires both the original forbidden error and the visible denial state. |
| 109 | Known missing connections still use `waiting_connection`; failed database lookups |
| 110 | still roll back. The focused tests pass. No admission check was removed. |
| 111 | |
| 112 | The first run's other gates passed. Its test receipt covered 37 packages with |
| 113 | one failing package, the copy inventory. Local timing warnings were runner |
| 114 | 349.601 s (330 s limit), discovery 10.144 s (10 s), provider 21.420 s (15 s), |
| 115 | Claude 46.618 s (45 s) and Codex 39.033 s (35 s). These are warnings locally but |
| 116 | failures when CI enforces timing. No limit was raised. The third and final full invocation ran **38 test packages with zero failed**. |
| 117 | Adapter, namespace, migration and performance checks passed; cold boot was |
| 118 | 104 ms against 500 ms. It exited **2 solely because the size gate had already |
| 119 | seen the conversation package at 5,005 lines against 5,000**. The shared blocked |
| 120 | turn query was moved into the helper package. On the final files, |
| 121 | `make build vet fmt-check staticcheck budget` exited **0**, with all 50 directories |
| 122 | inside their unchanged limits. Focused owner/coordinator polling and acceptance |
| 123 | tests passed after that move, as did the reference scan. There was no fourth |
| 124 | full invocation, respecting the brief's two-rerun limit. Do not describe this as |
| 125 | a clean exit from the complete CI command. |
| 126 | |
| 127 | Final local timing warnings were runner 354.056 s, discovery 10.238 s, provider |
| 128 | 22.234 s, Claude 47.484 s and Codex 39.758 s against the same limits above. |
| 129 | The controller must retain that hosted-CI timing caveat. |
| 130 | |
| 131 | The recorded coordinator contracts passed with |
| 132 | `CGO_ENABLED=0 go test ./internal/runner/transporttest ./internal/runnerproto -run '^TestCoordinatorRecorded' -count=1`. |
| 133 | The publication-label regression was checked with |
| 134 | `CGO_ENABLED=0 go test ./internal/equipo/team -run 'TestOwnerPublicationLabels|TestPublication|TestGit|TestIsolation' -count=1`. |
| 135 | |
| 136 | Mutation commands used `CGO_ENABLED=0 go test <package> -run <filter> -count=1`, |
| 137 | one guard at a time. Each row below failed with its guard broken and passed after |
| 138 | restoration: |
| 139 | |
| 140 | | Package | Individual filters | |
| 141 | | --- | --- | |
| 142 | | `./internal/runner/certified/discoverytest` | `^TestOwnerConnectionGuards/binary$`, `^TestOwnerConnectionGuards/preflight$`, `^TestOwnerConnectionGuards/cleanup$` | |
| 143 | | `./internal/runner/certified` | `^TestOwnerRouteGuards/person$`, `^TestOwnerRouteGuards/runner$`, `^TestOwnerRouteGuards/tainted$` | |
| 144 | | `./internal/equipo/ownermode` | `^TestOwnerEligibilityGuards/foreign$`, `^TestOwnerEvidenceCannotLoseMode$` | |
| 145 | | `./internal/ownermodetest` | `^TestOwnerModeSelectionAndDefaults$`, `^TestOwnerModeFallback$`, `^TestOwnerModeDenialNote$` | |
| 146 | |
| 147 | ## Pending copy and controller action |
| 148 | |
| 149 | Three new entries in `internal/equipo/copy.go` are individually marked |
| 150 | `COPY REVIEW PENDING`: `isolation.owner_mode`, `connections.owner_mode` and |
| 151 | `coordinator.admission_denied`. They are also in the existing review inventory. |
| 152 | They remain a release review item under the brief's explicit no-server instruction. |
| 153 | The README is unchanged. |
| 154 | |
| 155 | Review and push the resulting commit through the controller. No merge, push or |
| 156 | deployment is authorized by this brief. All harness processes stopped and their scratch directories were removed. Session |
| 157 | logs are removed after their results are recorded here. |
| 158 | |