Skip to content

Add CoEvoSkills: executable Skill adapters and an OfficeQA example - #64

Draft
illusoryw wants to merge 6 commits into
Infini-AI-Lab:mainfrom
illusoryw:coevoskills1
Draft

illusoryw wants to merge 6 commits into
Infini-AI-Lab:mainfrom
illusoryw:coevoskills1

Conversation

@illusoryw

@illusoryw illusoryw commented Nov 2, 2026 •

Copy link
Copy Markdown

Change

Integrate CoEvoSkills as an executable skill adapter for OfficeQA. The pinned Generator and independent Verifier work on one training question at a time. The fresh acting run checks a proposed skill on that question. After training, the acting agent receives the accumulated skill bank and solves held-out questions with that bank frozen. This experiment measures cross-question transfer. The paper measures task-local skill adaptation on SkillsBench.

Component Pinned upstream Hermit integration
Learned object A task-specific skill package The installed adapter contains the seed instructions and the retained packages under skills/<task>-evo-<name>/. The learner writes the skills.
Learning schedule Several dependent generation and verification rounds for one task The long-running loop runs once per training question inside an Evolver step. The ordinary Trainer rollouts before the step are charged to the run. The method reads their task IDs and starts independent workers.
Verification Surrogate tests and a separate ground-truth check The worker calls the Trainer's model tool for the upstream roles and uses run_agent for a fresh OfficeQA execution. The prepared hidden test grades the output. A trusted acting-side collector checks the deployed files and supplies a receipt in the archived log.
Selection Upstream selects a task-local snapshot A transport adapter carries the selected manifest, scripts and references, including binary content and executable permissions. keep: all retains structurally valid packages even after an unsuccessful verdict. keep: passed requires upstream's positive verdict. There is no validation-set selection.
Model and host Authors' configured role models and benchmark executors Both roles use the configured model. The Luna recipe runs a Codex session per completion at medium effort. Its endpoint records temperature and the requested output cap as unapplied. The API recipe forwards the role settings.

Commit 4380d4bff673dd6e1d58e5babeb2aaa0fe527119 pins CoEvoSkills. The method adds a template, an Evolver, dependency registration, OfficeQA preparation and collection hooks, docs and a CI test group. The shared Trainer and evaluator APIs remain as provided by Hermit. The method page documents the model, acting, learning and transport boundaries. Upstream source

flowchart LR
    A[Training question and seed] --> G[Generate or revise skill]
    G --> V[Run surrogate tests]
    V -->|diagnostics| G
    V -->|pass| P[Fresh acting run and private test]
    P -->|retry| G
    P --> S[Upstream snapshot selection]
    S --> B[Check package and update skill bank]
    B --> E[Freeze bank and evaluate on held-out questions]
Loading

Validation

The historical 110/172 result belongs to an earlier implementation with a different executor, image and concurrency. Its aggregate table is available at aa831fc. This revision has no measured OfficeQA accuracy, final benchmark adapter or per-question evaluation records. The intended dataset split is 50 training, 24 reserved validation and 172 test questions. The recipe leaves the 24 validation questions out of training. Planned full-run concurrency is 16 for Luna and 4 for Flash. Compare no adapter, the common seed and the frozen final bank on the same test IDs. Historical run table

  • The original PR head 06f2911 passed its 42 method tests with the pinned upstream dependencies.
  • Reviewed candidate c394c5b passed all 60 method tests and 10 selection checks. After integrating main at bf7a839, the published head 92cbc05 passed all 94 tests across CoEvoSkills, test selection and ASPIRE (two Harbor deprecation warnings). The tests include the Trainer's HTTP tool, actual deployment and archived logs, package rollback and the pinned upstream transport with a scripted model or environment.
  • A separate check used the installed Harbor and an actual network-disabled Docker container with the local officeqa-codex:0.164.0 image. A nested script ran, and a binary reference and executable permissions survived both the oracle snapshot and final export.
  • Real OfficeQA preparation staged all 50 training packages with --no-build and generated the common seed. Each recipe loaded, and both the template and the seed passed structural checks. On this macOS host, hermit check --no-probe reported the missing required Linux bubblewrap sandbox. The Flash recipes also reported an unset FIREWORKS_API_KEY.
  • The macOS full-suite run during the review, before the ASPIRE merge, reported 1,302 passed, 106 skipped and 14 failed. All 14 failing test IDs also failed when rerun on the unmodified 6e421a4 base in the same environment. The 94-test run above covers the published merge.
  • The repository's offline teaching run scored 1.0 on its two final test tasks. The final published head built 67 documentation pages with warnings treated as errors. The link check found zero unresolved local targets across 7,191 link and asset references.

The method documentation and OfficeQA run instructions correspond to the published commit.

