docs(agents): upgrade agent-foundry to 0593562 #50
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/castrum!50
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
castrum's coding agents (Claude Code, Codex, OpenCode) work from a
policy adopted from
Agent Foundry:
AGENTS.md, the skills under.agents/skills/, the subagent briefs andtheir adapters, and the templates of a work folder. The
foundry-upgradeskill brings in the source's later commits; the lastupgrade stopped at
b04e778.Since then the source fixed a fold that could check the wrong
repository. In a linked worktree, where every castrum change happens,
git rebaseexportsGIT_DIRto its--execchecks, so a check thatruns Git, or starts a tool that does, acts on the worktree's admin
directory instead of its own repository. The source also stopped
briefing an implementer from scratch at every attempt, and set when a
passing check's result may be reused instead of run again.
What changed
Implementers get the failed attempt from which they stop, run one
effort level higher after an attempt of their own fails, and, in Claude
Code and Codex, are continued with their context rather than briefed
anew; their report has a fixed order. A handoff is saved in the work
folder and sent as one line naming that file.
The work template's Status says when passing evidence may be reused.
verify-executionpasses the every-commit checks before the reviewersand still runs Verify at the end,
settle-findingspasses them beforea later round, and
prove-on-mainmay keep its proof worktree, whichthe calling phase then owns.
fold-branchunsetsGIT_DIR,GIT_WORK_TREE,GIT_INDEX_FILEandGIT_COMMON_DIRbefore the fast checks.deliverfolds, prepares thepull request text, pushes, and only then opens the pull request, and
land.mdnames both errors of a first push under Claude Code'ssandbox. The pull request form is rewritten, in
.agents/templates/pull-request.mdand in.forgejo/pull_request_template.md. The Codex reviewers turn memoriesoff, and the Codex implementers turn off apps, plugins, memories and
bundled skills.
AGENTS.mdgains one routing sentence for a workflowwhose change is also a trim.
The
foundry-upgradeRecord names0593562. Every file mergedcleanly, and no migration of the source's
UPGRADING.mdapplies.How to verify
Prerequisites: Git 2.48 or later, a castrum checkout, and a clone of the
source at the chosen commit. Base
mainis3553a82; branchchore/foundry-upgrade-0593562is7fe4aeb. From the castrum checkout:The source's validator accepts the branch:
Expected and observed:
agent configuration statically valid: state=initialized, exit 0.The merge is faithful. Every file the branch changes equals the
source's at the chosen commit, except the Record and
AGENTS.md,whose one hunk is the source's own:
Expected and observed:
differs: .agents/skills/foundry-upgrade/SKILL.md,differs: AGENTS.md, thensame hunk.Changed behavior,
fold-branch: in a linked worktree, the base's--execchecks see the worktree'sGIT_DIR, and the branch's clearit. In a throwaway repository:
Expected and observed: the first prints
GIT_DIR=<tmp>/demo/.git/worktrees/topic, the secondGIT_DIR=unset.Untested, not run because it needs a work file approved for
execution: implementer continuation. In a work folder whose T1 and T2
are both subagent tasks at effort medium, prompt Claude Code with
execute the work in .plans/<folder>. Expected: once T1's reportpasses the main session's check, T2 goes to the same implementer
through SendMessage, as one line naming
handoffs/T2-implementer-medium.md, rather than to a new one.Checks on
7fe4aeb:make checkpassed;make testdid not run,because podman is missing in the environment that made the change.
change-reviewer,security-revieweranddocument-reviewerfound nodefect the merge brings.
Considerations
tag_propagationgate have not run on this branch.The diff touches only agent policy, so their results cannot change.
unchanged, such as
implementer.mdrestating the work template'sdefinition of an attempt, and
prove-on-mainleaving open how a keptproof worktree is restored. They are left to the source, so the next
merge stays clean.
policy allows it only after the main session's check of the last
result finds no departure.