| 1 | # Certification gaps, 2026-11-05 |
| 2 | |
| 3 | The certification checks now require successful workspace tool controls and |
| 4 | captured Claude native-read refusals. Hook events are requested in Claude's |
| 5 | launch policy. The evidence records the provider launch separately from the |
| 6 | isolation probe launch. All 18 policy entries remain uncertified. No live model |
| 7 | request, account-home inspection, certificate, merge or deployment was made. |
| 8 | |
| 9 | ## G1: tool routing |
| 10 | |
| 11 | Workspace routing requires `pass`; `declined` is accepted only outside the |
| 12 | workspace. Zero exposed tools fail. The driver, inventory check, Go evidence |
| 13 | validator and Python release checker enforce these rules. Claude's hidden |
| 14 | permission callback is no longer incorrectly required in its exposed inventory. |
| 15 | The release checker also includes the existing candidate/render tool pair. |
| 16 | |
| 17 | Before launching any provider, the disposable routing setup selects the |
| 18 | repository's actual HEAD commit or creates a real empty commit object if the |
| 19 | repository is unborn. It moves no branch and runs no hook. Candidate, render |
| 20 | and review submissions reuse that hash. The setup also supplies concrete |
| 21 | reproduction input and a workspace source digest for answer submissions. The positive turn permits human |
| 22 | approvals; the negative turn still denies them. Native workspace controls now |
| 23 | need these approvals because of G3. |
| 24 | |
| 25 | Codex `write_stdin` gets a process waiting for input. Its proof requires the |
| 26 | observed process-start call, returned session ID, matching input call, echoed |
| 27 | marker and successful process exit. A completed call without that setup cannot |
| 28 | pass this control. |
| 29 | |
| 30 | The fixed prerequisite list identifies `read_mcp_resource`: the pinned Equipo |
| 31 | server exposes tools and no resources. The prompt first asks for available |
| 32 | resources. A missing prerequisite is recorded as `not-exercisable` with its |
| 33 | reason and still fails certification. This change grants no unreviewed routing |
| 34 | exemptions. If the live catalog exposes this unusable tool, the controller must |
| 35 | review an explicit exclusion or provide a real resource before certifying that |
| 36 | tuple. A model decline cannot make it pass. |
| 37 | |
| 38 | ## G2: hook visibility |
| 39 | |
| 40 | The installed Claude executable matched the pinned SHA-256 |
| 41 | `4f4178ce41d83e23341ebfbaecdbcf8ea6bf7baea0690025abe49eeec3a5d01d`. |
| 42 | Read-only inspection of that executable found the `--include-hook-events` |
| 43 | option registration and the stream emitters. No provider process was needed. |
| 44 | |
| 45 | The emitters use `type: system` and subtypes `hook_started`, `hook_progress` |
| 46 | and `hook_response`. Each carries `hook_id`, `hook_name` and `hook_event`. |
| 47 | Progress also carries stdout, stderr and output; response adds outcome and an |
| 48 | optional exit code. These observations agree with the existing captured-event |
| 49 | fixtures. The checker continues to reject every `hook_` subtype, including events |
| 50 | found after resume or recovery. |
| 51 | |
| 52 | The flag is part of the constructed argv and policy hash. A regression test |
| 53 | removes it, rebuilds the policy, checks that the hash changes, and requires the |
| 54 | launcher to reject the changed policy. All nine Claude inventory hashes were |
| 55 | updated; no entry gained certification authority. |
| 56 | |
| 57 | ## G3: observed native isolation |
| 58 | |
| 59 | For every protected target, including the workspace symlink, the evidence must |
| 60 | contain a correlated `Read` call and error result that records permission denial |
| 61 | or Equipo's callback refusal. Tool names, input paths and call IDs must match. |
| 62 | Missing calls, unmatched results, successful reads and unrelated errors fail. |
| 63 | Any claimed `Glob` or `Grep` refusal also requires captured evidence. Their |
| 64 | absence cannot substitute for the mandatory Read proof. |
| 65 | |
| 66 | The former calls to `ProbeNativeReadPolicy` no longer produce certification |
| 67 | proof. Native workspace allow rules became ask rules, so the existing callback |
| 68 | can refuse symlink paths before asking the person. The callback fixture verifies |
| 69 | that refusal and that it cannot be approved. A successful Read through the |
| 70 | symlink remains a certification failure. Whether pinned Claude applies these |
| 71 | rules as intended still requires the separate live verification below. |
| 72 | |
| 73 | ## G4: evidence and funding |
| 74 | |
| 75 | `NamespaceManifest` now identifies the provider's own recorded launch. The |
| 76 | probe's separate manifest hash is retained as `probe_namespace_manifest`. |
| 77 | `provider-launch.json` binds the attempt key, launch policy hash and namespace |
| 78 | manifest. The release checker compares these fields with the record, then |
| 79 | compares the isolation record with its hashed artifact: targets, reports, |
| 80 | wrapper, native proofs and provider-launch reference must agree. |
| 81 | |
| 82 | Each staged marker has a fresh random name and independent random contents. |
| 83 | The selected-home path is `/home/runner/<random marker>`, with matching proc-root, |
| 84 | self-root and workspace-symlink aliases. The account validator accepts only a |
| 85 | small regular marker file with the exact name grammar, private permissions, |
| 86 | single link and current owner. Source markers are not copied into the staged |
| 87 | home. Model leak detection includes the new staged contents. |
| 88 | |
| 89 | The currency verdict is rewritten after the complete journal scan at shutdown |
| 90 | and again after recovery. The final pooled calibration still runs afterward. |
| 91 | Malformed provider frames get a separate `provider-frames-json` failure instead |
| 92 | of being counted as evidence of a currency cap. Display costs remain allowed. |
| 93 | |
| 94 | Output funding is now 23 × 50,000 = 1,150,000 tokens per job, project headroom |
| 95 | and team headroom. A 50,000-token reservation covers twice a 25,000-token output |
| 96 | turn, allowing for reasoning-heavy Codex turns. The calibration proposal uses |
| 97 | 274 completed turns plus 34 full reservations: (274 + 34) × 50,000 = 15,400,000 |
| 98 | output tokens, rounded up to 16,000,000. Input remains 50,000,000 for calibration |
| 99 | and 5,750,000 per job. Calls remain 500 and duration remains 7,200 seconds. |
| 100 | These are planning allowances, not measured live maxima or automatically raised |
| 101 | limits. Old default values are re-proposed; custom values remain selected and |
| 102 | the existing funding confirmation still applies. |
| 103 | |
| 104 | ## G5: verification |
| 105 | |
| 106 | Failing tests preceded the fixes. Initial assertions reproduced workspace |
| 107 | acceptance of declines, missing hook-event argv, workspace callback bypass, |
| 108 | computed native proof without a captured call, unrelated namespace hashes, |
| 109 | source-marker reuse, malformed-frame currency classification and old output |
| 110 | funding. The process-routing and staged-home integration regressions also failed |
| 111 | before their fixes. |
| 112 | |
| 113 | Focused checks used `CGO_ENABLED=0 go test` with these packages and test groups: |
| 114 | |
| 115 | - `./internal/directlive`: WorkspaceRouting, RoutingControls, ToolRouting, |
| 116 | CodexRouting, CodexWriteStdin, ClaudeNativeIsolation, StagedMarker, |
| 117 | FinalCurrency, NonJSON, Subscription, ClaudeHook and ClaudeRecoveryHook. |
| 118 | - `./internal/runner/provider`: Routing, DirectLiveGate, DirectIsolation, |
| 119 | Isolation, ClaudeNativeEvidence, ClaudeIsolationRejectsComputedProof, |
| 120 | NamespaceManifestMustMatchProviderLaunch and RuntimeRandomIsolationMarker. |
| 121 | - `./internal/runner/provider/claude`: HookEvents, HookEventFlagBoundToPolicy, |
| 122 | NativeIsolationPolicy and ProtectedPermissionNeverAsks. |
| 123 | - `./internal/tryequipo`: FundingProposedDefaults. |
| 124 | - `./internal/runner/provider/providertest`: ReleaseIsolationGuards. |
| 125 | - `./internal/equipotest`: RunnerReleaseContract. |
| 126 | - `./internal/release`: PlanWorkflowReleasePolicyInventory. |
| 127 | |
| 128 | The complete fake Engineering exercise passed in 57.893 seconds. Its fixtures |
| 129 | now use an initialized disposable Git repository and emit routing results and unique |
| 130 | native-call IDs. These synthetic observations remain ineligible as live evidence. |
| 131 | |
| 132 | Seventeen temporary Go source overlays deliberately broke the guards. Each final |
| 133 | mutation command returned exit 1 with an assertion failure, using |
| 134 | `CGO_ENABLED=0 go test -overlay <overlay> <package> -run '^<test>$' -count=1`. |
| 135 | |
| 136 | | Deliberate break | Failing regression | |
| 137 | | --- | --- | |
| 138 | | Accept a workspace decline in the parser | TestWorkspaceRoutingCannotDecline | |
| 139 | | Accept a declined workspace control in the inventory | TestRoutingControls | |
| 140 | | Accept an empty routing inventory | TestRoutingControls | |
| 141 | | Accept a workspace decline in a certificate | TestRoutingWorkspaceDeclineFails | |
| 142 | | Omit hook-event argv | TestHookEventsAndNativeAskPolicy | |
| 143 | | Remove the workspace ask rules | TestHookEventsAndNativeAskPolicy | |
| 144 | | Ignore the native result's call ID | TestClaudeNativeEvidenceGuards | |
| 145 | | Accept computed native status without frames | TestClaudeIsolationRejectsComputedProof | |
| 146 | | Ignore the provider namespace-manifest match | TestNamespaceManifestMustMatchProviderLaunch | |
| 147 | | Reuse source bytes as the staged marker | TestStagedMarkerIsIndependent | |
| 148 | | Classify non-JSON as a currency cap | TestNonJSONIsNotCurrencySignal | |
| 149 | | Skip the final currency scan | TestFinalCurrencyIncludesLateFrames | |
| 150 | | Ignore malformed frames | TestFinalCurrencyIncludesLateFrames | |
| 151 | | Accept redacted null frames | TestRedactedMalformedFrameFailsSeparately | |
| 152 | | Skip candidate creation in an unborn repository | TestRoutingCreatesRealCandidateInUnbornRepository | |
| 153 | | Restore the old job output default | TestFundingProposedDefaults | |
| 154 | | Ignore the process-start prerequisite | TestCodexWriteStdinRoutingPrecondition | |
| 155 | |
| 156 | The first attempted call-ID mutation still left an unmatched call incomplete, |
| 157 | so the test correctly continued to pass. The corrected mutation removed the |
| 158 | correlation guard completely and the regression failed. No production mutation |
| 159 | was retained. Python tests also reject record/artifact mismatches, launch-record |
| 160 | mismatches and declined workspace controls while accepting matching fixtures. |
| 161 | |
| 162 | The first full `make -k ci` exited 2. Its test step ran uncached in 5m20.794s |
| 163 | and found stale fixtures in two packages: the expected Claude argv omitted the |
| 164 | new flag, the workspace parity fixture still expected allow rules, and the |
| 165 | containment fixture still used the old marker name. Those fixtures now assert |
| 166 | the intended policy. All other gate lanes passed, including migration and |
| 167 | performance. Cold boot was 105ms against 500ms. Local timing warnings were |
| 168 | provider 20.569s against 15s and Codex 38.687s against 35s. |
| 169 | |
| 170 | Review also found that the evidence reader represents malformed JSON as null. |
| 171 | A new failing regression now requires null and other non-object frames to fail |
| 172 | the separate frame-validity check. The restored targeted checks pass. The |
| 173 | first permitted rerun exited 0. Its full test step ran 28 packages uncached in |
| 174 | 5m30.886s; all passed. Local timing warnings were provider 20.692s against 15s, |
| 175 | Claude 45.358s against 45s, and Codex 38.742s against 35s. Performance passed, |
| 176 | with cold boot at 117ms. |
| 177 | |
| 178 | While that rerun was in progress, a failing regression found that the guide |
| 179 | creates an unborn repository. Candidate setup now creates a real commit object |
| 180 | before any model starts and reuses it without moving a branch. The regression |
| 181 | and the complete fake Engineering exercise pass; the latter took 42.396s with |
| 182 | an unborn fixture repository. The second and final permitted full rerun exited 0 on the final code. |
| 183 | All 28 test packages ran uncached and passed in 6m7.779s. Build, vet, |
| 184 | formatting, static analysis, vulnerability and secret scans, reference checks, |
| 185 | size budgets, provider and namespace checks, migration and performance passed. |
| 186 | Cold boot was 125ms against 500ms, and every screen stayed within 150ms. |
| 187 | |
| 188 | That final run reported timing warnings: runner 6m6.175s against 5m30s, |
| 189 | provider 21.218s against 15s, Claude 46.454s against 45s, and Codex 39.642s |
| 190 | against 35s. These are warnings locally and would fail with CI timing |
| 191 | enforcement enabled. No passing remote gate is claimed. There were exactly |
| 192 | three full `make -k ci` invocations: the required run and two permitted reruns. |
| 193 | |
| 194 | ## Live verification after Paul's current run |
| 195 | |
| 196 | Run the newly built policy in a separately authorized full gate after the |
| 197 | current run finishes. Existing results use the old hashes and cannot certify |
| 198 | this policy. |
| 199 | |
| 200 | 1. Confirm Claude emits hook events with the new argv and that complete streams, |
| 201 | including resume and recovery, contain none under the disabled-hook policy. |
| 202 | 2. Capture actual Read refusals for every protected target, especially the |
| 203 | workspace symlink. Confirm a normal workspace Read succeeds after approval. |
| 204 | Any symlink success is a real failure; do not override the verdict. |
| 205 | 3. Exercise each exposed tool's positive control, including candidate/render |
| 206 | submissions and Codex's running-process input. Resolve the explicit missing |
| 207 | resource prerequisite if that tool is exposed. Check outside refusals still |
| 208 | occur without a human approval question. |
| 209 | 4. Confirm provider-launch hashes match the saved launch records, random staged |
| 210 | markers are distinct from source markers, and both direct and model probes |
| 211 | target the staged filename. |
| 212 | 5. Check complete-stream and recovery currency verdicts, and measure actual |
| 213 | reasoning output against the proposed funding before certifying any tuple. |
| 214 | |
| 215 | No README prose or app-facing copy was changed. No copy-review server was started. |
| 216 | All task-created scratch files, mutation overlays and logs were removed after |
| 217 | the results were recorded here. No task process or server remains. The delivery |
| 218 | branch is `certification-gaps`, based on the supplied brief after main 0938dd2. |
| 219 | No merge, default-branch push, deployment or live-account change was made. |
| 220 | |