Skip to content

v7.32.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 13:55
· 5 commits to main since this release
a3e080f

Added

  • 2026-11-30: /pharn-regress makes its base checkout with git clone --shared when git worktree add fails, so a
    regress run under Claude Code's Bash sandbox can still reach a base-and-head verdict (CORE-616).
    The sandbox refuses
    .git/worktrees/ in the project's repository, and no allowWrite entry lifts it
    (.dev/measurements/sandbox-probe-2026-11-29.md, sessions G and G2). So the stage's git worktree add failed and the
    stage stopped unusable git-failed with no verdict. That was predicted from probes; no loop got as far as regress.
    • pharn/floor/stage-regress.mjs tries git worktree add first, as before. If it exits non-zero, the stage clears
      what it left, makes a fresh base directory in the temp root, and runs pharn/floor/base-worktree.mjs
      cloneBaseCheckout: git clone --shared --no-checkout of the repository's top level, then a detached checkout of
      the base commit. A local clone writes only its destination, so nothing lands under the project's .git; that is
      git's behaviour, and the tests check it (advisory). The clone's git calls run without GIT_DIR, GIT_WORK_TREE,
      GIT_INDEX_FILE and the other repository-selecting variables. A stage started from a git hook inherits them, and
      with them the checkout rewrote the project's HEAD. The branch reads the exit status and never parses git's text, so
      the clone also covers an add that failed for another reason. If the clone fails too, the stage stops git-failed
      as before, and the detail names both failures.
    • When add succeeds, no output byte changes. The report gains base_checkout: "clone" only when the clone path
      ran, after base_install, and REGRESSION.md gains one fixed line. The progress record's optional baseCheckout
      tells --resume and cleanup which method made the checkout. A record written before 7.32.0 lacks it and is read as
      a worktree, so it still resumes. Cleanup removes a clone's directory, because a clone has no registration.
    • Both methods put the base commit's top-level tree at the checkout's root, where the base gates run. A clone does not
      carry the repository's own .git/config, .git/info/attributes or info/exclude. It runs the user's
      init.templateDir hooks instead of the project's post-checkout hook. Submodules are not initialized either way.
      LFS content and shallow sources are unmeasured. Under the sandbox, a base commit holding a .gitmodules file still
      fails its checkout. pharn/pharn-contracts/regression-report.md documents the key and these bounds.
    • Measured on a temp copy of this repository (4,329 files, 3 runs): git worktree add took 1,236–1,690 ms, and clone
      plus checkout took 1,327–1,618 ms. The tests simulate the sandbox's refusal with an unwritable .git/worktrees,
      which produces the same git error. That a clone succeeds under the real sandbox is inferred from the record (a
      scratch repository used under the temp dir) and has not been re-measured. Reusing the entry gates' base evidence
      (6.49.0) was not chosen as the fix, because a miss, or a standalone regress, still needs a checkout.
  • 2026-11-30: A measurement record of PHARN 7.29.0 under Claude Code's own Bash sandbox in strict mode (CORE-586):
    no-go for shipping a sandbox profile yet, plus the settings block a shipped profile would use.
    Measured on macOS
    27.0.1 with Claude Code 2.1.332, n = 1 per configuration (.dev/measurements/sandbox-probe-2026-11-29.md; kit,
    runbook and evidence under .dev/features/sandbox-probe/). In project settings, a denyWrite entry refused Bash
    writes to pharn/floor/, two of the trusted docs, memory-bank canon and pharn/spec-template.md, and the .claude/
    control surface, .git/hooks and .git/config were refused with no entry. With allowUnsandboxedCommands: false the
    unsandboxed retry was ignored. credentials unset the gate environment's credential names, and check-run-isolation
    still reported HOST. Three full /pharn-loop runs (main checkout and linked worktree) all stopped at the entry
    gates. One stop was caused by the sandbox: local test servers and tsx could not bind sockets. Two breaks have no
    settings fix: ps cannot run, so entry-gates.mjs --abort leaves the gate runner running, and git worktree add in
    the project's repository is refused. Regress, build, verify and the loop commit were not reached. The sandbox covers
    Bash only; the record credits it with no Write-tool, hook or MCP control. No product-surface byte changed.