chore(agents): upgrade Agent Foundry to b04e778 #68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/foundry-upgrade-b04e778"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
This repository's agent policy, meaning the rules, skills, and Claude
Code settings that coding agents follow here, is adopted from Agent
Foundry and kept up to date by merging its newer commits. The source has
made five commits since the adopted 99fc865. Two of them tighten Claude
Code's settings. As things stand, an agent can edit its own instruction
and configuration files without asking. The one command Claude Code lets
leave its sandbox, the fast-forward merge that lands a branch, also runs
with any options appended after
--ff-only, again without a prompt.The others rework the pull request template for readers who have not
followed the work. Taking all five at the source's tip, b04e778, is the
smallest complete step. The later commits fix and document the earlier
ones, so stopping partway would leave a state the source already
corrected.
What changed
Claude Code used to edit
AGENTS.md, the CLAUDE files, and anythingunder
.agents/,.claude/,.codex/, or.opencode/withoutasking. It now asks first. The landing merge used to run outside the
sandbox in any form that began with
git merge --ff-only, and with noprompt. Only
git merge --ff-only --end-of-options <branch>leaves thesandbox now, so git reads every later argument as a revision, never as
an option, and every
git merge --ff-onlyasks first.The pull request template, the form agents fill in and that Forgejo
offers when a pull request opens, now has "Why" and "How to verify"
speak to an outside reader. It asks for scenarios a person can repeat on
their own machine, and for
Closes/Refslines. The policy's sizerule now counts a pull request body without its How to verify section.
In the diff:
.claude/settings.json,.agents/skills/deliver/land.md,.agents/templates/pull-request.mdwith its Forgejo copy.forgejo/pull_request_template.md,AGENTS.md, and the adoptedcommit in the
foundry-upgradeskill's Record.How to verify
What to have first: Git 2.48 or later, on Linux or macOS.
The problem, on main: the merge that the sandbox let through also takes
extra options and does something other than a fast-forward. The
solution, on the branch: with
--end-of-optionsin front, git refusesthe option as an unknown revision and only fast-forwards. Run in a
scratch repository:
Main's form prints
Merge made by the 'ort' strategy., which is a mergecommit and not a fast-forward. The branch's form first prints
merge: --no-ff - not something we can merge, and then, given only thebranch,
Fast-forward.Checks run on the tip,
d90dbd6: Agent Foundry's validator reportsagent configuration statically valid.make lint && .agents/hooks/shellcheck.sh repo && make testpasses;
make testpasses when run outside Claude Code's sandbox,since its socket tests need Unix sockets the sandbox blocks.
Could not be tried: the new prompts in a live Claude Code session.
The Edit prompts are in
permissions.askin.claude/settings.json;opening the branch in Claude Code and asking it to edit
AGENTS.mdshould show a permission prompt.