oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

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