Skip to content

software-project: model route, snapshot imports, private evaluation, teams of one, fixed-length runs - #19

Merged
Yan Xia (sd983527) merged 9 commits into
microsoft:mainfrom
sd983527:task-pack-decoupling
Nov 3, 2026
Merged

Yan Xia (sd983527) merged 9 commits into
microsoft:mainfrom
sd983527:task-pack-decoupling

Conversation

@sd983527

Copy link
Copy Markdown
Collaborator

Improvements to the software-project pack that came out of a pilot on a private repository: comparing teams of 1, 2, 4 and 8 workers that each build a component from scratch, scored on a held-out test set the teams never see. The pilot's own code, data and results are not part of this PR; everything here is general.

Changes

  • Project model calls ([environment] model_route in the pack): workers and CI get AGENSH_MODEL_BASE, the egress proxy's /raw route, for a project's own model calls. Requests are forwarded unchanged apart from the credential, metered (as project without a worker label) and counted in the token budget.
  • Private final evaluation: [acceptance] final replaces main as the evaluate hook's commands, and private_dir (outside the repository) is mounted read-only at /private for those commands only. With [lifecycle] evaluate_with_services, evaluation runs before the services stop, on the team network, so the final commands can call models through /raw-final, which is labelled final-evaluation and outside the team budget once the workers have stopped.
  • Snapshot imports: [workspace] history = "snapshot" imports the base branch's tree as one commit without history, after an optional sanitize script outside the repository. Export replays the team's net change onto the upstream base as one commit (or writes delivery.patch), and upstream sync is skipped.
  • Teams of one: [team] workers = 1 runs a single worker with the same services; review_paths needs at least two.
  • Fixed-length runs: with [budget] fixed_length = true and no product owner, a worker closing issue Bump vitest from 2.1.9 to 3.2.6 in /tests #1 no longer ends the run; the driver reopens it within 15 seconds and tells the team. In the pilot a 2-worker run ended at 1h50 of 6h this way and needed a host-side workaround.
  • python3 -m agensh.project build builds the agent base, router and board images when a fresh host lacks them; run_isolated.sh can mount extra host directories.
  • Docs: the software-project README, the core README, the smoke test guide (SMOKE_HUMAN, SMOKE_SNAPSHOT) and the acceptance testing guide, which now points at main here.

Merging with #18

main gained #18 (large repository imports) meanwhile; the merge keeps both sides. The evaluate hook combines #18's safe.directory wrapper with the private mount and no longer needs AGENSH_PROFILE (it falls back to the profile file, as #18's unit test calls it); the import keeps #18's NO_LFS clone, and the snapshot replay's upstream clone turns off LFS too; #18's git check also runs in [acceptance] final.

ProgramBench

scripts/render_check.sh against main reports no differences: worker instructions, messages and Compose for every harness and 1–16 workers are unchanged. None of these features applies unless a pack or project enables it.

Verification

  • 81 host-tool tests (new: the model route and budget, snapshot import and replay, private evaluation, teams of one, fixed-length parsing, plus Import large repositories in the software-project pack #18's LFS and ownership tests), router and board tests.
  • Stub-harness smoke, locally and on a shared H100 host: ProgramBench; software-project with a product owner; a sanitized snapshot with replayed delivery and private evaluation (SMOKE_SNAPSHOT=1); a team of one (SMOKE_WORKERS=1); and an interrupted run without an owner that checks the fixed-length reopen.

🤖 Generated with Claude Code

Yan Xia (sd983527) and others added 9 commits November 1, 2026 12:23
For projects whose own code calls models and whose evaluation data must stay
away from the team (the homeedu pilot):

- the egress proxy forwards /raw requests unchanged apart from the credential,
  metered (as `project` without a worker label) and budgeted; packs with
  [environment] model_route give workers and CI AGENSH_MODEL_BASE
- /raw-final carries the final evaluation: labelled final-evaluation and
  outside the team budget once the driver opens it after stopping workers
- [workspace] history = "snapshot" imports the tree as one commit without
  history, after an optional sanitize script outside the repository; export
  replays the team's net change onto the upstream base as one commit (or
  writes delivery.patch), and upstream sync is skipped
- [acceptance] final runs in the evaluate hook with private_dir mounted at
  /private; packs with [lifecycle] evaluate_with_services evaluate before
  the services stop, on the team network
- the smoke covers the model route, private data, budget exemption and a
  sanitized snapshot with replayed delivery (SMOKE_SNAPSHOT)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh host has no agent base, router or board image, so build stopped at
the worker image's FROM. Existing images are reused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A single worker has no peer to approve a reviewed path, so review_paths
now needs at least two workers. The smoke test runs with SMOKE_WORKERS=1:
checks that need a peer (inline peer events, the planning phase,
per-worker models, peer review and its required check) and the budget
warning calibrated for two workers are skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- [budget] fixed_length: without a product owner, a worker closing issue #1
  no longer ends the run; the driver reopens it within 15 seconds and tells
  the team in the issue and the channel. Comparisons across team sizes need
  this (a 2-worker pilot run ended at 1h50 of 6h when a worker closed #1).
  The smoke's no-owner run checks the reopen
- the software-project README documents snapshot imports with a sanitize
  script, [acceptance] final with private_dir at /private, the project model
  route (/raw, /raw-final), evaluate_with_services, teams of one and
  fixed_length; the core README covers the route and fixed-length runs
- the acceptance testing guide points at microsoft/Agensh main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts kept both sides:
- evaluate.py: microsoft#18's safe.directory wrapper (TRUSTED_RUN) with the private
  data mount, now after the checkout mount; the team network's profile name
  falls back to the profile file, so the hook also runs without
  AGENSH_PROFILE (as microsoft#18's unit test calls it)
- prepare.py: the snapshot-aware import message with microsoft#18's NO_LFS clone
- run_smoke.sh: microsoft#18's git check in the evaluation now also runs in
  [acceptance] final, which the evaluate hook uses when it is set
- export.py: the snapshot replay's upstream clone turns off LFS too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge added microsoft#18's git check to [acceptance] final, so the evaluation now
runs four commands; the git check finds its result by command, not position.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sd983527
Yan Xia (sd983527) merged commit 2dae4e1 into microsoft:main Nov 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant