chore(agents): upgrade Agent Foundry to 0593562 #79
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/azkaban!79
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
This repository's agent policy, skills and subagent briefs come from Agent Foundry, and the
foundry-upgradeskill brings newer source commits in. The source has two new commits since the last upgrade (017383c), both aboutfold-branch. Agents use that skill to fold fixups into a branch before every push, pull request and merge. When the branch has more than one commit, it reruns the every-commit checks on each commit throughgit rebase --exec.Every change here happens in a linked worktree under
.worktrees/<branch>. In a linked worktree,git rebaseexportsGIT_DIRto the--execcommand. Any Git command a check starts in another repository, such as a tool's cache clone or a test fixture, then reads and writes the folded repository instead of its own.What changed
Before,
fold-branchstep 2 ran--exec '<fast checks>'. Now it runs--exec 'unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_COMMON_DIR; <fast checks>', and a new sentence explains why. The checks start at the worktree's top level, so Git still finds the folded repository from there, while Git commands in other repositories act on their own. The variables that pass the sandbox's Git settings (GIT_CONFIG_COUNT,GIT_CONFIG_PARAMETERS) stay set.The
foundry-upgradeRecord now names0593562as the adopted commit. The source's other change, a pin test in its owntests/, stays in the source, as itsUPGRADING.mdsays. No upgrade migration applies.How to verify
Base
0e802fe, branchaaf5ddb; Git 2.53.0. The trial below builds a throwaway repository with a linked worktree and folds a two-commit branch. Each--execcheck writes a marker withgit configin a second repository. It runs the check once in the base form and once in the branch form.Save it as
fold-trial.shand runbash fold-trial.sh /tmp/fold-trial. Expected and observed output:In the base form, the check's
git configlands in the folded project. In the branch form, it lands in the repository the check meant.Checks run on
aaf5ddb:scripts/verify-agent-config.shprintsagent configuration statically valid: state=initialized.make lint && .agents/hooks/shellcheck.sh repo && make testpasses (shell check: 58 files clean). Run inside Claude Code's sandbox,integration/test_env_isolation.shandintegration/test_identity.shfail only because the sandbox blocks the agent stub's Unix socket.prettier --checkpasses on both changed files.Considerations
Today the fix doesn't change this repository's own fold. Its every-commit checks,
make lint && make test, start no Git command. It matters once a check or a tool it starts runs Git in a repository of its own.The upgrade skipped step 5's Codex hook setup in the upgrade worktree, because this branch sees no Codex use and
.codex/hooks.jsonis unchanged.