Review

  • Tests and documentation cover the reviewed method changes. Local runtime checks cover ordinary and failing paths, including preservation of previous packages after an unsuccessful update.
  • Runnable method, template and recipe names match the candidate. The configured collector supplies a receipt before Hermit archives the log. A receipt identifies the probed candidate. A later upstream export has its own hashes.
  • Shared examples and this report contain no private OfficeQA answers or credentials. The trusted Docker controller passes a limited set of environment settings to workers. It retains access to the host filesystem and Docker daemon. Generated task commands run in a separate container without network access.
  • Independent review of c394c5b covered the general, method and test checklists, the original PR, the pinned upstream code and the fixes. The post-push audit verified that all 51 changed files on GitHub match the local published commit and that both the original PR and current base are its ancestors. Git tree: 273edfc35581f0465263043b2ad4f8a393140ea6.
  • GitHub Actions for the published head reports action_required. The targeted results above were run locally with pinned dependencies. The default CI does not provision the optional pinned upstream CoEvoSkills checkout. Tests workflow run
  • Real-model smoke and first frozen OfficeQA evaluation on the candidate. This PR is a draft until the first measured evaluation, as required by the repository’s reproduction guide. Before reporting an accuracy, link the exact code/config, image IDs, final adapter, per-task records, execution failures and matched baselines. Inspect at least one trajectory for actual skill use.

@illusoryw
illusoryw force-pushed the coevoskills1 branch 6 times, most recently from 5c8ef79 to 98b3e36 Compare November 3, 2026 04:03
illusoryw and others added 2 commits November 3, 2026 19:09
Rework the integration so that it is an adapter template and an Evolver on the standard `hermit train` /
`hermit eval` flow, with no custom launcher and no change to shared framework behavior:

- Rename to CoEvoSkills Adapter (the acting agent is fixed): template `coevoskills-adapter@1.0`, Evolver
  `coevoskills_adapter`, example examples/officeqa/coevoskills_adapter/.
- Remove launch.py, parallel.py, compare.py, runtime.py, gateway.py, docker.py (the docker PATH shim),
  transport.py, integrity.py, the template's own retriever and the content pins of core files.
- One step runs the upstream loop once per training question in worker processes (`workers` at a time);
  each exported package becomes a skill of the adapter (`skills/<task>-evo-<name>/`, the framework's
  `skills` export, Codex's native skills), installed all or nothing, replacing only that question's
  skills (state/installed.json). `keep: all|passed` uses upstream's own final verdict; a loop that ends in
  an error but leaves a valid best snapshot is installed with the error recorded.
- Upstream model calls go through the Trainer's `llm` tool (temperature and output cap passed; retries
  are the shared client's); the oracle uses `check_spec` and `run_agent`; task containers have no network;
  each worker's containers and image are removed after it.
- Task-specific parts live in the example: Harbor task packages with upstream's structure (the
  instruction's output contract and the task description as background document, nothing added),
  the `deliver` hook and `path_map`. setup() checks the run's llm, Harbor at upstream's pinned commit,
  the upstream checkout, the packages and the hook before the first rollout.
- Configs on the column's Codex container harness: GLM 5.3 Flash (run, smoke) and GPT-5.6-Luna (run,
  smoke). The earlier OfficeQA result, from a different harness, is withdrawn until it is rerun.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
haizhongzheng and others added 4 commits November 3, 2026 22:51
…rtable template

- The oracle checks after each acting run that the candidate ran as it was (integrity.py): the deployed
  adapter copy with the framework's deployment check (adapter_files) and the host's native skills file
  by file, bytecode caches aside. Upstream keeps the Skill immutable during the run; a change makes the
  check an error instead of a pass.
- Each worker has its own clock (worker_timeout_s): upstream's loop clock cannot interrupt a model call
  in progress, since the call blocks its event loop.
- Every Docker cleanup command has a clock; a failure is recorded on the question instead of holding the
  step or the Trainer's cancel.
- The template no longer declares plugin-portable: false (it has no context tool), so `hermit deploy`
  and convert accept its adapters.
- The answer hand-over to the hidden test goes through Harbor's upload and fails loudly; Windows line
  endings in SKILL.md; ids with a dot; keep: passed with nothing passed is done; an install is all or
  nothing; verify() checks untracked files and Harbor's pinned commit; Harbor cleanup failures warn.
- Task packages follow upstream's structure: the instruction's output contract and the task description
  as background document, nothing added. The Luna config runs sixteen questions per step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of PR Infini-AI-Lab#64 at 06f2911. Carry the task-local loop through Hermit's archived rollout logs, preserve the selected skill contents, update the OfficeQA recipes and separate their unmeasured results from the historical harness.
@iamziyuzhao
iamziyuzhao marked this pull request as draft November 10, 2026 01:34

This branch has not been deployed

No deployments
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.

3 participants