Joctã Torres
Joctã Torres
## Why The env override seams are read unconditionally at spawn time in production code: any value is executed as `bash -c ` (`src/core/batch/engine/engine.ts:609-616`; `src/core/eval/judge.ts:274-277`; `src/core/eval/mutation-harness.ts:146-154`). If the var is...
## Summary The standalone headless verbs `ratchet apply `, `ratchet propose ` and `ratchet verify ` run without a batch. Their agent prompt still interpolates `context.batch`, which is `undefined`. The...
## Why The change-authoring skills (`ratchet-propose-batch`, `ratchet-propose`, `ratchet-decompose-phase`) have no step that reconciles authored work against the originating GitHub issue, no rule governing `Closes #N` claims, and no mechanism that...
## Summary `ratchet batch apply` cannot start the Codex apply agent with the default `repo-sandboxed-permissive` permissions posture. Ratchet passes `--ask-for-approval never` to `codex exec`, but Codex CLI 0.157.1 rejects that...
Tracking the **unimplemented remainder of #80**. PR #97 shipped three of #80's four proposal items (loud notice, journal provenance stamping, shared `buildAgentSpawnRequest` helper) and claimed `Closes #80`. Two security-relevant halves...
## Why `full-autonomy` maps to the strongest bypass flag each agent has — claude `--dangerously-skip-permissions`, gemini `--yolo`, codex `--full-auto`, cursor `--force` (`src/core/batch/runtime/agent-permissions.ts:101-102, 150-213`) — and **drops the baseline destructive-op denylist**...
## Why `resolveAgentForStage` (`src/core/batch/agent-setting.ts:203-210`) resolves the agent for a given lifecycle stage: a scalar `agent` setting covers every stage, but a per-stage map returns `undefined` for any stage it doesn't...
## Why `agent: opencode` (a bare name, no `:model` suffix) parses to `{ agent: 'opencode' }` with no `model` key — documented as "use the harness default model" (`src/core/batch/agent-setting.ts`, `parseAgentSpec`...
## Why `ratchet init` scaffolds `.ratchet/evals/invariants.yaml` via `buildDefaultInvariantManifestYaml` (`src/core/eval/default-manifest.ts`). When no conventional test directory (`test`, `tests`, `spec`, `__tests__`) is detected at init time, `tests-still-exist` and `mutants-are-killed` are emitted as commented-out...
## Why `runMutationHarness`'s fail-closed precondition requires the working tree to be fully clean before it will seed a single mutant: `git status --porcelain -- . ':(exclude).ratchet/evals/runs'` (`src/core/eval/mutation-harness.ts:105`); any non-empty output...