Skip to content

v0.0.6

Choose a tag to compare

@github-actions github-actions released this 31 Oct 22:45
· 16 commits to main since this release
  • Fresh base. [branches] fresh_base (allow, warn, approval or deny). When it is on, the hook fetches origin's copy of the landing branch as an agent's session starts, and tells the agent whether it has the latest code and, if not, how far behind it is and how to update (git pull --rebase origin main). Work that started behind and never caught up shows as BASE_STALE in the brief, and is held at the setting's strictness. When the agent updates, by rebasing or merging, the commits it pulled in are not counted as its change, including any pushed after its session started. Only a new session is checked, not a resume or compaction. The fetch gives up after 5 seconds, never asks for a password or ssh passphrase (ssh runs in batch mode unless you set your own ssh command) and leaves nothing running; a failed fetch is said and never erases or holds anything. New setups turn it on as warn; existing policies are unchanged until you set it. Checked on your machine; the CI gate does not re-check it.
  • Files that change together. A [[require]] rule: when a change touches when, it must also touch also (for example when = ["src/api/**"], also = ["docs/api/**"]). The agent is told the rule when its session starts; when it stops without the update (staged or not), Claude Code is asked once to make it, also after it was first asked to fix a failing check; the brief reports ALSO_CHANGE_MISSING, held at the rule's severity (approval by default). An optional why is said to the agent and in the brief. 05 checks that a file there changed, not what the change says.
  • The guided setup asks which folders must be updated whenever code changes, and how strict fresh base is. An organisation floor can set branches_fresh_base and add require rules. A policy using either rule needs use05 0.0.6 or newer; older versions are told to upgrade.
  • Fixed: a scope written as one string. --scope "src/** docs/**" or --scope src/**,docs/** is now read as two patterns, not one that matches nothing (which put every changed file outside the plan). Found when a real agent declared its plan that way. --exclude too.
  • Fixed: agents working in a subfolder. When an agent's session moved two or more folders below the repository's top (apps/web/app/...), 05 looked for its state outside the repository. Every hook then failed with "creating the state directory: Read-only file system" and nothing was checked; from shallower folders it quietly wrote its state to a .git/05 folder above the repository. 05 now finds the repository's own .git from any folder.