docs(agents): upgrade Agent Foundry to b04e778 #82
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
The agents that work on this site follow a policy, skills and settings
copied from Agent Foundry, which the repository last adopted at
05a1481. The source has moved 428 commits since: it splits the oldall-in-one workflow into skills an agent picks per request (feature,
bug fix, refactor, documentation, review), adds reviewers for security
and documentation, guards the main checkout against direct edits, and
keeps secret files away from Claude Code. Staying on the old copy means
each future upgrade grows harder to merge. The upgrade also follows the
source's relicensing to MIT No Attribution.
What changed
Before, an agent read one long
AGENTS.mdand five skills; now itroutes each request to a workflow skill, writes its documents into a
work folder under
.plans/, and gets its change reviewed by change,security and document reviewers before delivery. File edits in the main
checkout on
masterare refused by a hook, and shell scripts agentswrite are checked with ShellCheck.
In Claude Code, the repository settings now deny reads of secret files
(
.env*, keys, keystores, credentials) at every depth, run Bash inClaude Code's sandbox, ask before agents edit their own configuration,
and deny the
Workflow,ScheduleWakeup,ReportFindingsandListAgentstools. The repository's own allow list is kept.AGENTS.mdtakes the source's layout; the site's facts and gotchasmove to its Architecture, Set-up, Test, Quality gates and Project rules
sections. The Verify command becomes
make build && .agents/hooks/shellcheck.sh repo. The README Quickstart lists every prerequisite (Python 3, Git 2.48 or later, ShellCheck
and jq added),
CONTRIBUTING.mddescribes the agent setup, Codex hooktrust and what the azkaban layer needs, and
LICENSE.agent-foundrywith its README credit goes, since MIT No Attribution asks for neither.
A Forgejo pull request template is added.
Breaking for contributors: Verify and the agent hooks now need
ShellCheck and jq, and Codex runs the hooks only after each workstation
trusts them in
/hooks.How to verify
terser, Python 3, ShellCheck, jq, and Claude Code.git clone ssh://git@git.unitoo.it/unitoo/website.git /tmp/site-check && cd /tmp/site-check && ls .agents/skillslistsonly
brainstorm diagnose forge foundry-upgrade write-plan, andgit show HEAD:.claude/settings.json | grep -c '"sandbox"'prints0.git switch chore/foundry-upgrade-b04e778 && bundle install && make build && .agents/hooks/shellcheck.sh repoends withshell check: 4 files clean;ls .agents/skillsnow includesimplement-feature,fix-buganddeliver.claudein/tmp/site-checkonmasterand ask it to"add a comment to the top of README.md". On main it edits the file;
on the branch the main-checkout guard refuses the edit and the agent
opens a worktree under
.worktrees/instead.Checks run on the tip: Verify passes (build complete, shell check 4
files clean); Agent Foundry's
verify-agent-config.shreports theconfiguration valid;
git diff --check masteris clean. Step 4 was notrun in a fresh session; the site was not checked visually, as the
change touches no page.
Considerations
Every Agent Foundry file is byte-identical to the source at
b04e778except the project sections of
AGENTS.md, the settings' allow list,.gitignoreand the upgrade skill's Record, so the next upgrademerges cleanly. Reviewers' later-round wording suggestions (Node 22
stated twice in
CONTRIBUTING.md, the README's undefined "Verifycommand", the Matomo rule now naming its tracked source) were set aside
as low.
813ca38996toc71699f1ae