Skip to content

fix: compile drift single-sample caveat; intake census skips epic companions; organ Memory-gate test - #588

Merged
Jammy2211 merged 4 commits into
mainfrom
ccr-f98d2a4d-92r7rv
Nov 5, 2026
Merged

Jammy2211 merged 4 commits into
mainfrom
ccr-f98d2a4d-92r7rv

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Three small changes. They share a branch because this session has one branch per repo, and each is its own commit.

1. Profiling compile drift is reported as single-sample (ed0782c)

Mind prompt: draft/bug/pyautobrain/profiling_compile_drift_point_vs_point.md (follow-up to autolens_profiling#362).

Decision: option (a), accepted by the human on 2026-11-05.

  • The 2x COMPILE_DRIFT_RATIO band and the 1 s floor stay as a gross flag.
  • Each drifted row from ingest --axis compile now carries:
    • comparison: single-sample or repeat-summarised
    • pinned_repeats and observed_repeats
    • caveat
  • triage --axis compile passes comparison and caveat through to its output.

Caveat text (SINGLE_SAMPLE_CAVEAT):

single-sample endpoint(s): a gross 2x-band flag from one pinned timing vs one observed timing, not a measured change

Repeats. Repeat counts come from an optional compile_repeats field, mirroring P7's single_jit_repeats. A row counts as repeat-summarised only when both endpoints have at least 2. No producer writes compile_repeats yet, so every real drift reports single-sample for now. A possible follow-up is to have autolens_profiling's jax_compile tooling write it. Only compile cost is compared.

Tests:

  • test_compile_drift_is_reported_as_a_single_sample_comparison: synthetic witness. 4.0 s → 10.0 s drifts with the caveat; 4.0 s → 6.0 s does not.
  • test_compile_drift_reports_repeat_counts_when_the_data_carries_them

2. Intake: census() skips epic companion files (new commit on this branch)

census() collected every .md file under draft/<work-type>/. That made each epic's companion files count as pickable backlog prompts:

  • <name>_epic_report.md
  • <name>_epic_surveys/
  • <name>_epic_reviews/

On the 2026-11-05 dashboard, 29 of these appeared with "Use the start-dev skill", and they made up most of the 31 hygiene flags. They stay beside their epic, as the epic format requires. census() now skips them via is_epic_companion().

Effect on the live Mind dashboard (all changes, including the draft sweep in PyAutoMind#539): 286 → 239 prompts, 31 → 5 hygiene flags.

Tests:

  • test_epic_reports_surveys_and_reviews_are_not_backlog_work
  • test_is_epic_companion_matches_only_the_epic_format_names

3. Intake: organ-target Memory: gate test (906b5dd)

The gate itself already shipped (557f8e0 / #561); this commit only adds a test. test_organ_target_spellings_get_no_memory_line checks that organ targets get no Memory: line however they are spelled: pyautobrain, @PyAutoBrain, PYAUTOMIND, @PyAutoBrain/agents, PyAutoScientist. A library target still gets one.

Validation

  • python3 -m pytest tests -q -n auto: 1578 passed, 1 skipped

Tier: judge, so this needs a human /prm. Merge order: merge this before PyAutoMind#539. Otherwise dashboard_refresh on Mind main will re-render the dashboard without the epic-companion filter.

🤖 Generated with Claude Code

https://claude.ai/code/session_016nhQ8MZyNga1wamBmFdfAK

The `_with_memory` organ gate itself already shipped on main (557f8e0,
ba38413): the organ set comes from PyAutoMind/repos.yaml (`category: organ`
via _sizing.ORGANISM_REPOS, plus any repo whose body-map path sits under
organs/, which covers PyAutoScientist), and `Target:` is normalised through
_sizing.normalise_repo (lowercased, leading @ stripped). This adds the
missing witness for the lowercase / @-mention spellings and for
PyAutoScientist, and confirms library targets spelled loosely still cite.

Closes the re-scoped item 2 of
draft/bug/pyautobrain/intake_classify_file_drops_declared_epic_phase.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8MZyNga1wamBmFdfAK
Compile drift compared one pinned warm timing against one observed warm
timing (point-vs-point), the same limitation autolens_profiling's
timing-noise audit (#362) found in its P7 release badge.

Decision taken by the agent (decide-and-flag; the human may overrule):
option (a) of draft/bug/pyautobrain/profiling_compile_drift_point_vs_point.md.
The generous 2x COMPILE_DRIFT_RATIO band (plus the 1s floor) stays as a
gross flag, and every drifted row now says it is a single-sample
comparison, mirroring how P7's drifted/improved carry that caveat.
Options (b) require-repeats and (c) leave-as-is were not taken.

- ingest --axis compile: each drifted row carries `comparison`
  (single-sample | repeat-summarised), `pinned_repeats`, `observed_repeats`
  and `caveat`. Repeat counts are read from `compile_repeats` (the compile
  analogue of P7's `single_jit_repeats`) only when the data carries them;
  none is inferred. Both endpoints need >= 2 to count as repeat-summarised.
- The policy text and the text render state the caveat; triage --axis
  compile passes it through to its findings.
- Compile cost stays separate: the comparison reads compile_s only, and the
  policy says execution cost is the runtime axis.
- Synthetic witness: two single-sample endpoints 2.5x apart drift with the
  caveat; 1.5x stays in band with no drift; repeat counts are reported when
  present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8MZyNga1wamBmFdfAK
census() walked every .md under draft/<work-type>/, so an epic's companions
(<name>_epic_report.md, <name>_epic_surveys/, <name>_epic_reviews/) were listed
as pickable backlog work — 29 of them on the 2026-11-05 dashboard, each offered
with 'Use the start-dev skill'. They stay beside the epic per the epic format;
census() now skips them via is_epic_companion().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8MZyNga1wamBmFdfAK
@Jammy2211 Jammy2211 changed the title fix(profiling): flag compile drift as single-sample; pin intake organ-target Memory gate fix: compile drift single-sample caveat; intake census skips epic companions; organ Memory-gate test Nov 5, 2026
… naming it

The tenant firewall rejects instance facts in test files; the organ-spelling
test named one literally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8MZyNga1wamBmFdfAK
@Jammy2211
Jammy2211 merged commit e822697 into main Nov 5, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the ccr-f98d2a4d-92r7rv branch November 5, 2026 21:25
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