Skip to content

cortex conductor: collect reads the pull manifest's checkpoints table (PyAutoMind#382) - #331

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/cortex-registration
Sep 2, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/cortex-registration

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Phase 3 of the cortex-birth epic (PyAutoLabs/PyAutoMind#382): cortex collect reads the pull manifest's v1 checkpoints table. Lookup order runs[ident] → runs[stem] → checkpoints[<run dir relative to the pull root>]; bytes: 0 is FAIL; a manifest without schema still reads as the phase-2 shape. The manifest is now written by the projects' own sync CLIs (subhalo_validation main; autolens_profiling PR), so the checkpoint leg stops being UNOBSERVABLE wherever a run is in flight.

Scripts Changed

  • agents/conductors/cortex/_cortex.py — manifest reader + _manifest_run_dir_key
  • agents/conductors/cortex/AGENTS.md, skills/cortex/cortex.md — docs
  • tests/test_cortex_conductor.py (+3)

Test Plan

  • pytest tests -q → 744 passed; tenant firewall OK
  • CI green on this PR

Generated by the PyAutoLabs agent workflow.

… (PyAutoMind#382)

`collect`'s checkpoint leg had one lookup — `runs[<jobid>]` — and one of the
two science projects cannot fill it: its pull carries no job id at all. The
manifest (PyAutoCortex decision 51) therefore always writes a `checkpoints`
table keyed by the run directory relative to the pull root, which is the only
name both sides can say, and `leg_checkpoint` gains that as its third lookup:
`runs[ident]` → `runs[stem]` → `checkpoints[<run dir rel>]`. A `bytes: 0`
entry fails the leg, exactly like a zero `checkpoint_bytes`. A manifest with
no `schema` key is read as the phase-2 shape, so nothing already written
breaks.

`agents/conductors/cortex/AGENTS.md` and `skills/cortex/cortex.md` describe
the new shape. Three tests added; `pytest tests -q` 744 passed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SESCzU1FcwktEAdTZfmf3j
@Jammy2211
Jammy2211 merged commit af73219 into main Sep 2, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/cortex-registration branch September 2, 2026 01:05
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