| 1 | # Git ignore allowance |
| 2 | |
| 3 | The fix and coordinator probe proof are complete. Full Engineering and Review |
| 4 | live proofs remain incomplete at the 40-admission ceiling because the model |
| 5 | declined the native negative controls. |
| 6 | |
| 7 | The failure comes from restrictive file permissions. The failed run used files |
| 8 | consistent with umask `0077`; the previous passing run used `0002`. Claude |
| 9 | 2.1.312 writes the same 23-byte gitignore under either umask. The old allowance |
| 10 | required 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 | |
| 15 | I compared the read-only evidence in `run-2031427639` and `run-4261561216` |
| 16 | under `/home/paulca/.local/share/equipo/try/`. Both used Claude executable |
| 17 | SHA-256 `4f4178ce41d83e23341ebfbaecdbcf8ea6bf7baea0690025abe49eeec3a5d01d`. |
| 18 | Engineering and Review policy hashes also match between runs. The coordinator |
| 19 | hash changed after `propose_project` was added, as expected. |
| 20 | |
| 21 | The passing run's `repo/.git/config`, `description`, and `info/exclude` have |
| 22 | mode `0664`; `.git`, `.git/hooks`, and `.claude` have mode `0775`. In the failed |
| 23 | run the corresponding files have mode `0600` and directories `0700`. Both |
| 24 | workspaces contain `.claude/.cc-writes`. The saved evidence does not retain the |
| 25 | runtime gitignore or the launching process's umask, so I reproduced the modes |
| 26 | with 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 | |
| 35 | Both observed files contain exactly `**/.claude/.cc-writes/\n`, where `\n` |
| 36 | means one LF byte. Before printing either file I checked for token-like strings |
| 37 | and credential keywords; none were present. No credential contents were read, |
| 38 | printed, copied or hashed by the diagnostic harness. Product account leases |
| 39 | performed their normal credential staging and validation. |
| 40 | |
| 41 | The pinned executable's `jJr` implementation writes the global ignore entry |
| 42 | asynchronously, using `**/` followed by `.claude/.cc-writes/`. It does not set |
| 43 | an explicit file mode. A live Engineering run with `umask 077` reproduced |
| 44 | `probes: provider_account_containment: runtime_claude_git_ignore` after the |
| 45 | first 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 |
| 48 | observed file modes. It requires the exact observed bytes, including the final |
| 49 | newline. A same-size substitute, extra pattern, empty file or missing newline |
| 50 | is refused. Reading is bounded to 24 bytes. The open refuses symlinks throughout |
| 51 | the path, verifies the file identity against the walk result, and checks the opened |
| 52 | file's owner, link count, kind, mode and size. Existing provider-version, |
| 53 | special-file, setuid/setgid and unexpected-child guards remain in force. |
| 54 | Source-home staging and provider tool policy are unchanged. |
| 55 | |
| 56 | `TestDirectLiveCoordinator` did not fail independently in the saved run. Every |
| 57 | saved coordinator check passed. Its test invokes the shared driver first through |
| 58 | `sync.Once`; the delegated runner returned exit status 1 for the Engineering |
| 59 | and 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 |
| 61 | before the next tuple, and runs the coordinator last. |
| 62 | |
| 63 | ## Tests and guard checks |
| 64 | |
| 65 | Before implementation, this failed because arbitrary 23-byte contents were |
| 66 | accepted: |
| 67 | |
| 68 | ```sh |
| 69 | CGO_ENABLED=0 go test ./internal/runner/provider -run '^TestClaudeGitIgnoreState$' -count=1 |
| 70 | ``` |
| 71 | |
| 72 | After adding the restrictive-mode regression, the same command failed on |
| 73 | `private` with `runtime_claude_git_ignore`. Both failures were corrected. |
| 74 | The final targeted command passed: |
| 75 | |
| 76 | ```sh |
| 77 | CGO_ENABLED=0 go test ./internal/runner/provider -run 'TestClaudeGitIgnore|TestAccountClaudeRuntime|TestAccountCodexRuntimeOwner' -count=1 |
| 78 | ``` |
| 79 | |
| 80 | Temporary Go overlays broke each guard below. Every invocation exited 1 with |
| 81 | an assertion failure, then the unchanged working-tree implementation was used |
| 82 | again. The command form was: |
| 83 | |
| 84 | ```sh |
| 85 | CGO_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 | |
| 109 | All 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. |
| 112 | Bindings, saved setup, previous evidence and runner environment were unchanged. |
| 113 | Only the permitted executable-path entries were selected from `runner.env`. |
| 114 | There were no sign-ins, full live gate, certification bundle, release or push. |
| 115 | The stopped runner service was not started. |
| 116 | |
| 117 | The disposable harness used production `driver.exercise`, `CertificationInputs`, |
| 118 | account leases, launchers, namespace management, journal and tool proxy. A Go |
| 119 | overlay returned immediately after the production specialist `probes` call; |
| 120 | coordinator runs used the production fixture and calibration checks. The test |
| 121 | executable's existing `NamespaceMain` handler supplied the namespace helper. |
| 122 | The pinned provider binaries and production-built tool proxy were verified. |
| 123 | The initial attempt with a separately built runner was refused because the |
| 124 | namespace manager requires the controller executable's identity; no model turn |
| 125 | was admitted. A second setup attempt lacked the configured binding path and |
| 126 | also admitted no turn. Both were corrected before the first live model request. |
| 127 | |
| 128 | Each run used a new initialized Git workspace and disposable synthetic markers, |
| 129 | so the harness did not read marker contents from real account homes. Temporary |
| 130 | observations were printed as would-be checks and deleted, without writing an |
| 131 | index or certification bundle. Admissions below conservatively count dispatch |
| 132 | attempts 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 | |
| 144 | The current total is **40 of 40 admissions**, conservatively including the |
| 145 | second restrictive-run admission refused before a model request. An extension |
| 146 | was requested, but no additional turns are authorized yet. The coordinator |
| 147 | proof is complete. Full Engineering and Review probe proofs remain incomplete: |
| 148 | the model declined native filesystem calls, so their would-be `direct-isolation` |
| 149 | checks remain `not-certified`. No refusal was relabelled as a passing check. |
| 150 | Review's final `provider_policy_rejected` came from `reserveRecovery` reaching |
| 151 | the per-run six-admission cap; it was not another gitignore rejection. |
| 152 | |
| 153 | Coordinator would-be checks all passed: account version, exact tool inventory, |
| 154 | structured question, effective policy, host control sockets, absent host services, |
| 155 | immutable settings, no hooks/plugins, subscription currency, PID-1 ownership, |
| 156 | private network, provider frame JSON, settings write denial, and all admission, |
| 157 | usage and reservation checks. Both specialist attempts printed per-tool results; |
| 158 | missing native denials remain visible as `declined` or `not-certified`. |
| 159 | |
| 160 | ## Full gate and handoff |
| 161 | |
| 162 | One `make -k ci` invocation exited 0; there were no reruns. Build, vet, |
| 163 | formatting, staticcheck, govulncheck, gitleaks, source budgets, tests, adapter |
| 164 | checks, namespace checks, migration check and performance passed. The full test |
| 165 | step ran 34 packages uncached, with zero failures. Cold boot measured 147 ms |
| 166 | against 500 ms; all measured screens met the 150 ms budget. |
| 167 | |
| 168 | The 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 |
| 170 | machine. 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 |
| 182 | were retired. Scratch binaries, overlays and logs were removed from |
| 183 | `/home/paulca/.cache/tmp/git-ignore-allowance`. No task processes remain, and |
| 184 | The runner service is still inactive. No copy-review server was started. |
| 185 | Only the implementation, regression tests and this report are included in the |
| 186 | commit. The controller owns pushing and any further authorized live proof. |
| 187 | |