Repository navigation
feat(hands): generate search rosters from the installed autofit search manifest (search-ext A5 consumers) - #311
Merged
Conversation
…h manifest One generator for every search roster (search-ext A5 consumers, #310): autohands/search_roster.py renders fenced search-roster blocks (style=list|table, indent, link) stamped <!-- search-manifest@1 autofit <version> --> from the manifest printed by the installed autofit; regenerate_search_roster / check_search_roster are the CLI verbs. --check fails on a changed roster body, notes a stamp-only difference (unless --strict-version), resolves manifest example / integration_test anchors under --workspace-root, checks that every search = af.<Name>(...) in --names-in scripts is a manifest search, and --against-source reports source-vs-installed drift without failing. regenerate_navigator --roster rewrites only the roster block in a curated llms.txt / scripts READMEs. check_search_memory --manifest guards exactly the manifest's MultiStart* searches (prefix rule stays the stdlib fallback). navigator_check.yml gains a search_roster job: pip install autofit, dump the manifest, run both checks against it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An assistant's wiki-currency job clones source repos under sources/; those are other repositories, so --root . must not check (or rewrite) their blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 15, 2026
- installed mode drops PYTHONPATH from the manifest subprocess, so a dev shell with a source checkout on it cannot pass source main off as the installed release (hint printed on failure); --against-source keeps it - CRLF files keep CRLF; markers inside code fences are documentation; unknown block options are rejected - link= targets are made relative to the file holding the block - named searches: target must be search / search_<x> (settings_search and grid_search are not searches); annotated, attribute and search= keyword forms are read - check_search_memory --manifest unites manifest names with the prefix rule - navigator imports search_roster package-relative first - navigator_check: caller repo from GITHUB_REPOSITORY, integration-test workspace branch-matched, regenerate hint in the job summary on drift Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 15, 2026
python -m puts the working directory first on sys.path, so running the tool from inside a source checkout made source main pose as the installed release (re-review finding). --against-source is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Search-extensibility A5 (consumers), the generator half: one generator in PyAutoHands renders every search roster from the versioned
search-manifest@1of the installedautofitrelease, so a new search reaches every roster by a regenerate, not by hand edits across nine repos.autohands/search_roster.py(library, stdlib only, never importsautofit): renders fenced blocksregenerate_search_roster.py/check_search_roster.py(newautohandsverbs):--checkre-renders against the installed manifest — (a) roster blocks, (b)--workspace-root DIR: every manifestexample/integration_testanchor resolves inDIR/<repo>(with#Section→__Section__), (c)--names-in GLOB: everysearch = af.<Name>(...)names a manifest search;--against-source PATHreports source-checkout drift and never fails.regenerate_navigator.py --roster(navigatorwrite_roster): rewrites only the roster block in the curatedllms.txt/scripts/**/README.md.check_search_memory.py --manifest: guards the manifest'sMultiStart*searches united with the prefix rule (a source-only sibling keeps its guard); without--manifestthe prefix rule alone runs, as in the dependency-free CI leg.PYTHONPATHand runs from a neutral directory (--against-source PATHis the explicit way to read one). Blocks: CRLF preserved, markers in code fences ignored, unknown options rejected,link=relative to the file holding the block..github/workflows/navigator_check.yml: newsearch_rosterjob —pip install autofit(the released, pinned version, nevermain), dump the manifest once, run (a)+(b)+(c) and the manifest-mode memory check. The workspace is checked out under its repository name so anchors resolve; forproject: autofitthe integration-test workspace is sparse-checked-out beside it.Consumers (follow-up PRs, merge after this one): PyAutoBrain, autofit_workspace, autofit/autolens/autogalaxy_assistant, autolens/autogalaxy_workspace, PyAutoMemory.
Closes #310
Decisions taken (decide-and-flag)
<!-- search-manifest@1 autofit <version> -->; it needed begin/end fences too, so the stamp is the first line inside<!-- search-roster:begin ... -->/<!-- search-roster:end -->(therepos_sync:begin/endpattern), with rendering options on the begin marker.--strict-version). A body that differs from the installed manifest fails; an identical body under a different version stamp passes with a note. Otherwise everyautofitrelease would redden every consumer even when no search changed. The witness ("regenerates byte-identically against the installed version") holds whenever the stamp matches the installed release, which is what the consumer PRs show.autofit 2026.10.12.1(the current PyPI release,pip install autofitinto a clean py3.12 venv). The worktree's importableautofitis the PyAutoFit source checkout, whose__version__string is the stale2026.8.17.1; its manifest roster is identical to the release's (onlytest_mode_budgetof two searches differs, which no roster renders), so generating from the source would have stamped a version that was never installed.--against-sourcereports that difference.<…search…> = af.<Name>(...)calls via AST, not prose mentions — the hand-written guides keep their prose, and a docstring naming a retired search is not a hard failure.repos_sync.py --check --only "tenant firewall (organ code)"is clean for every PyAutoHands file.Heart RED override
Quoted from #310 ("Heart RED override"):
Test plan
pytest tests/ -q— 501 passed (newtests/test_search_roster.py, 22 cases;test_check_search_memory.py+3;test_autohands_registry.pycovers the two new verbs).--only "tenant firewall (organ code)": no PyAutoHands finding.autofit 2026.10.12.1venv):check_search_roster.py --root autofit_workspace --workspace-root <wt> --names-in ...→ 24/24 anchors resolve, all named searches known; autolens/autogalaxyscripts/guides/modeling/searches.py→ clean.bin/autohands helplistsregenerate_search_roster/check_search_roster;help regenerate_navigatordocuments--roster.search_rosterjob: first runs on workspace PRs after this merges (callers use@main).Note: the workspaces call
navigator_check.yml@main, so the newsearch_rosterjob first runs on workspace PRs after this PR merges. The consumer PRs demonstrate--checklocally against the installed release.Ship gate
test_search_roster.py28 after the last fix); PyAutoBrain full suite 1265 passed (one test,test_grouped_organ_consumers, fails only whenactivate.shexportsPYAUTO_MIND, and passes in a clean env; unrelated to this diff); the doc repos have no test dir (n/a); PyAutoMemorymake validategreensmoke_tests.txtchanged. al/agguides/modeling/searches.pyis a docstring-only edit (py_compileclean, not smoke-listed). The workspace smoke CI on these PRs is the record.e720263and Braindb0916b. Round 2 confirmed 12/13 resolved, with one partial: the installed-mode manifest could still read a source checkout via the cwd. That is fixed in Hands5e4224ewith a test. No third round was run (decide-and-flag).--checkregenerates byte-identically against the installedautofit 2026.10.12.1in every consumer (output shown in each consumer PR). ✓ navigator--rosterwrites the curatedllms.txtblock. ✓ af/al/ag assistant blocks come from the same manifest. ✓ Brain promoted tier and gaps are keyed by manifest name andintegration_test. ✓ The workspace CIsearch_rosterjob checks anchors against the installed release, not main; it goes live once Hands merges. ✓ al/ag guides are domain advice plus a matrix link. ✗ Capability matrix → B3 catalogue card link: this is in PyAutoFitdocs/_generate_searches.py, which is not in this task's repos.FIREWALL_ALLOWLISTto add"autofit_inference"foragents/faculties/samplers/_samplers.pyandsamplers.sh. Until then the Brain PR's firewall leg is red; its pytest leg is green.🤖 Generated with Claude Code