docs(agents): upgrade Agent Foundry to 0593562 #85
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
cannot reproduce
need info
not a bug
bug
duplicate
enhancement
help wanted
invalid
need triage
need verification
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
unitoo/website!85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/foundry-upgrade-0593562"
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 coding agents that contributors run on this site, Claude Code, Codex, and OpenCode, follow a policy taken from Agent Foundry, a shared set of agent instructions:
AGENTS.md, the skills in.agents/skills/, and the subagent briefs and adapters. Since the repository adopted it atb04e778on 11 November, the source has gained 20 commits.One of them fixes a hazard every change here meets. Agents fold each branch in a linked worktree under
.worktrees/, and the fold'sgit rebase --exechands its checks aGIT_DIRthat points at this repository. A check whose tool runs git in a repository of its own then acts on this one instead; the source met one that rewrote a repository's origin that way. The other commits cut what an implementer subagent re-reads and re-runs after a failed attempt, and close smaller delivery and routing gaps.This takes the source head,
0593562. Stopping at017383cwas set aside because it leaves out the fold fix, and taking only the fixes up to725055abecause it leaves out the implementer and template changes.What changed
Folding a branch: before, the fold's checks ran with git's repository variables set to the folded repository. Now
fold-branchunsetsGIT_DIR,GIT_WORK_TREE,GIT_INDEX_FILE, andGIT_COMMON_DIRfirst, so a check's own git commands act on their own repository.Implementers: before, each failed attempt went to a newly briefed implementer at the task's planned effort. Now an attempt that fails at low or medium effort moves one effort up, and in Claude Code and Codex the main session continues the implementer that last reported, rather than briefing a new one, when the next step runs at its effort outside a parallel run. Its report has a fixed order.
Handoffs and checks: before, the main session pasted each handoff as the subagent's prompt, and every attempt reran every check. Now it saves the handoff in the work folder and sends its path, and a passing result can stand for a later attempt when the work file records its inputs unchanged.
verify-executionruns the every-commit checks before the reviewers, and still runs Verify on the final tree.Delivery and templates:
deliverprepares a pull request's text before pushing, andland.mdtells the user how to set a branch's upstream when the sandbox blocks it. The pull request template has shorter guidance, and.forgejo/pull_request_template.md, its copy, follows it. The Codex adapters of implementers and reviewers turn off apps, plugins, and memories.AGENTS.mdgains one routing sentence: a workflow whose change also trims a policy file first runsimplement-featurestep 1.Every merged file is the source's text at
0593562, withAGENTS.mdkeeping this repository's project sections, and the Record in.agents/skills/foundry-upgrade/SKILL.mdnames the new commit. The site,.claude/settings.json, and the hooks are unchanged.How to verify
You need Bash, Git (2.53.0 was used), and read access over SSH to
git.unitoo.it/unitoo/website.The upgrade carries the source's change and keeps this repository's own. Clone both repositories and compare the policy files the source changed:
Result:
differs: AGENTS.md,---,differs: AGENTS.md,same lines. On master the files are the source's atb04e778, on the branch the source's at0593562, and in both onlyAGENTS.mddiffers, by its project sections, while its change is the source's.The fold's checks act on their own repository. In a scratch repository with a linked worktree, as
.worktrees/holds, run master's fold command and then the branch's:Result:
topic commitfrom master's command, where the check reads the folded repository, thenother repofrom the branch's.Checks run on the tip's tree: the source's
scripts/verify-agent-config.sh .gives "agent configuration statically valid"; Verify,make build && .agents/hooks/shellcheck.sh repo, gives "Build complete" and "shell check: 4 files clean";git diff --check masterand Prettier on the changed Markdown are clean. The site has no test suite, so no regression test applies.Not tried: an agent trial of the implementer changes (effort climb, continuation, handoff by path) and of the Codex adapter flags, since it needs billed Claude Code and Codex sessions on a trial repository.
Considerations
Reusing a check's result trusts the work file's record of its inputs; the final Verify on the final tree still runs every time. Continuing an implementer saves a re-read but carries its earlier context into the next attempt, which the source allows only after a check that found no departure. A low documentation finding, that the new evidence-reuse paragraph in
.agents/templates/work.mdis dense, was set aside: the text is the source's, and its fix belongs there.