Repository navigation
feat(samplers): SamplerSurface keyed on the search manifest + autofit inference tier (search-ext A5 consumers) - #523
Merged
Conversation
…t inference tier search-ext A5 consumers (PyAutoLabs/PyAutoHands#310): - promoted tier and the integration gap rule key on the search manifest (python -m autofit search-manifest --json of the PyAutoFit checkout, or --manifest FILE): one <group>/<pkg>/<Name> row per registry entry, and a search is integration-tested when its manifest integration_test anchor exists. The AST parse of autofit/__init__.py stays as the fallback. - PYAUTO_FIT_INFERENCE surface (--fit-inference): the autofit inference repo's mature cells plus one <task>/<Search>: <status> row per search catalogue cell (catalogue/search_catalogue.json); inventory only. - mature cells: _declared_cell accepts run_point_search (runner defaults for omitted keywords, leaf stem as model_type) and the walk reads every declaring leaf under scripts/, so the point-source leaf is no longer lost. - sampler_pipeline reference: stage 3 starts from search/_template/search.py and the registry entry; the lockstep list shrinks to the hand-written surfaces now that rosters are generated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- manifest subprocess timeout 60 s - an explicit --manifest that is unusable is named in the digest; a usable manifest file alone counts as a surface - leaf stem stands in for model_type only for run_point_search; a non-literal declaration keyword makes the leaf unreadable rather than taking a runner default - the manifest source names the checkout (its __version__ is not a release) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task done
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), Brain half. The samplers faculty's SamplerSurface now keys the PyAutoFit tiers on the versioned search manifest, gains the autofit inference mature tier, and reads
run_point_searchleaves. Merge after PyAutoLabs/PyAutoHands#311 (the roster generator this PR's docs point at, branch sha5e4224e).agents/faculties/samplers/_samplers.pypython -m autofit search-manifest --jsonwith the checkout first onPYTHONPATH, or--manifest FILE): one<group>/<pkg>/<Name>row per registry entry, same row shape as before. The AST parse ofautofit/__init__.pystays as the fallback (stack not importable, older schema, unreadable dump); the digest records which source it used (manifestkey).integration_testanchor names exists in the test checkout; the stem-matching rule remains for the AST fallback. Prototype-promotion gaps unchanged.PYAUTO_FIT_INFERENCEmature tier (--fit-inference): the autofit inference repo's declared cells, plus<task>/<Search>: <status>rows fromcatalogue/search_catalogue.jsonand its protocol id / ranking. Inventory only — feeds no gap rule, never ranks across tasks._declared_cellacceptsrun_searchandrun_point_search(runner defaultsnautilus/point_sourcefor omitted keywords, leaf stem asmodel_typeforrun_point_searchonly; a non-literal declaration keyword makes a leaf unreadable rather than defaulted), and the mature walk reads every declaring leaf underscripts/— the lens point-source leafscripts/point_source/simple/baseline.pysits outside*/searches/*/, which is why the lens mature tier was always empty. Live: lens mature tier nownautilus/point_source/baseline; autofit inference 30 cells + 15 catalogue rows.samplers.sh: resolvesPYAUTO_FIT_INFERENCE.agents/faculties/samplers/AGENTS.md: SamplerSurface diagram, gap rule and env vars updated.skills/sampler_pipeline/reference.md: stage 3 starts fromautofit/non_linear/search/_template/search.pyand the registry entry; the lockstep list drops the rosters now generated (autofit_workspacellms.txt/ searches README, assistants' roster blocks) and keeps only hand-written surfaces (pick tables, branches, guides, tutorials, docs, citations).Decisions taken (decide-and-flag)
--manifest FILEoverrides.sys.executable -m autofit ..., 60 s timeout); ~1-2 s on the live tree. Any failure silently degrades to the AST path — the faculty never fails for want of a manifest.mature (autofit_inference searches cells)and... search catalogue)) rather than one merged list, so a leaf with no catalogue verdict and a verdict with no leaf both stay visible.run_point_searchdefaults are hard-coded inRUNNERSfrom the runner's signature (sampler="nautilus",dataset_class="point_source"), not imported, to keep the faculty AST-only over the satellite repos.ws_testanchors, module constants for tier/surface names).Tenant firewall — FIREWALL_ALLOWLIST tokens needed (Mind, main session)
python3 PyAutoMind/scripts/repos_sync.py --check --only "tenant firewall (organ code)"reports exactly two new instance facts; both are the new surface's default checkout name:PyAutoBrain/agents/faculties/samplers/_samplers.py: add"autofit_inference"PyAutoBrain/agents/faculties/samplers/samplers.sh: add"autofit_inference"No other Brain file gains a token (tests use module constants). PyAutoHands#311 adds none.
Heart RED override
Quoted from #310 ("Heart RED override"):
Test plan
pytest -q -n auto tests/— 1263 passed (tests/test_samplers_surface.py15, +5 new: manifest-keyed promoted + gaps, unreadable-manifest AST fallback,run_point_searchleaf outsidesearches/, autofit inference cells + catalogue, absent catalogue).samplers.shover the worktree: manifest source reported, 15 promoted, no gaps, lens mature tier non-empty, autofit inference tiers populated.check_skill_line_counts.sh: no new overage (the four existing OVER rows — create_issue, batch, prm, start_dev — are pre-existing and untouched).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