Skip to content

feat(freeze): frozen day_zero snapshot of the lens baseline - #85

Merged
Jammy2211 merged 2 commits into
mainfrom
claude/awesome-rubin-ejb234
Nov 1, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
claude/awesome-rubin-ejb234

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Part of PyAutoLabs/autolens_profiling#499 (PR 2 of 2). Likelihood lifecycle phase 3, day-zero write 2/4.

Heart RED override: invoked by the human on 2026-11-01 (development only). Tier: judge, so this merges only by the human's /prm.

The snapshot

snapshots/day_zero/lens.json was frozen with bin/pyauto-pulse freeze --instance lens --label day_zero --commit e4811a25ddfbc087a66f561fe8b2b41a707885aa, which is autolens_profiling main after PyAutoLabs/autolens_profiling#500 merged.

It holds tag 2026.10.25.1: 480 records over 116 cells, with all 39 designation decision_ids resolved (about 2.9 MB). freeze.verify reports it intact.

What changes

  • pulse/freeze.py and pyauto-pulse freeze --instance K --label day_zero --commit <sha>. The command:

    • reads the instance's profiling-summary@3 catalogue at that commit;
    • validates it, resolving every decision id;
    • keeps the records the producer stamped day_zero (there must be exactly one tag);
    • writes snapshots/<label>/<instance>.json: those records, planned_cells and a manifest (commit, tag, frozen_at, the source catalogue's sha256 and record count, counts, decision_ids, records_sha256).

    A frozen snapshot is never rewritten; a new baseline needs a new label.

  • pyauto-pulse check verifies every frozen snapshot offline: the digest, the counts, every record current on the tag, and every decision_id resolved. It does nothing when no frozen snapshot exists.

  • Catalogue v3 rule: a non-null day_zero is allowed only on a current record. This is additive; no version bump.

  • REFERENCE.md and AGENTS.md document the frozen snapshot alongside the rolling snapshots/<instance>.json.

Checks run locally

  • pytest tests: 377 passed, including 7 new tests/test_freeze.py tests: the write, the overwrite refusal, tamper detection, an unresolved decision, no tag or two tags, an invalid catalogue, the day_zero ⇒ current rule, and the CLI freeze.
  • ruff check and ruff format --check: clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_016nhQ8Q82zpcg2VRk8i7QvL

…ords

Likelihood lifecycle phase 3, day-zero write 2/4 (PyAutoLabs/autolens_profiling#499).

- pulse/freeze.py + `pyauto-pulse freeze --instance K --label day_zero --commit <sha>`:
  reads the instance's profiling-summary@3 catalogue at one commit, validates it (decision
  ids resolved), keeps the records the producer stamped day_zero (exactly one tag) with
  planned_cells and a manifest (commit, tag, frozen_at, source sha256 + record count, counts,
  decision_ids, records_sha256), and writes snapshots/<label>/<instance>.json once; an
  existing frozen snapshot is never rewritten.
- `pyauto-pulse check` verifies every frozen snapshot offline: digest, counts, every record
  current on the tag, every decision_id resolved.
- catalogue v3: a non-null day_zero is allowed only on a current record (additive).
- REFERENCE.md and AGENTS.md document the frozen snapshot beside the rolling one.

The day_zero snapshot itself is frozen from autolens_profiling main once
PyAutoLabs/autolens_profiling#500 merges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8Q82zpcg2VRk8i7QvL
…iling e4811a2)

`bin/pyauto-pulse freeze --instance lens --label day_zero --commit e4811a25ddfb…` after
PyAutoLabs/autolens_profiling#500 merged: 480 stamped records over 116 cells, tag
2026.10.25.1, all 39 designation decision_ids resolved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8Q82zpcg2VRk8i7QvL
@Jammy2211
Jammy2211 marked this pull request as ready for review November 1, 2026 11:17
@Jammy2211
Jammy2211 merged commit 60d5a96 into main Nov 1, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/awesome-rubin-ejb234 branch November 1, 2026 11:19
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.

2 participants