oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1# Git ignore allowance
2
3The fix and coordinator probe proof are complete. Full Engineering and Review
4live proofs remain incomplete at the 40-admission ceiling because the model
5declined the native negative controls.
6
7The failure comes from restrictive file permissions. The failed run used files
8consistent with umask `0077`; the previous passing run used `0002`. Claude
92.1.312 writes the same 23-byte gitignore under either umask. The old allowance
10required directory mode `0775` and file mode `0664`, so it refused the new
11`0700` directory before inspecting its `0600` file.
12
13## Evidence and change
14
15I compared the read-only evidence in `run-2031427639` and `run-4261561216`
16under `/home/paulca/.local/share/equipo/try/`. Both used Claude executable
17SHA-256 `4f4178ce41d83e23341ebfbaecdbcf8ea6bf7baea0690025abe49eeec3a5d01d`.
18Engineering and Review policy hashes also match between runs. The coordinator
19hash changed after `propose_project` was added, as expected.
20
21The passing run's `repo/.git/config`, `description`, and `info/exclude` have
22mode `0664`; `.git`, `.git/hooks`, and `.claude` have mode `0775`. In the failed
23run the corresponding files have mode `0600` and directories `0700`. Both
24workspaces contain `.claude/.cc-writes`. The saved evidence does not retain the
25runtime gitignore or the launching process's umask, so I reproduced the modes
26with explicit umasks in disposable live runs.
27
28| Umask | Runtime entry | Kind | Mode | Bytes | UID | Links |
29|---|---|---|---|---:|---:|---:|
30| `0002` | `.config/git` | Directory | `0775` | 4096 | 1001 | 2 |
31| `0002` | `.config/git/ignore` | Regular file | `0664` | 23 | 1001 | 1 |
32| `0077` | `.config/git` | Directory | `0700` | 4096 | 1001 | 2 |
33| `0077` | `.config/git/ignore` | Regular file | `0600` | 23 | 1001 | 1 |
34
35Both observed files contain exactly `**/.claude/.cc-writes/\n`, where `\n`
36means one LF byte. Before printing either file I checked for token-like strings
37and credential keywords; none were present. No credential contents were read,
38printed, copied or hashed by the diagnostic harness. Product account leases
39performed their normal credential staging and validation.
40
41The pinned executable's `jJr` implementation writes the global ignore entry
42asynchronously, using `**/` followed by `.claude/.cc-writes/`. It does not set
43an explicit file mode. A live Engineering run with `umask 077` reproduced
44`probes: provider_account_containment: runtime_claude_git_ignore` after the
45first completed Bash probe turn. The observed bytes and size were unchanged.
46
47`runtime_claude.go` now permits only the two observed directory modes and two
48observed file modes. It requires the exact observed bytes, including the final
49newline. A same-size substitute, extra pattern, empty file or missing newline
50is refused. Reading is bounded to 24 bytes. The open refuses symlinks throughout
51the path, verifies the file identity against the walk result, and checks the opened
52file's owner, link count, kind, mode and size. Existing provider-version,
53special-file, setuid/setgid and unexpected-child guards remain in force.
54Source-home staging and provider tool policy are unchanged.
55
56`TestDirectLiveCoordinator` did not fail independently in the saved run. Every
57saved coordinator check passed. Its test invokes the shared driver first through
58`sync.Once`; the delegated runner returned exit status 1 for the Engineering
59and Review failures, and every test group received that same error. Production
60`exercise` opens a fresh account lease and runtime home per tuple, closes it
61before the next tuple, and runs the coordinator last.
62
63## Tests and guard checks
64
65Before implementation, this failed because arbitrary 23-byte contents were
66accepted:
67
68```sh
69CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestClaudeGitIgnoreState$' -count=1
70```
71
72After adding the restrictive-mode regression, the same command failed on
73`private` with `runtime_claude_git_ignore`. Both failures were corrected.
74The final targeted command passed:
75
76```sh
77CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestClaudeGitIgnore|TestAccountClaudeRuntime|TestAccountCodexRuntimeOwner' -count=1
78```
79
80Temporary Go overlays broke each guard below. Every invocation exited 1 with
81an assertion failure, then the unchanged working-tree implementation was used
82again. The command form was:
83
84```sh
85CGO_ENABLED=0 go test -overlay "$task/<mutation>.json" ./internal/runner/provider -run '<test>' -count=1
86```
87
88| Mutation | Test subcase that caught it |
89|---|---|
90| Compare length instead of contents | `TestClaudeGitIgnoreState/same-size-content` |
91| Remove allowed file-mode check | `TestClaudeGitIgnoreState/mode` |
92| Remove allowed directory-mode check | `TestClaudeGitIgnoreState/directory-mode` |
93| Remove pinned-version check | `TestClaudeGitIgnoreState/version` |
94| Remove file identity comparison | `TestClaudeGitIgnoreReadback/replaced` |
95| Allow symlinks during open | `TestClaudeGitIgnoreReadback/symlink` and `parent-symlink` |
96| Remove opened-file metadata check | `TestClaudeGitIgnoreReadback/hardlink` |
97| Remove opened-file mode comparison | `TestClaudeGitIgnoreReadback/mode` |
98| Remove owner check | `TestAccountCodexRuntimeOwner` |
99| Remove link-count check | `TestClaudeGitIgnoreState/hardlink` |
100| Remove setuid/setgid check | `TestClaudeGitIgnoreState/setuid` and `setgid` |
101| Accept an unexpected git-config child | `TestClaudeGitIgnoreState/child` |
102| Accept special files in the walk | `TestClaudeGitIgnoreState/fifo` |
103| Accept symlinks in the walk | `TestClaudeGitIgnoreState/symlink` |
104| Accept a directory as the ignore file | `TestClaudeGitIgnoreState/directory` |
105| Accept a failed open | `TestClaudeGitIgnoreReadback/missing` |
106
107## Live runs
108
109All launches were sequential, using only `claude-a`, whose verified binding is
110`paul@tito.io` at `account-1004981892`. The configured `claude-b` identity is
111`paul@keymail.dev`; it was not launched. Other provider homes were not used.
112Bindings, saved setup, previous evidence and runner environment were unchanged.
113Only the permitted executable-path entries were selected from `runner.env`.
114There were no sign-ins, full live gate, certification bundle, release or push.
115The stopped runner service was not started.
116
117The disposable harness used production `driver.exercise`, `CertificationInputs`,
118account leases, launchers, namespace management, journal and tool proxy. A Go
119overlay returned immediately after the production specialist `probes` call;
120coordinator runs used the production fixture and calibration checks. The test
121executable's existing `NamespaceMain` handler supplied the namespace helper.
122The pinned provider binaries and production-built tool proxy were verified.
123The initial attempt with a separately built runner was refused because the
124namespace manager requires the controller executable's identity; no model turn
125was admitted. A second setup attempt lacked the configured binding path and
126also admitted no turn. Both were corrected before the first live model request.
127
128Each run used a new initialized Git workspace and disposable synthetic markers,
129so the harness did not read marker contents from real account homes. Temporary
130observations were printed as would-be checks and deleted, without writing an
131index or certification bundle. Admissions below conservatively count dispatch
132attempts that were refused before reaching the model.
133
134| UTC on 2026-11-06 | Tuple | Debug ID | Admissions | Result |
135|---|---|---|---:|---|
136| 10:25:47–10:25:48 | Engineering | `3968425379` | 0 | Controller executable identity refused |
137| 10:26:09–10:26:09 | Engineering | `3519747751` | 0 | Configured binding path missing |
138| 10:26:37–10:30:26 | Engineering | `1632246206` | 30 | Original modes accepted; model repeatedly declined native negative controls. Stopped the owned namespace during turn 30 to preserve budget; cleanup completed. |
139| 10:31:06–10:31:38 | Engineering | `814281508` | 2 | Restrictive modes reproduced the original gitignore refusal |
140| 10:32:37–10:32:47 | Coordinator | `630303671` | 1 | All 21 would-be checks passed; harness calibration tried to overwrite an existing observation and returned an error |
141| 10:33:55–10:34:06 | Coordinator | `2348183858` | 1 | All 21 would-be checks passed; harness exited 0 |
142| 10:34:19–10:35:30 | Review | `3487763934` | 6 | Fixed allowance accepted restrictive modes across six turns; model declined native negative controls; the remaining admission budget stopped further retries |
143
144The current total is **40 of 40 admissions**, conservatively including the
145second restrictive-run admission refused before a model request. An extension
146was requested, but no additional turns are authorized yet. The coordinator
147proof is complete. Full Engineering and Review probe proofs remain incomplete:
148the model declined native filesystem calls, so their would-be `direct-isolation`
149checks remain `not-certified`. No refusal was relabelled as a passing check.
150Review's final `provider_policy_rejected` came from `reserveRecovery` reaching
151the per-run six-admission cap; it was not another gitignore rejection.
152
153Coordinator would-be checks all passed: account version, exact tool inventory,
154structured question, effective policy, host control sockets, absent host services,
155immutable settings, no hooks/plugins, subscription currency, PID-1 ownership,
156private network, provider frame JSON, settings write denial, and all admission,
157usage and reservation checks. Both specialist attempts printed per-tool results;
158missing native denials remain visible as `declined` or `not-certified`.
159
160## Full gate and handoff
161
162One `make -k ci` invocation exited 0; there were no reruns. Build, vet,
163formatting, staticcheck, govulncheck, gitleaks, source budgets, tests, adapter
164checks, namespace checks, migration check and performance passed. The full test
165step ran 34 packages uncached, with zero failures. Cold boot measured 147 ms
166against 500 ms; all measured screens met the 150 ms budget.
167
168The local gate reported timing overruns, which would fail with `CI` or
169`AMADAN_CI` set. Another `make -k ci` was running concurrently on the shared
170machine. No budget was raised and no timing claim is made for a CI environment.
171
172| Package | Measured | Budget |
173|---|---:|---:|
174| `internal/directlive` | 8m14.430s | 6m |
175| `internal/equipotest` | 5m6.489s | 5m |
176| `internal/runner` | 8m47.223s | 5m30s |
177| `internal/runner/provider` | 21.927s | 15s |
178| `internal/runner/provider/claude` | 50.498s | 45s |
179| `internal/runner/provider/codex` | 42.056s | 35s |
180
181`git diff --check` passed. The task's live namespaces and tuple directories
182were retired. Scratch binaries, overlays and logs were removed from
183`/home/paulca/.cache/tmp/git-ignore-allowance`. No task processes remain, and
184The runner service is still inactive. No copy-review server was started.
185Only the implementation, regression tests and this report are included in the
186commit. The controller owns pushing and any further authorized live proof.
187