Repository navigation
fix: compile drift single-sample caveat; intake census skips epic companions; organ Memory-gate test - #588
Merged
Conversation
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
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
COMPILE_DRIFT_RATIOband and the 1 s floor stay as a gross flag.ingest --axis compilenow carries:comparison:single-sampleorrepeat-summarisedpinned_repeatsandobserved_repeatscaveattriage --axis compilepassescomparisonandcaveatthrough to its output.Caveat text (
SINGLE_SAMPLE_CAVEAT):Repeats. Repeat counts come from an optional
compile_repeatsfield, mirroring P7'ssingle_jit_repeats. A row counts as repeat-summarised only when both endpoints have at least 2. No producer writescompile_repeatsyet, so every real drift reports single-sample for now. A possible follow-up is to have autolens_profiling'sjax_compiletooling 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_them2. Intake:
census()skips epic companion files (new commit on this branch)census()collected every.mdfile underdraft/<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 viais_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_worktest_is_epic_companion_matches_only_the_epic_format_names3. 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_linechecks that organ targets get noMemory: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 skippedTier: judge, so this needs a human /prm. Merge order: merge this before PyAutoMind#539. Otherwise
dashboard_refreshon Mind main will re-render the dashboard without the epic-companion filter.🤖 Generated with Claude Code
https://claude.ai/code/session_016nhQ8MZyNga1wamBmFdfAK