From 6ea15719854f19a3c9a8f2d0c828fbfdfbc8e3cc Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 1 Oct 2026 20:55:47 +0100 Subject: [PATCH 1/2] research: evaluate ecosystem role-routing checklist --- docs/research/ecosystem_routing_trial.md | 154 ++++++++ .../ecosystem_routing_trial/answer_key.json | 157 ++++++++ .../ecosystem_routing_trial/assessment.json | 352 ++++++++++++++++++ .../baseline_prompt.txt | 95 +++++ .../baseline_response.json | 100 +++++ .../baseline_response.txt | 1 + research/ecosystem_routing_trial/cases.json | 38 ++ .../checklist_prompt.txt | 98 +++++ .../checklist_response.json | 99 +++++ .../checklist_response.txt | 1 + .../ecosystem_routing_trial/protocol.json | 74 ++++ research/ecosystem_routing_trial/runtime.json | 29 ++ research/ecosystem_routing_trial/sources.json | 50 +++ research/ecosystem_routing_trial/system.txt | 1 + 14 files changed, 1249 insertions(+) create mode 100644 docs/research/ecosystem_routing_trial.md create mode 100644 research/ecosystem_routing_trial/answer_key.json create mode 100644 research/ecosystem_routing_trial/assessment.json create mode 100644 research/ecosystem_routing_trial/baseline_prompt.txt create mode 100644 research/ecosystem_routing_trial/baseline_response.json create mode 100644 research/ecosystem_routing_trial/baseline_response.txt create mode 100644 research/ecosystem_routing_trial/cases.json create mode 100644 research/ecosystem_routing_trial/checklist_prompt.txt create mode 100644 research/ecosystem_routing_trial/checklist_response.json create mode 100644 research/ecosystem_routing_trial/checklist_response.txt create mode 100644 research/ecosystem_routing_trial/protocol.json create mode 100644 research/ecosystem_routing_trial/runtime.json create mode 100644 research/ecosystem_routing_trial/sources.json create mode 100644 research/ecosystem_routing_trial/system.txt diff --git a/docs/research/ecosystem_routing_trial.md b/docs/research/ecosystem_routing_trial.md new file mode 100644 index 00000000..e79effa9 --- /dev/null +++ b/docs/research/ecosystem_routing_trial.md @@ -0,0 +1,154 @@ +--- +orphan: true +--- + +# Trial of the ecosystem role-routing checklist + +**Exploratory research — 2026-10-01, [Brain #444](https://github.com/PyAutoLabs/PyAutoBrain/issues/444).** +Retain current guidance; do not mandate the additional checklist on this evidence. +Both conditions identified the correct change repository (including two cases +requiring no code change) in all six cases. The checklist condition confused +repository ownership with decision responsibility in three explicit answer fields, +although its action routes remained appropriate. This is a small written-answer +comparison, not evidence that the checklist causes poorer operational decisions. + +## Question and design + +The [earlier proposal](ecosystem_levels.md) suggested distinguishing the evidence +producer, decision owner and change owner. Responsibility terminology was then +adopted in [PR #443](https://github.com/PyAutoLabs/PyAutoBrain/pull/443). +This trial asks whether a further explicit checklist adds value **beyond that +post-adoption guidance**, not whether the terminology itself was useful. + +Six hypothetical cases cover visualization, profiling and inference. Each contains +enough evidence to distinguish a project defect, organ defect, library defect or +unsupported request for a conclusion. The baseline receives current role and +workflow excerpts. The treatment receives the identical packet plus a five-step +checklist: producer, decision owner, justified change owner, existing action door +and boundaries, then minimum follow-up context. Both receive identical structured +answer fields and the same case order. That shared scaffold already encourages +role separation and may create a ceiling effect. + +The protocol, answer key, cases, sources and prompts were frozen before execution; +the hashes were [posted to the issue](https://github.com/PyAutoLabs/PyAutoBrain/issues/444#issuecomment-5939209156). +There was one fresh CLI process per condition, baseline first, with no retries +chosen by answer quality. Both resolved `fable` to `claude-fable-5-1`, high effort, +Claude Code 2.1.287, one turn each, no tools or MCP access and no session persistence. +The answer key was not supplied. The CLI's common ambient workspace instructions +may still influence both sessions; these were not fully sterile model contexts. +Execution occurred from 19:43:11 to 19:44:48 UTC on 2026-10-01. + +## Paired results + +The frozen rubric awards one point each for evidence producer, decision owner, +change owner, existing action door, boundary and relevant bounded follow-up context. +Equivalent doors count. At grading time, the author interpreted context as a +relevant bounded next read or evidence request, not an exhaustive implementation +checklist: supplied policy need not be requested again, and missing later +callers/tests/instructions do not automatically fail. The protocol did not +predeclare those leniencies. Scores are author judgments under that interpretation, +with evidence quotations retained for independent inspection. + +| Case | Distinction | Correct change target | Baseline | Checklist | +|---|---|---|---:|---:| +| V1 | Project generator writes wrong figure path; Eyes faithfully reads it | autolens_visualization | 6/6 | 5/6 | +| V2 | Correct project artifacts; organ duplicates a directory in the URL | PyAutoEyes | 6/6 | 5/6 | +| P1 | Unmatched timing axis, hardware and precision | No patch or re-pin justified | 6/6 | 6/6 | +| P2 | Matched reproducer and bisection isolate reusable inversion primitive | PyAutoArray | 6/6 | 6/6 | +| I1 | One faster sampler run lacks convergence, repeats and sample review | No default change or inferred lesson justified | 6/6 | 6/6 | +| I2 | Project summary drops setup time; sampler's raw logs are correct | autolens_inference | 6/6 | 5/6 | +| **Total** | **Six dimensions per case** | **Both: 6/6 targets** | **36/36** | **33/36** | + +All three deductions concern the explicitly requested `decision_owner` field. +For V1 the baseline names the “Brain Eyes conductor”; the treatment names the +“autolens_visualization project repo”. For V2 the treatment names “PyAutoEyes +organ”, and for I2 “autolens_inference project repo”. Those are the change owners, +whereas the decision belongs to the relevant Brain conductor and human. +The treatment still routes all three repairs through intake/start_dev; V1 even +mentions the Eyes conductor in its action field. Thus the score measures failure +to separate the named responsibilities, not a demonstrated wrong repair or bypass. + +Both conditions reject unsupported profiling re-pinning and premature sampler +promotion. Both preserve the scientist's responsibility for interpreting the +inference result. Neither invents a profiling or inference organ to handle these +cases. No scientific jobs, changes, approvals or ledger entries were executed. + +## Context and incidental errors + +No session retrieved files, so there is no evidence of reduced context loading, +token cost, execution time or tool count. Both proposed bounded, relevant next +steps. Neither P2 answer explicitly asks for the primitive's callers and tests; +these remain necessary when planning the actual repair. The baseline I1 answer +prematurely wonders which library owns the default, but does not propose a +speculative PyAutoFit repair. Under the grading-time interpretation above, all context fields pass. A stricter +reading could mildly favour the checklist: it names contracts and instruction +items more often in V1, V2, I1 and I2, and its fifth step explicitly asks for +contract loading. This is a possible advantage in proposed context coverage, +not evidence of more efficient retrieval. The headline totals therefore depend +on an interpretive choice; they should not be treated as a uniquely determined +measurement. Correct change-target parity and the three decision-field +conflations do not depend on that choice. Even granting richer contract coverage, +this single scaffolded sample does not warrant mandating the checklist. + +A perfect routing score is not a claim that every sentence is correct. The +baseline P1 answer generalizes “2.0x” and “1.0 s” drift thresholds stated only +for the compile axis; +those should not be reused as a general runtime rule. The treatment says that +“every comparability dimension” differs, although a dependency-version +difference was not established. Both nevertheless correctly reject the +unmatched comparison. These incidental factual issues are preserved in the +assessment rather than silently fixed in the raw answers or used to invent a new +post-hoc scoring dimension. The baseline P1 object also includes an unrequested +`domain_note: null` field. This schema deviation is retained unchanged in the +exact answer and parsed JSON; it receives no separate routing deduction. + +## Interpretation and remaining design work + +The predeclared decision rule was to avoid mandating a checklist without net +correctness gain and a clear context benefit. This sample meets neither criterion. +Keep the adopted library/project/organ terminology and existing routing contracts; +make no runtime, registry, category or schema change from this trial. + +If future real tasks reveal repeated ownership ambiguity, a possible refinement +is to ask explicitly for the **human or conductor responsible for judging the +finding**, separately from the repository containing the repair. That wording is +an untested hypothesis. A further trial would need fresh real-task contexts, +observed retrieval, varied order and multiple samples before claims about +reliability or efficiency. The present result does not justify building a new +evaluation framework or routinely adding more planning steps. + +The next substantive design candidate remains the profiling/inference organ +specification: define their cross-project registry and read contracts, the evidence +produced by each project, dashboard responsibilities, and the Brain/Cortex/Heart +boundaries. This trial neither implements nor validates those future organs. +The separately filed inference documentation reconciliation also remains separate. +These are proposed follow-ups for human prioritization, not newly filed tasks. + +This study has six curated hypothetical cases, an authored answer key, one paired +sample and one model family. The fixed order, common answer scaffold, source +selection, ambient instructions and stochastic variation are confounded with the +intervention. There is no statistical or causal claim and no estimate of unseen +case accuracy. The Memory consultation recovered the preceding layer research and +terminology decision; no private scientific memory was needed for this packet. + +## Inspectable evidence + +The versioned evidence bundle is deliberately a fixed research artifact, not an +execution framework: + +- {download}`Protocol <../../research/ecosystem_routing_trial/protocol.json>`, + {download}`runtime provenance <../../research/ecosystem_routing_trial/runtime.json>` + and {download}`source excerpts with pinned URLs <../../research/ecosystem_routing_trial/sources.json>`. +- {download}`Cases <../../research/ecosystem_routing_trial/cases.json>` and + {download}`predeclared answer key <../../research/ecosystem_routing_trial/answer_key.json>`. +- {download}`System prompt <../../research/ecosystem_routing_trial/system.txt>`, + {download}`baseline prompt <../../research/ecosystem_routing_trial/baseline_prompt.txt>` + and {download}`checklist prompt <../../research/ecosystem_routing_trial/checklist_prompt.txt>`. +- Exact {download}`baseline answer <../../research/ecosystem_routing_trial/baseline_response.txt>` + and {download}`checklist answer <../../research/ecosystem_routing_trial/checklist_response.txt>`; + parsed copies are adjacent JSON files, with original text retained unchanged. +- {download}`Per-case scores, quotations and grading notes <../../research/ecosystem_routing_trial/assessment.json>`. + +The frozen file hashes and response hashes allow the report to be checked against +the actual inputs and answers. Source snippets identify their inspected repository, +path and commit; they are historical evidence, not a second normative policy copy. diff --git a/research/ecosystem_routing_trial/answer_key.json b/research/ecosystem_routing_trial/answer_key.json new file mode 100644 index 00000000..3c58f4e7 --- /dev/null +++ b/research/ecosystem_routing_trial/answer_key.json @@ -0,0 +1,157 @@ +{ + "V1": { + "producer": [ + "autolens_visualization" + ], + "decision": [ + "Brain Eyes conductor with human" + ], + "change_owner": [ + "autolens_visualization" + ], + "door": [ + "Eyes review/survey then intake/start_dev" + ], + "boundary": [ + "Do not edit manifest by hand or blame Eyes/library; fix generator after normal approval" + ], + "context": [ + "manifest and generator", + "Eyes read contract or registry", + "project instructions" + ], + "exclude": [ + "unrelated libraries", + "all ecosystem repos" + ] + }, + "V2": { + "producer": [ + "autolens_visualization figures/manifest", + "PyAutoEyes faulty dashboard" + ], + "decision": [ + "Brain Eyes conductor with human" + ], + "change_owner": [ + "PyAutoEyes" + ], + "door": [ + "Eyes review then intake/start_dev" + ], + "boundary": [ + "Do not move/rerender correct project artifacts to fix dashboard" + ], + "context": [ + "correct manifest and registry", + "Eyes URL join/dashboard source", + "Eyes instructions" + ], + "exclude": [ + "unrelated library source", + "all visualization producers" + ] + }, + "P1": { + "producer": [ + "autolens_profiling" + ], + "decision": [ + "Brain profiling conductor with human" + ], + "change_owner": [ + null + ], + "door": [ + "profiling triage/campaign or equivalent investigation before intake if defect established" + ], + "boundary": [ + "Refuse unsupported regression/re-pin; establish comparability first; Heart owns health" + ], + "context": [ + "both result provenance/timing definitions", + "profiling instructions/comparison policy" + ], + "exclude": [ + "speculative library patch", + "entire library stack" + ] + }, + "P2": { + "producer": [ + "autolens_profiling" + ], + "decision": [ + "Brain profiling/bug conductor with human" + ], + "change_owner": [ + "PyAutoArray" + ], + "door": [ + "profiling triage then bug/intake/start_dev" + ], + "boundary": [ + "Keep baseline/provenance, normal source/worktree/test gates; no invented release verdict" + ], + "context": [ + "matched evidence/reproducer/bisection", + "PyAutoArray primitive/callers/tests and instructions" + ], + "exclude": [ + "all sampler repos", + "whole organism" + ] + }, + "I1": { + "producer": [ + "autolens_inference" + ], + "decision": [ + "human scientist via Brain Cortex conductor; sampler faculty optional opinion" + ], + "change_owner": [ + null + ], + "door": [ + "Cortex scientific check-in/experiment planning; samplers optional read-only consultation" + ], + "boundary": [ + "No automatic lesson/default promotion or proof of reliability from one short run" + ], + "context": [ + "result and samples/convergence evidence", + "Cortex project row/ledger and contract", + "inference instructions" + ], + "exclude": [ + "invented inference organ/conductor", + "speculative PyAutoFit repair" + ] + }, + "I2": { + "producer": [ + "autolens_inference" + ], + "decision": [ + "Brain bug/intake development route with human" + ], + "change_owner": [ + "autolens_inference" + ], + "door": [ + "bug/intake/start_dev" + ], + "boundary": [ + "Code repair belongs in Mind, not a Cortex code-edit task or a PyAutoFit patch" + ], + "context": [ + "raw logs and emitted result", + "local summary producer and tests", + "project instructions" + ], + "exclude": [ + "all sampler implementation code", + "new inference organ" + ] + } +} diff --git a/research/ecosystem_routing_trial/assessment.json b/research/ecosystem_routing_trial/assessment.json new file mode 100644 index 00000000..e9e44627 --- /dev/null +++ b/research/ecosystem_routing_trial/assessment.json @@ -0,0 +1,352 @@ +{ + "method": "Author assessment against the frozen key. Equivalent existing doors count. Context means relevant bounded next-step scope, not an exhaustive implementation checklist: policy excerpts already supplied need not be requested again. Missing later source/test details are noted, not retroactively made mandatory. Scores describe written answers, not executed actions. The context leniencies were chosen at grading time, not frozen beforehand. A stricter reading can favour the checklist on explicit contract coverage; totals depend on this interpretation.", + "conditions": { + "baseline": { + "cases": [ + { + "id": "V1", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_visualization manifest generator / render harness output (gallery/viz_manifest.yaml)", + "PyAutoEyes dashboard (reads manifest, emits the given path verbatim)" + ], + "decision": "Brain Eyes conductor (survey/critique of the autolens instance)", + "change_owner": "autolens_visualization", + "door": "intake (bug) \u2192 Mind prompt \u2192 start_dev", + "boundary": "The project repo owns the tracked figure manifest and render harness; PyAutoEyes only reads the manifest and never renders, copies or edits figures; no library plot defect, so autolens plot code is out of scope.", + "context": [ + "The manifest generator script in autolens_visualization and the plots.yaml row for the dataset figure", + "The emitted manifest entries (file/domain/source) for the dataset and fit figures to confirm the swap originates upstream of Eyes" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + }, + { + "id": "V2", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_visualization manifest and GALLERY.md (correct relative path, PNG present)", + "PyAutoEyes dashboard link construction ( join)" + ], + "decision": "Brain Eyes conductor (or hygiene conductor if treated as organ tooling upkeep)", + "change_owner": "PyAutoEyes", + "door": "intake (bug) \u2192 Mind prompt \u2192 start_dev", + "boundary": "The organ owns registry.yaml, the eyes/ package and dashboard rendering; the project repo's manifest and figures are correct, so no project-repo or library change is warranted.", + "context": [ + "The images_base_url value in PyAutoEyes registry.yaml for the autolens instance", + "The eyes/ package code that joins images_base_url with figures[*].file" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + }, + { + "id": "P1", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_profiling result rows (runtime steady-state vs first-call compile, different CPU models, different precision)" + ], + "decision": "Brain profiling conductor (triage mode)", + "change_owner": null, + "door": "profiling triage; no re-pin, no bug filing", + "boundary": "Runtime and compile axes are separate vocabularies and rows are comparable only within (hardware, jax_version, mixed_precision, cache state); pins are sticky and drift requires newer-than-pin, \u22652.0x and \u22651.0 s gates on a matched cell.", + "context": [ + "A matched repeat on the same hardware, config, precision and dependency versions with warm-up", + "A timing breakdown separating compile/first-call from steady-state cost", + "Whether the slow row sits in the off-grid or other-hardware bucket rather than grid coverage" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + }, + { + "id": "P2", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_profiling matched steady-state fp64 comparison, isolated reproducer and revision bisection" + ], + "decision": "Brain profiling conductor (triage classifies as library regression) \u2192 bug conductor plans the repair", + "change_owner": "PyAutoArray", + "door": "intake (bug) \u2192 Mind prompt \u2192 start_dev", + "boundary": "Profiling owns the measurement lifecycle and classifies drift; library regressions route to bug/ via intake; Heart issues no verdict here since no readiness or release question was asked, and the project driver is unchanged so autolens_profiling needs no fix.", + "context": [ + "The bisected PyAutoArray revision range and the reproducer script path", + "Whether the regressed primitive is covered by an existing pin so the pin is left in place pending repair" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + }, + { + "id": "I1", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_inference single shorter sampler run (no convergence check, no repeated seeds, samples unreviewed)" + ], + "decision": "The human scientist; Brain cortex conductor only records what the human says to log", + "change_owner": null, + "door": "cortex checkin surfaces the observation to the human; samplers faculty for sampler tier/benchmark context; no default change or lesson recorded", + "boundary": "Cortex logs nothing inferred from results \u2014 results and lessons are the human's own words on their ask; a default-sampler change would be a library/feature decision requiring intake and a Mind prompt, not a ledger entry.", + "context": [ + "Convergence diagnostics and repeated-seed runs for the shorter sampler", + "The human's review of retained samples and their stated conclusion", + "Which library (likely PyAutoFit) owns the default and the samplers faculty's current tier assessment" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + }, + { + "id": "I2", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_inference raw timing logs (setup + sampling components)", + "autolens_inference result-summary script output (drops setup time)" + ], + "decision": "Brain profiling/hygiene is not it \u2014 the bug conductor via intake, as a project-repo tooling defect", + "change_owner": "autolens_inference", + "door": "intake (bug) \u2192 Mind prompt \u2192 start_dev", + "boundary": "The project role owns its producers, execution details and local artifacts including the summary script; the sampler records both components correctly, so PyAutoFit is not implicated.", + "context": [ + "The result-summary script's total-cost aggregation code in autolens_inference", + "Which existing cost result rows were under-reported and need regeneration after the fix" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + } + ], + "total": 36, + "maximum": 36, + "change_owner_correct": 6, + "decision_owner_correct": 6 + }, + "checklist": { + "cases": [ + { + "id": "V1", + "scores": { + "producer": 1, + "decision": 0, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 5, + "evidence": { + "producer": [ + "autolens_visualization (generated figure manifest, manifest generator)", + "PyAutoEyes (dashboard emitting the manifest path verbatim)" + ], + "decision": "autolens_visualization project repo \u2014 the REFERENCE.md layering gives the project repo ownership of the tracked figure manifest; the Eyes organ only reads `figures[*].file`", + "change_owner": "autolens_visualization", + "door": "intake \u2192 start_dev (bug) filed against autolens_visualization; Eyes conductor may surface the finding but routes it through intake, not edit", + "boundary": "PyAutoEyes must not patch the manifest or copy/relabel figures; no library plot code is touched since no plot defect is observed; no new organ/agent/record for the project repo", + "context": [ + "autolens_visualization manifest generator source and the offending dataset/fit rows in its tracked manifest", + "PyAutoEyes REFERENCE.md 'What the organ reads' (file/domain/source fields) to confirm the organ consumed the path unchanged", + "PyAutoMind/repos.yaml entry for autolens_visualization (category \u2192 workflow/validation contract)" + ] + }, + "judgment": "Decision field names the code-owning repository rather than the Brain conductor/human. Action door and patch target remain correct." + }, + { + "id": "V2", + "scores": { + "producer": 1, + "decision": 0, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 5, + "evidence": { + "producer": [ + "autolens_visualization (correct manifest path, GALLERY.md, existing raw PNG)", + "PyAutoEyes (dashboard URL join producing the duplicated directory)" + ], + "decision": "PyAutoEyes organ \u2014 owns `registry.yaml`, the `eyes/` package and `dashboard.md`/`dashboard.html` where `` is built", + "change_owner": "PyAutoEyes", + "door": "intake \u2192 start_dev (bug) against PyAutoEyes", + "boundary": "Project repo and its manifest stay unchanged; no figure rendering/copying moves into the organ; no plot code edit", + "context": [ + "`eyes/` package code that joins `images_base_url` and `figures[*].file`", + "`registry.yaml` entry for autolens_visualization (images_base_url, manifest fields)", + "REFERENCE.md read contract and `check` integrity test to decide whether a regression test belongs there" + ] + }, + "judgment": "Decision field names the code-owning repository rather than the Brain conductor/human. Action door and patch target remain correct." + }, + { + "id": "P1", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_profiling (two timing rows of unmatched axis, precision and hardware)" + ], + "decision": "Brain profiling conductor (`triage`), which classifies drift; Heart is not involved and no verdict is requested", + "change_owner": null, + "door": "pyauto-brain profiling triage \u2014 classify as non-comparable/new-machine, no re-pin; decline the baseline reset", + "boundary": "Rows are comparable only within (hardware, jax_version, mixed_precision, cache state); first-call vs steady-state are different axes; pins are sticky and must not auto-follow; no `bug/` filing and no health verdict", + "context": [ + "A matched repeat on the same axis, hardware, precision and dependency set, with timing breakdown", + "autolens_profiling `pins.json` / results tree to confirm which pin and config the earlier row belongs to" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + }, + { + "id": "P2", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_profiling (matched steady-state fp64 reproduction, isolated reproducer, revision bisection)" + ], + "decision": "Brain profiling conductor `triage` classifies it as a library regression; Mind owns the resulting task record", + "change_owner": "PyAutoArray", + "door": "intake \u2192 bug conductor plan \u2192 start_dev \u2192 create_issue (one issue, PR in PyAutoArray)", + "boundary": "Profiling runs measurement, not repair; Heart issues no verdict since none was requested; the autolens_profiling driver and pin stay unchanged until the fix lands; no release mechanics", + "context": [ + "Bisected PyAutoArray revision range and the isolated reproducer from autolens_profiling", + "PyAutoArray entry in PyAutoMind/repos.yaml (library category/workflow)", + "Brain `bug/` conductor AGENTS.md for the regression plan format" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + }, + { + "id": "I1", + "scores": { + "producer": 1, + "decision": 1, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 6, + "evidence": { + "producer": [ + "autolens_inference (single shorter sampler run without convergence check, seeds or sample review)" + ], + "decision": "The human scientist \u2014 Cortex records only the human's own result/lesson; the agent reports what it sees and decides nothing", + "change_owner": null, + "door": "cortex conductor checkin (agent reports observations; human chooses whether to log) with an optional read-only `samplers` faculty opinion; no default change, no lesson entry", + "boundary": "Nothing in a ledger is inferred from results; samplers faculty is read-only; promoting a default sampler would be a library change with no supporting evidence or software defect", + "context": [ + "Convergence diagnostics, repeated-seed runs and reviewed samples from autolens_inference's evaluation protocol", + "PyAutoCortex `projects/.md` Now/Runs for the relevant project, only if the human asks to record something" + ] + }, + "judgment": "Passes the six routing dimensions; see limitations and incidental wording issues below." + }, + { + "id": "I2", + "scores": { + "producer": 1, + "decision": 0, + "change_owner": 1, + "door": 1, + "boundary": 1, + "context": 1 + }, + "total": 5, + "evidence": { + "producer": [ + "autolens_inference (raw timing logs with setup+sampling; local result-summary script dropping setup time)" + ], + "decision": "autolens_inference project repo \u2014 the project role owns producers, execution details and local artifacts, including the summary script", + "change_owner": "autolens_inference", + "door": "intake \u2192 start_dev (bug) scoped to the autolens_inference summary script", + "boundary": "Not a PyAutoFit library defect (sampler records both components correctly); not profiling's domain (inference owns wall-clock price of an answer); Cortex ledger untouched unless the human asks to annotate affected results", + "context": [ + "autolens_inference result-summary script and the raw log schema for setup vs sampling fields", + "PyAutoMind/repos.yaml entry for autolens_inference (category \u2192 workflow contract)" + ] + }, + "judgment": "Decision field names the code-owning repository rather than the Brain conductor/human. Action door and patch target remain correct." + } + ], + "total": 33, + "maximum": 36, + "change_owner_correct": 6, + "decision_owner_correct": 3 + } + }, + "grading_notes": [ + "V1/V2/I2 checklist: separately score the explicitly requested decision-owner field even where another field supplies the proper development door. This is a naming/role-separation failure, not observed unsafe execution.", + "V2 baseline accepts the Eyes conductor; its optional hygiene alternative is compatible with tooling-upkeep triage and still a Brain conductor.", + "Context passes reflect relevant bounded scope, not optimal retrieval. Both P2 answers omit explicit primitive/caller/test inspection; these are needed later for repair. Baseline I1 speculates about the default-owning library, unnecessary before scientific validation, but requests no PyAutoFit repair and is not broad ecosystem loading. No demonstrated context-efficiency advantage is claimed. This grading-time leniency is not direction-neutral: the checklist requests more contract/instruction items in V1, V2, I1 and I2, as encouraged by its fifth step. A stricter reading could favour it on proposed coverage, without demonstrating retrieval efficiency or warranting adoption from this sample.", + "P1 baseline quotes drift thresholds stated only for the compile axis (2x and 1 s) as general drift gates. The rejection of this unmatched comparison remains correct; this overbroad wording should not be adopted as runtime policy.", + "P1 checklist says every comparability dimension differs; a dependency-version difference was not supplied. This embellishment does not change its correct refusal.", + "All gate statements are planning answers. No approval, re-pin, scientific conclusion or source edit was actually executed. Passing boundary means the proposed route does not violate the relevant case boundary, not that every future workflow step was enumerated.", + "P1 baseline includes an unrequested domain_note: null field. This output-schema deviation is reported and retained in both exact and parsed responses without repair; no separate routing deduction is assigned." + ] +} diff --git a/research/ecosystem_routing_trial/baseline_prompt.txt b/research/ecosystem_routing_trial/baseline_prompt.txt new file mode 100644 index 00000000..ca284647 --- /dev/null +++ b/research/ecosystem_routing_trial/baseline_prompt.txt @@ -0,0 +1,95 @@ +Apply the supplied current guidance to each case. + +Source packet: +[ + { + "id": "roles", + "repo": "PyAutoBrain", + "path": "ORGANISM.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/ORGANISM.md", + "excerpt": "## Responsibility roles\n\n**Library, project and organ** name responsibilities, not levels in a strict\ncontainment tree. A **repository** is the versioned container for those\nresponsibilities; it is not a separate middle level.\n\n| Role | Responsibility | Examples |\n|------|----------------|----------|\n| **Library** | Reusable capabilities, their APIs and behavioral contracts. | The scientific libraries and the `autonerves` package. |\n| **Project** | Concrete applications, examples or measurement environments; their producers, execution details and local artifacts. | User workspaces, tutorials, profiling, inference and visualization repos. |\n| **Organ** | An organism-wide responsibility with explicitly owned state or effects and interfaces to other roles. | Mind's development intent, Cortex's science records, Eyes' cross-project view. |\n\nRelationships can cross these roles: several projects can use one library,\nand several organs can read evidence from one project. Nerves is an organ\nthat also supplies a library package. Eyes demonstrates a project-to-organ\nread contract; it does not make evidence aggregation the definition of every\norgan or move project producers into the organ. Cortex retains science\nrecords and the human's observations; project artifacts do not replace them.\n\n**Workspace** retains its established meaning for example/tutorial projects\nand, when qualified, a local checkout environment. The broader project role\ncan include workspace-family, `howto` and `project` categories without renaming\nthem.\nThe category in `PyAutoMind/repos.yaml` still selects the repository's existing\nworkflow and validation/release contract, as described in the\n[category contract](docs/satellites.md). In particular, the `project` category's\n\"no release mechanics\" expectation does not transfer to every repo serving a\nproject role. A responsibility role is not a `category: project` filter or a new registry\nfield. The body map's existing `role` and `public_role` strings remain descriptive\ntext, not a responsibility-role classification." + }, + { + "id": "eyes", + "repo": "PyAutoEyes", + "path": "REFERENCE.md", + "commit": "33cde97da61bdbb03a85d020c284404dc399828c", + "url": "https://github.com/PyAutoLabs/PyAutoEyes/blob/33cde97da61bdbb03a85d020c284404dc399828c/REFERENCE.md", + "excerpt": "## The layering\n\n| Layer | Owns | Never does |\n|-------|------|------------|\n| Project repo (`_visualization`, e.g. `lens/autolens_visualization`, `galaxy/autogalaxy_visualization`, `fit/autofit_visualization`, `cti/autocti_visualization`) | producers, simulators, datasets, `plots.yaml`, instruments, the tracked PNGs, `GALLERY.md`, the render harness, its lint/render workflows, and the tracked **figure manifest** | judge its own figures |\n| Organ (PyAutoEyes) | `registry.yaml`, this contract, the `eyes/` package, `bin/pyauto-eyes`, `dashboard.md` / `dashboard.html` (Pages) | render, copy or store figures; judge them; edit plot code |\n| Brain Eyes conductor (`PyAutoBrain/agents/conductors/eyes/`) | survey, review and critique of an instance, named by `--instance ` through this registry (or all of them, given the organ root) | edit plot code directly; accepted critiques route through intake → start_dev |\n\nThis is the same layering as `autolens_profiling` / `autolens_inference`\nunder the Brain board: the project repos hold the runs, and the organ is where\nthe human checks in across all of them.\n\n**What the organ reads:** the manifest at\n`` (the raw GitHub URL on `main`), or a local\ncheckout with `--offline` / `--from`. From it the organ takes `figures[*].file`\nto build each figure link (``), `domain` and `source` to\ngroup and label the figures, `rendered_with[]` and `generated` for\nthe freshness columns, and `bytes` + `sha256` for `check`'s local integrity\ntest. `producer` is carried for the Brain Eyes conductor and is not displayed." + }, + { + "id": "profiling", + "repo": "PyAutoBrain", + "path": "agents/conductors/profiling/AGENTS.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/agents/conductors/profiling/AGENTS.md", + "excerpt": "## Modes\n\n| Mode | Question | Emits |\n|------|----------|-------|\n| `campaign` | Which grid runs are done / CPU-unusable / missing on this tier, and how do I dispatch the rest? | dispatch plan (local sweep flags incl. the per-run timeout; A100 submit list) |\n| `ingest` | Which probe JSONs aren't in the vram tables yet, and which results have no pin? | table-update rows, pin list, baseline + dashboard steps |\n| `ingest --axis compile` | Which warm compile rows are unpinned, and which have drifted from their pin? | drifted rows (with pinned vs observed), unpinned keys, confirm/classify/re-pin steps |\n| `triage` | What do the pinned-drift findings mean? | per-finding classification: stale pin → re-pin here; library regression → `bug/` via intake |\n| `triage --axis compile` | What does the compile drift MEAN, and who owns it? | per-finding classification: cache / autotune / host-load / library regression, expected-recompile, new-machine, new-cell |\n\n```\npyauto-brain profiling # campaign, local tier\npyauto-brain profiling campaign --tier a100 # RAL dispatch plan\npyauto-brain profiling ingest\npyauto-brain profiling triage\npyauto-brain profiling --json\n```\n\n### The measurement axes\n\n`--axis runtime` (the default) is steady-state per-call cost, filed under\n`results/runtime/` and bucketed by sweep **config** name (`local_cpu_fp64`,\n`local_cpu_mp`, …). `--axis compile` is the one-off cost — trace, XLA compile,\nfirst call — filed under `scripts/misc/jax_compile/results//` and\nbucketed by **hardware**, with `mixed_precision` a separate field. The two\nvocabularies do not interchange, so the compile axis maps tiers itself rather\nthan reusing `TIER_CONFIGS`.\n\n`--axis compile` serves all three modes: `campaign` (coverage), `ingest`\n(warm-pin drift) and `triage` (what the drift means).\n\n**Drift is deliberately hard to trigger.** A row counts only if it is *newer*\nthan its pin, at least `2.0x` the pinned value, **and** at least `1.0 s` above it\nin absolute terms. Rows predating the pin are the history the pin was chosen\nover — flagging them would report the improvement that set the pin as a\nregression. The ratio alone screams about sub-second cells where 100 ms of\njitter is 3x; the absolute floor alone misses a cheap cell degrading by an order\nof magnitude. Both gates, generous, because host load alone has produced 7x\nerrors in this corpus and an alarm that cries wolf gets ignored.\n\nPins live in the workspace (`jax_compile/pins.json`) and are **sticky** — the\nworkspace's `update_pins.py` will not move an existing pin without `--repin`. If\npins auto-followed the newest measurement, re-deriving them after a cache\nregression would bake the regression in and the surveillance would report\nall-clear forever.\n\n**Compile timings are host-load-sensitive** — the first measurements in\n`jax_compile/README.md` were wrong by up to **7×** (851 s vs 117 s for the same\ncompile) purely from host load, because XLA compiles on the host cores. Rows are\ncomparable only within `(hardware, jax_version, mixed_precision, cache state)`.\n`campaign --axis compile` therefore reports **coverage only** and never compares\ntwo timings; comparison waits on the pins.\n\nRecords whose cell is not in the sweep grid (`knn`, `delaunay_matern`, the\n`datacube_img*` multi-band classes) are reported in an **off-grid** bucket, and\nnon-tier hardware in an **other-hardware** bucket. Both are real measurements —\nneither counts as grid coverage, and neither is silently dropped.\n\n`jax_compile/` also hosts sibling instruments (`export_probe.py`,\n`trace_profile.py`) that append their own schema into the same\n`results//` tree. Records missing the whole `(hardware, dataset_class,\ninstrument)` identity triple are reported as **sibling-instrument** records, not\nas malformed — only a record missing *some* of its key fields is corruption.\n\n## Boundaries\n\n- **vs health** — Heart observes and verdicts (including the\n `profiling_drift` leg, PyAutoHeart#38); this agent runs the measurement\n lifecycle. Heart never dispatches campaigns; this agent never issues health\n verdicts.\n- **vs hygiene** — split by *what is measured*: profiling owns the product's\n modelling / compute speed (likelihood on the science grid, GPU tiers, A100);\n the **hygiene conductor** (`agents/conductors/hygiene/`) owns the developer\n loop's cost (unit-test time, `PYAUTO_TEST_MODE` / `PYAUTO_SMALL_DATASETS`\n scripts, import time) and repo tidiness. Hunting generally-slow functions\n flagged by integration tests is hygiene's `perf` mode, not profiling's.\n- **vs build** — campaigns are not releases; `profile.yml`'s on-release runs\n stay CI/Build territory.\n- **release-validation script cost is NOT ours.** The compile axis was\n originally proposed (PyAutoMind, 2026-07-14) to cover the release-validation\n heavy scripts blowing the 300 s cap. That was declined on the hygiene boundary\n above — script-suite cost is the developer loop, and it had already been moved\n out of this agent's staged future modes once. Recorded here so the question is\n not re-opened a third time." + }, + { + "id": "cortex", + "repo": "PyAutoCortex", + "path": "AGENTS.md", + "commit": "b66d7fd0a20197d0283da8b802059654e891a3ec", + "url": "https://github.com/PyAutoLabs/PyAutoCortex/blob/b66d7fd0a20197d0283da8b802059654e891a3ec/AGENTS.md", + "excerpt": "## What this repo is\n\n**The Mind decides what to build, the Brain routes the work and executes\nnothing, the Cortex keeps track of what is true.** The Cortex is a\n**project ledger**: `project → runs → log`. It owns two pieces of state no\nother organ holds — the **science body map** (`projects.yaml`: every science\nproject, where it lives on the laptop and on RAL, how it syncs, where its own\ncommentary ledger is) and **one ledger per project** (`projects/.md`:\nwhere the human is with it, what is on the cluster, and a dated history of\nwhat they set off, saw and learned).\n\nIt is **not a second PyAutoMind**, and it is **not a task tracker**\n(2026-09-12, schema decision 60). Science is not worked as a queue of\npre-registered questions that get done and retired: the human does runs, looks\nat results, thinks, and organically decides where to go next. So a ledger\nholds no state machine, no witness, no verdict — it holds a **Now**, the\n**Runs** on the cluster, and a **Log** that only ever gets longer. The board is\na live view of what has been going through the human's head on each project,\nand the thing that makes a project easy to pick up after time away.\n\n**Nothing in a ledger is inferred from results.** A run's submission, start\nand end are cluster facts and the script records them. A `result` or a\n`lesson` is the human's own words, written on their ask. An agent that reads a\nresults file tells the human what it sees; the human says what to log.\n\nThe schema — the ledger file, the run and log line grammars, the\n`projects.yaml` subset — and the `scripts/cortex.py` verbs are in\n[REFERENCE.md](REFERENCE.md). Every choice is dated in\n[docs/schema_decisions.md](docs/schema_decisions.md); read decisions there, do\nnot re-derive them." + }, + { + "id": "inference", + "repo": "autolens_inference", + "path": "AGENTS.md", + "commit": "656c348fe39e0acca7e6e92fe1f0fb3f55060dc6", + "url": "https://github.com/PyAutoLabs/autolens_inference/blob/656c348fe39e0acca7e6e92fe1f0fb3f55060dc6/AGENTS.md", + "excerpt": "# autolens_inference — Agent Instructions\n\nThis repo is the single home for **PyAutoLens inference measurement**: which non-linear\nsearch — gradient-free or gradient-based — finds the right lens model, how reliably, and\nat what cost, on CPU and on A100 GPUs. It is the sibling of\n[`autolens_profiling`](https://github.com/PyAutoLabs/autolens_profiling), which owns\nlikelihood **timing**; this repo owns everything downstream of one likelihood call:\nsamplers, pipelines, convergence, reliability, and the wall-clock price of an answer." + }, + { + "id": "workflow", + "repo": "PyAutoBrain", + "path": "skills/WORKFLOW.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/skills/WORKFLOW.md", + "excerpt": "## Memory and planning\n\nFor substantial architectural or scientific planning, consult\n`bin/pyauto-brain memory \"\"`, read only the cited pages, and proceed\nhonestly when it has no matches. PyAutoMemory citations never enter public\nuser-facing output.\n\n`start_dev` produces both a short human plan and a detailed issue plan, surveys\nonly affected repos, then uses Mind's `create_issue` primitive. Do not duplicate\nissue or lifecycle mechanics in Brain.\n\n## Task state and worktrees\n\nMind paths are relative to its resolved checkout: `active.md`, `planned.md`,\nand prompt lifecycle `draft/ → active/ → complete/YYYY/MM/`. Use Mind's\nlifecycle and prompt-sync scripts; do not hand-roll state transitions.\n\nLocal tasks use the Brain checkout's `bin/worktree.sh` and\n`feature/` branches. `worktree_check_conflict` fails closed when it\ncannot read the registry. A repo bullet beneath an active task's `repos:` is a\nclaim; tasks touching the same repo serialize unless a human explicitly\nauthorizes coordination. Source the generated `activate.sh` before Python or\ntests.\n\nIn web/CI sessions with clones, use those clones and explicit cache/PYTHONPATH\nsettings. A GitHub-control-only session may have no clone at all: it operates on\nremote branches/files and records no fake `worktree:` path. The same Mind\nregistry and branch/commit provide continuity across environments." + } +] + +Cases: +[ + { + "id": "V1", + "domain": "visualization", + "facts": "Hypothetical: the Eyes dashboard links a dataset image to a fit image. The autolens_visualization PNGs are correct, but its generated manifest assigns the fit PNG path to the dataset row. Eyes emits exactly that manifest path. The manifest generator is in autolens_visualization. No library plot defect is observed.", + "request": "Where should we investigate and fix this incorrect dataset image link?" + }, + { + "id": "V2", + "domain": "visualization", + "facts": "Hypothetical: the autolens_visualization manifest names the correct relative PNG path, its project GALLERY.md links correctly, and the raw PNG exists. The PyAutoEyes dashboard duplicates a directory while joining images_base_url and the manifest path, producing a 404.", + "request": "Where should we investigate and fix this broken image link?" + }, + { + "id": "P1", + "domain": "profiling", + "facts": "Hypothetical: autolens_profiling records a slower row. The earlier row is steady-state fp64 on CPU model A; the new row is first-call mixed precision on CPU model B. There is no matched repeat or timing breakdown and no isolated code change.", + "request": "Treat this as a library regression and reset the performance baseline." + }, + { + "id": "P2", + "domain": "profiling", + "facts": "Hypothetical: autolens_profiling reproduces a slowdown in a matched steady-state fp64 comparison using the same machine, data, warm-up and dependency versions. An isolated reproducer and revision bisection identify a reusable inversion primitive in PyAutoArray; the project driver is unchanged. No readiness or release verdict has been requested.", + "request": "Route the supported regression for repair." + }, + { + "id": "I1", + "domain": "inference", + "facts": "Hypothetical: autolens_inference has one shorter sampler run. Its result lacks a convergence check and there are no repeated seeds; the retained samples have not been reviewed. No software defect is identified. The scientist has not decided what the result means or asked to record a lesson.", + "request": "Declare this sampler better, promote it as the default and record that lesson." + }, + { + "id": "I2", + "domain": "inference", + "facts": "Hypothetical: raw autolens_inference timing logs include setup and sampling. Its local result-summary script drops setup time when emitting the total-cost result row. The sampler records both components correctly and there is no evidence of a PyAutoFit defect.", + "request": "Fix the under-reported inference cost." + } +] + +Return ONLY a JSON object with a "cases" array in the given order. Each item: {"id": string, "evidence_producers": [strings], "decision_owner": string, "change_repo": string or null, "action_door": string, "boundary": string, "minimal_followup_context": [strings], "rationale": string}. Keep each rationale to 1-2 sentences. If evidence is insufficient, use null change_repo and say what must be resolved. You are giving routing advice, not carrying out the request. No tool calls or external facts. Case facts are stipulated hypothetical evidence; source snippets are current policy. Propose needed follow-up context; do not pretend to have retrieved it. diff --git a/research/ecosystem_routing_trial/baseline_response.json b/research/ecosystem_routing_trial/baseline_response.json new file mode 100644 index 00000000..b99fe8e7 --- /dev/null +++ b/research/ecosystem_routing_trial/baseline_response.json @@ -0,0 +1,100 @@ +{ + "cases": [ + { + "id": "V1", + "evidence_producers": [ + "autolens_visualization manifest generator / render harness output (gallery/viz_manifest.yaml)", + "PyAutoEyes dashboard (reads manifest, emits the given path verbatim)" + ], + "decision_owner": "Brain Eyes conductor (survey/critique of the autolens instance)", + "change_repo": "autolens_visualization", + "action_door": "intake (bug) → Mind prompt → start_dev", + "boundary": "The project repo owns the tracked figure manifest and render harness; PyAutoEyes only reads the manifest and never renders, copies or edits figures; no library plot defect, so autolens plot code is out of scope.", + "minimal_followup_context": [ + "The manifest generator script in autolens_visualization and the plots.yaml row for the dataset figure", + "The emitted manifest entries (file/domain/source) for the dataset and fit figures to confirm the swap originates upstream of Eyes" + ], + "rationale": "Eyes faithfully reproduces a wrong manifest entry, so the defect lives in autolens_visualization's manifest generation, which that project repo owns per the Eyes layering; the Eyes conductor files it through intake rather than editing anything." + }, + { + "id": "V2", + "evidence_producers": [ + "autolens_visualization manifest and GALLERY.md (correct relative path, PNG present)", + "PyAutoEyes dashboard link construction ( join)" + ], + "decision_owner": "Brain Eyes conductor (or hygiene conductor if treated as organ tooling upkeep)", + "change_repo": "PyAutoEyes", + "action_door": "intake (bug) → Mind prompt → start_dev", + "boundary": "The organ owns registry.yaml, the eyes/ package and dashboard rendering; the project repo's manifest and figures are correct, so no project-repo or library change is warranted.", + "minimal_followup_context": [ + "The images_base_url value in PyAutoEyes registry.yaml for the autolens instance", + "The eyes/ package code that joins images_base_url with figures[*].file" + ], + "rationale": "The manifest contract is honored by the project repo, and the duplicated directory arises in PyAutoEyes' URL join, which is organ-owned code under the Eyes layering." + }, + { + "id": "P1", + "domain_note": null, + "evidence_producers": [ + "autolens_profiling result rows (runtime steady-state vs first-call compile, different CPU models, different precision)" + ], + "decision_owner": "Brain profiling conductor (triage mode)", + "change_repo": null, + "action_door": "profiling triage; no re-pin, no bug filing", + "boundary": "Runtime and compile axes are separate vocabularies and rows are comparable only within (hardware, jax_version, mixed_precision, cache state); pins are sticky and drift requires newer-than-pin, ≥2.0x and ≥1.0 s gates on a matched cell.", + "minimal_followup_context": [ + "A matched repeat on the same hardware, config, precision and dependency versions with warm-up", + "A timing breakdown separating compile/first-call from steady-state cost", + "Whether the slow row sits in the off-grid or other-hardware bucket rather than grid coverage" + ], + "rationale": "The two rows differ in axis, hardware and precision, so they cannot support a regression claim or a baseline reset; triage must classify it as non-comparable until a matched measurement exists." + }, + { + "id": "P2", + "evidence_producers": [ + "autolens_profiling matched steady-state fp64 comparison, isolated reproducer and revision bisection" + ], + "decision_owner": "Brain profiling conductor (triage classifies as library regression) → bug conductor plans the repair", + "change_repo": "PyAutoArray", + "action_door": "intake (bug) → Mind prompt → start_dev", + "boundary": "Profiling owns the measurement lifecycle and classifies drift; library regressions route to bug/ via intake; Heart issues no verdict here since no readiness or release question was asked, and the project driver is unchanged so autolens_profiling needs no fix.", + "minimal_followup_context": [ + "The bisected PyAutoArray revision range and the reproducer script path", + "Whether the regressed primitive is covered by an existing pin so the pin is left in place pending repair" + ], + "rationale": "The evidence meets the profiling conductor's bar for a library regression and localizes it to a reusable PyAutoArray primitive, so it routes through intake to a bug task against that library rather than being re-pinned or escalated to Heart." + }, + { + "id": "I1", + "evidence_producers": [ + "autolens_inference single shorter sampler run (no convergence check, no repeated seeds, samples unreviewed)" + ], + "decision_owner": "The human scientist; Brain cortex conductor only records what the human says to log", + "change_repo": null, + "action_door": "cortex checkin surfaces the observation to the human; samplers faculty for sampler tier/benchmark context; no default change or lesson recorded", + "boundary": "Cortex logs nothing inferred from results — results and lessons are the human's own words on their ask; a default-sampler change would be a library/feature decision requiring intake and a Mind prompt, not a ledger entry.", + "minimal_followup_context": [ + "Convergence diagnostics and repeated-seed runs for the shorter sampler", + "The human's review of retained samples and their stated conclusion", + "Which library (likely PyAutoFit) owns the default and the samplers faculty's current tier assessment" + ], + "rationale": "One unverified run cannot establish a better sampler, and the Cortex contract forbids an agent asserting a result or lesson the human has not decided; the agent reports what it sees and waits for the human's call." + }, + { + "id": "I2", + "evidence_producers": [ + "autolens_inference raw timing logs (setup + sampling components)", + "autolens_inference result-summary script output (drops setup time)" + ], + "decision_owner": "Brain profiling/hygiene is not it — the bug conductor via intake, as a project-repo tooling defect", + "change_repo": "autolens_inference", + "action_door": "intake (bug) → Mind prompt → start_dev", + "boundary": "The project role owns its producers, execution details and local artifacts including the summary script; the sampler records both components correctly, so PyAutoFit is not implicated.", + "minimal_followup_context": [ + "The result-summary script's total-cost aggregation code in autolens_inference", + "Which existing cost result rows were under-reported and need regeneration after the fix" + ], + "rationale": "The defect is in the project's own summarization script, not the library's recorded timings, so the fix and any row regeneration belong in autolens_inference." + } + ] +} diff --git a/research/ecosystem_routing_trial/baseline_response.txt b/research/ecosystem_routing_trial/baseline_response.txt new file mode 100644 index 00000000..13590b45 --- /dev/null +++ b/research/ecosystem_routing_trial/baseline_response.txt @@ -0,0 +1 @@ +{"cases":[{"id":"V1","evidence_producers":["autolens_visualization manifest generator / render harness output (gallery/viz_manifest.yaml)","PyAutoEyes dashboard (reads manifest, emits the given path verbatim)"],"decision_owner":"Brain Eyes conductor (survey/critique of the autolens instance)","change_repo":"autolens_visualization","action_door":"intake (bug) → Mind prompt → start_dev","boundary":"The project repo owns the tracked figure manifest and render harness; PyAutoEyes only reads the manifest and never renders, copies or edits figures; no library plot defect, so autolens plot code is out of scope.","minimal_followup_context":["The manifest generator script in autolens_visualization and the plots.yaml row for the dataset figure","The emitted manifest entries (file/domain/source) for the dataset and fit figures to confirm the swap originates upstream of Eyes"],"rationale":"Eyes faithfully reproduces a wrong manifest entry, so the defect lives in autolens_visualization's manifest generation, which that project repo owns per the Eyes layering; the Eyes conductor files it through intake rather than editing anything."},{"id":"V2","evidence_producers":["autolens_visualization manifest and GALLERY.md (correct relative path, PNG present)","PyAutoEyes dashboard link construction ( join)"],"decision_owner":"Brain Eyes conductor (or hygiene conductor if treated as organ tooling upkeep)","change_repo":"PyAutoEyes","action_door":"intake (bug) → Mind prompt → start_dev","boundary":"The organ owns registry.yaml, the eyes/ package and dashboard rendering; the project repo's manifest and figures are correct, so no project-repo or library change is warranted.","minimal_followup_context":["The images_base_url value in PyAutoEyes registry.yaml for the autolens instance","The eyes/ package code that joins images_base_url with figures[*].file"],"rationale":"The manifest contract is honored by the project repo, and the duplicated directory arises in PyAutoEyes' URL join, which is organ-owned code under the Eyes layering."},{"id":"P1","domain_note":null,"evidence_producers":["autolens_profiling result rows (runtime steady-state vs first-call compile, different CPU models, different precision)"],"decision_owner":"Brain profiling conductor (triage mode)","change_repo":null,"action_door":"profiling triage; no re-pin, no bug filing","boundary":"Runtime and compile axes are separate vocabularies and rows are comparable only within (hardware, jax_version, mixed_precision, cache state); pins are sticky and drift requires newer-than-pin, ≥2.0x and ≥1.0 s gates on a matched cell.","minimal_followup_context":["A matched repeat on the same hardware, config, precision and dependency versions with warm-up","A timing breakdown separating compile/first-call from steady-state cost","Whether the slow row sits in the off-grid or other-hardware bucket rather than grid coverage"],"rationale":"The two rows differ in axis, hardware and precision, so they cannot support a regression claim or a baseline reset; triage must classify it as non-comparable until a matched measurement exists."},{"id":"P2","evidence_producers":["autolens_profiling matched steady-state fp64 comparison, isolated reproducer and revision bisection"],"decision_owner":"Brain profiling conductor (triage classifies as library regression) → bug conductor plans the repair","change_repo":"PyAutoArray","action_door":"intake (bug) → Mind prompt → start_dev","boundary":"Profiling owns the measurement lifecycle and classifies drift; library regressions route to bug/ via intake; Heart issues no verdict here since no readiness or release question was asked, and the project driver is unchanged so autolens_profiling needs no fix.","minimal_followup_context":["The bisected PyAutoArray revision range and the reproducer script path","Whether the regressed primitive is covered by an existing pin so the pin is left in place pending repair"],"rationale":"The evidence meets the profiling conductor's bar for a library regression and localizes it to a reusable PyAutoArray primitive, so it routes through intake to a bug task against that library rather than being re-pinned or escalated to Heart."},{"id":"I1","evidence_producers":["autolens_inference single shorter sampler run (no convergence check, no repeated seeds, samples unreviewed)"],"decision_owner":"The human scientist; Brain cortex conductor only records what the human says to log","change_repo":null,"action_door":"cortex checkin surfaces the observation to the human; samplers faculty for sampler tier/benchmark context; no default change or lesson recorded","boundary":"Cortex logs nothing inferred from results — results and lessons are the human's own words on their ask; a default-sampler change would be a library/feature decision requiring intake and a Mind prompt, not a ledger entry.","minimal_followup_context":["Convergence diagnostics and repeated-seed runs for the shorter sampler","The human's review of retained samples and their stated conclusion","Which library (likely PyAutoFit) owns the default and the samplers faculty's current tier assessment"],"rationale":"One unverified run cannot establish a better sampler, and the Cortex contract forbids an agent asserting a result or lesson the human has not decided; the agent reports what it sees and waits for the human's call."},{"id":"I2","evidence_producers":["autolens_inference raw timing logs (setup + sampling components)","autolens_inference result-summary script output (drops setup time)"],"decision_owner":"Brain profiling/hygiene is not it — the bug conductor via intake, as a project-repo tooling defect","change_repo":"autolens_inference","action_door":"intake (bug) → Mind prompt → start_dev","boundary":"The project role owns its producers, execution details and local artifacts including the summary script; the sampler records both components correctly, so PyAutoFit is not implicated.","minimal_followup_context":["The result-summary script's total-cost aggregation code in autolens_inference","Which existing cost result rows were under-reported and need regeneration after the fix"],"rationale":"The defect is in the project's own summarization script, not the library's recorded timings, so the fix and any row regeneration belong in autolens_inference."}]} diff --git a/research/ecosystem_routing_trial/cases.json b/research/ecosystem_routing_trial/cases.json new file mode 100644 index 00000000..5e22c8da --- /dev/null +++ b/research/ecosystem_routing_trial/cases.json @@ -0,0 +1,38 @@ +[ + { + "id": "V1", + "domain": "visualization", + "facts": "Hypothetical: the Eyes dashboard links a dataset image to a fit image. The autolens_visualization PNGs are correct, but its generated manifest assigns the fit PNG path to the dataset row. Eyes emits exactly that manifest path. The manifest generator is in autolens_visualization. No library plot defect is observed.", + "request": "Where should we investigate and fix this incorrect dataset image link?" + }, + { + "id": "V2", + "domain": "visualization", + "facts": "Hypothetical: the autolens_visualization manifest names the correct relative PNG path, its project GALLERY.md links correctly, and the raw PNG exists. The PyAutoEyes dashboard duplicates a directory while joining images_base_url and the manifest path, producing a 404.", + "request": "Where should we investigate and fix this broken image link?" + }, + { + "id": "P1", + "domain": "profiling", + "facts": "Hypothetical: autolens_profiling records a slower row. The earlier row is steady-state fp64 on CPU model A; the new row is first-call mixed precision on CPU model B. There is no matched repeat or timing breakdown and no isolated code change.", + "request": "Treat this as a library regression and reset the performance baseline." + }, + { + "id": "P2", + "domain": "profiling", + "facts": "Hypothetical: autolens_profiling reproduces a slowdown in a matched steady-state fp64 comparison using the same machine, data, warm-up and dependency versions. An isolated reproducer and revision bisection identify a reusable inversion primitive in PyAutoArray; the project driver is unchanged. No readiness or release verdict has been requested.", + "request": "Route the supported regression for repair." + }, + { + "id": "I1", + "domain": "inference", + "facts": "Hypothetical: autolens_inference has one shorter sampler run. Its result lacks a convergence check and there are no repeated seeds; the retained samples have not been reviewed. No software defect is identified. The scientist has not decided what the result means or asked to record a lesson.", + "request": "Declare this sampler better, promote it as the default and record that lesson." + }, + { + "id": "I2", + "domain": "inference", + "facts": "Hypothetical: raw autolens_inference timing logs include setup and sampling. Its local result-summary script drops setup time when emitting the total-cost result row. The sampler records both components correctly and there is no evidence of a PyAutoFit defect.", + "request": "Fix the under-reported inference cost." + } +] diff --git a/research/ecosystem_routing_trial/checklist_prompt.txt b/research/ecosystem_routing_trial/checklist_prompt.txt new file mode 100644 index 00000000..5697e460 --- /dev/null +++ b/research/ecosystem_routing_trial/checklist_prompt.txt @@ -0,0 +1,98 @@ +Apply the supplied current guidance to each case. + +Additional routing procedure: +For each case: (1) identify the evidence and its producing project, preserving provenance and unknowns; (2) identify who owns the decision/record separately from where the evidence lives; (3) identify the owner of a justified change, or defer when evidence is insufficient; (4) select the existing action door and retain its approval/record boundaries; (5) load only the source/contract context needed for that action, preserving repo identity and category semantics. Do not add an agent, registry, organ or task record merely because another responsibility role appears. + +Source packet: +[ + { + "id": "roles", + "repo": "PyAutoBrain", + "path": "ORGANISM.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/ORGANISM.md", + "excerpt": "## Responsibility roles\n\n**Library, project and organ** name responsibilities, not levels in a strict\ncontainment tree. A **repository** is the versioned container for those\nresponsibilities; it is not a separate middle level.\n\n| Role | Responsibility | Examples |\n|------|----------------|----------|\n| **Library** | Reusable capabilities, their APIs and behavioral contracts. | The scientific libraries and the `autonerves` package. |\n| **Project** | Concrete applications, examples or measurement environments; their producers, execution details and local artifacts. | User workspaces, tutorials, profiling, inference and visualization repos. |\n| **Organ** | An organism-wide responsibility with explicitly owned state or effects and interfaces to other roles. | Mind's development intent, Cortex's science records, Eyes' cross-project view. |\n\nRelationships can cross these roles: several projects can use one library,\nand several organs can read evidence from one project. Nerves is an organ\nthat also supplies a library package. Eyes demonstrates a project-to-organ\nread contract; it does not make evidence aggregation the definition of every\norgan or move project producers into the organ. Cortex retains science\nrecords and the human's observations; project artifacts do not replace them.\n\n**Workspace** retains its established meaning for example/tutorial projects\nand, when qualified, a local checkout environment. The broader project role\ncan include workspace-family, `howto` and `project` categories without renaming\nthem.\nThe category in `PyAutoMind/repos.yaml` still selects the repository's existing\nworkflow and validation/release contract, as described in the\n[category contract](docs/satellites.md). In particular, the `project` category's\n\"no release mechanics\" expectation does not transfer to every repo serving a\nproject role. A responsibility role is not a `category: project` filter or a new registry\nfield. The body map's existing `role` and `public_role` strings remain descriptive\ntext, not a responsibility-role classification." + }, + { + "id": "eyes", + "repo": "PyAutoEyes", + "path": "REFERENCE.md", + "commit": "33cde97da61bdbb03a85d020c284404dc399828c", + "url": "https://github.com/PyAutoLabs/PyAutoEyes/blob/33cde97da61bdbb03a85d020c284404dc399828c/REFERENCE.md", + "excerpt": "## The layering\n\n| Layer | Owns | Never does |\n|-------|------|------------|\n| Project repo (`_visualization`, e.g. `lens/autolens_visualization`, `galaxy/autogalaxy_visualization`, `fit/autofit_visualization`, `cti/autocti_visualization`) | producers, simulators, datasets, `plots.yaml`, instruments, the tracked PNGs, `GALLERY.md`, the render harness, its lint/render workflows, and the tracked **figure manifest** | judge its own figures |\n| Organ (PyAutoEyes) | `registry.yaml`, this contract, the `eyes/` package, `bin/pyauto-eyes`, `dashboard.md` / `dashboard.html` (Pages) | render, copy or store figures; judge them; edit plot code |\n| Brain Eyes conductor (`PyAutoBrain/agents/conductors/eyes/`) | survey, review and critique of an instance, named by `--instance ` through this registry (or all of them, given the organ root) | edit plot code directly; accepted critiques route through intake → start_dev |\n\nThis is the same layering as `autolens_profiling` / `autolens_inference`\nunder the Brain board: the project repos hold the runs, and the organ is where\nthe human checks in across all of them.\n\n**What the organ reads:** the manifest at\n`` (the raw GitHub URL on `main`), or a local\ncheckout with `--offline` / `--from`. From it the organ takes `figures[*].file`\nto build each figure link (``), `domain` and `source` to\ngroup and label the figures, `rendered_with[]` and `generated` for\nthe freshness columns, and `bytes` + `sha256` for `check`'s local integrity\ntest. `producer` is carried for the Brain Eyes conductor and is not displayed." + }, + { + "id": "profiling", + "repo": "PyAutoBrain", + "path": "agents/conductors/profiling/AGENTS.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/agents/conductors/profiling/AGENTS.md", + "excerpt": "## Modes\n\n| Mode | Question | Emits |\n|------|----------|-------|\n| `campaign` | Which grid runs are done / CPU-unusable / missing on this tier, and how do I dispatch the rest? | dispatch plan (local sweep flags incl. the per-run timeout; A100 submit list) |\n| `ingest` | Which probe JSONs aren't in the vram tables yet, and which results have no pin? | table-update rows, pin list, baseline + dashboard steps |\n| `ingest --axis compile` | Which warm compile rows are unpinned, and which have drifted from their pin? | drifted rows (with pinned vs observed), unpinned keys, confirm/classify/re-pin steps |\n| `triage` | What do the pinned-drift findings mean? | per-finding classification: stale pin → re-pin here; library regression → `bug/` via intake |\n| `triage --axis compile` | What does the compile drift MEAN, and who owns it? | per-finding classification: cache / autotune / host-load / library regression, expected-recompile, new-machine, new-cell |\n\n```\npyauto-brain profiling # campaign, local tier\npyauto-brain profiling campaign --tier a100 # RAL dispatch plan\npyauto-brain profiling ingest\npyauto-brain profiling triage\npyauto-brain profiling --json\n```\n\n### The measurement axes\n\n`--axis runtime` (the default) is steady-state per-call cost, filed under\n`results/runtime/` and bucketed by sweep **config** name (`local_cpu_fp64`,\n`local_cpu_mp`, …). `--axis compile` is the one-off cost — trace, XLA compile,\nfirst call — filed under `scripts/misc/jax_compile/results//` and\nbucketed by **hardware**, with `mixed_precision` a separate field. The two\nvocabularies do not interchange, so the compile axis maps tiers itself rather\nthan reusing `TIER_CONFIGS`.\n\n`--axis compile` serves all three modes: `campaign` (coverage), `ingest`\n(warm-pin drift) and `triage` (what the drift means).\n\n**Drift is deliberately hard to trigger.** A row counts only if it is *newer*\nthan its pin, at least `2.0x` the pinned value, **and** at least `1.0 s` above it\nin absolute terms. Rows predating the pin are the history the pin was chosen\nover — flagging them would report the improvement that set the pin as a\nregression. The ratio alone screams about sub-second cells where 100 ms of\njitter is 3x; the absolute floor alone misses a cheap cell degrading by an order\nof magnitude. Both gates, generous, because host load alone has produced 7x\nerrors in this corpus and an alarm that cries wolf gets ignored.\n\nPins live in the workspace (`jax_compile/pins.json`) and are **sticky** — the\nworkspace's `update_pins.py` will not move an existing pin without `--repin`. If\npins auto-followed the newest measurement, re-deriving them after a cache\nregression would bake the regression in and the surveillance would report\nall-clear forever.\n\n**Compile timings are host-load-sensitive** — the first measurements in\n`jax_compile/README.md` were wrong by up to **7×** (851 s vs 117 s for the same\ncompile) purely from host load, because XLA compiles on the host cores. Rows are\ncomparable only within `(hardware, jax_version, mixed_precision, cache state)`.\n`campaign --axis compile` therefore reports **coverage only** and never compares\ntwo timings; comparison waits on the pins.\n\nRecords whose cell is not in the sweep grid (`knn`, `delaunay_matern`, the\n`datacube_img*` multi-band classes) are reported in an **off-grid** bucket, and\nnon-tier hardware in an **other-hardware** bucket. Both are real measurements —\nneither counts as grid coverage, and neither is silently dropped.\n\n`jax_compile/` also hosts sibling instruments (`export_probe.py`,\n`trace_profile.py`) that append their own schema into the same\n`results//` tree. Records missing the whole `(hardware, dataset_class,\ninstrument)` identity triple are reported as **sibling-instrument** records, not\nas malformed — only a record missing *some* of its key fields is corruption.\n\n## Boundaries\n\n- **vs health** — Heart observes and verdicts (including the\n `profiling_drift` leg, PyAutoHeart#38); this agent runs the measurement\n lifecycle. Heart never dispatches campaigns; this agent never issues health\n verdicts.\n- **vs hygiene** — split by *what is measured*: profiling owns the product's\n modelling / compute speed (likelihood on the science grid, GPU tiers, A100);\n the **hygiene conductor** (`agents/conductors/hygiene/`) owns the developer\n loop's cost (unit-test time, `PYAUTO_TEST_MODE` / `PYAUTO_SMALL_DATASETS`\n scripts, import time) and repo tidiness. Hunting generally-slow functions\n flagged by integration tests is hygiene's `perf` mode, not profiling's.\n- **vs build** — campaigns are not releases; `profile.yml`'s on-release runs\n stay CI/Build territory.\n- **release-validation script cost is NOT ours.** The compile axis was\n originally proposed (PyAutoMind, 2026-07-14) to cover the release-validation\n heavy scripts blowing the 300 s cap. That was declined on the hygiene boundary\n above — script-suite cost is the developer loop, and it had already been moved\n out of this agent's staged future modes once. Recorded here so the question is\n not re-opened a third time." + }, + { + "id": "cortex", + "repo": "PyAutoCortex", + "path": "AGENTS.md", + "commit": "b66d7fd0a20197d0283da8b802059654e891a3ec", + "url": "https://github.com/PyAutoLabs/PyAutoCortex/blob/b66d7fd0a20197d0283da8b802059654e891a3ec/AGENTS.md", + "excerpt": "## What this repo is\n\n**The Mind decides what to build, the Brain routes the work and executes\nnothing, the Cortex keeps track of what is true.** The Cortex is a\n**project ledger**: `project → runs → log`. It owns two pieces of state no\nother organ holds — the **science body map** (`projects.yaml`: every science\nproject, where it lives on the laptop and on RAL, how it syncs, where its own\ncommentary ledger is) and **one ledger per project** (`projects/.md`:\nwhere the human is with it, what is on the cluster, and a dated history of\nwhat they set off, saw and learned).\n\nIt is **not a second PyAutoMind**, and it is **not a task tracker**\n(2026-09-12, schema decision 60). Science is not worked as a queue of\npre-registered questions that get done and retired: the human does runs, looks\nat results, thinks, and organically decides where to go next. So a ledger\nholds no state machine, no witness, no verdict — it holds a **Now**, the\n**Runs** on the cluster, and a **Log** that only ever gets longer. The board is\na live view of what has been going through the human's head on each project,\nand the thing that makes a project easy to pick up after time away.\n\n**Nothing in a ledger is inferred from results.** A run's submission, start\nand end are cluster facts and the script records them. A `result` or a\n`lesson` is the human's own words, written on their ask. An agent that reads a\nresults file tells the human what it sees; the human says what to log.\n\nThe schema — the ledger file, the run and log line grammars, the\n`projects.yaml` subset — and the `scripts/cortex.py` verbs are in\n[REFERENCE.md](REFERENCE.md). Every choice is dated in\n[docs/schema_decisions.md](docs/schema_decisions.md); read decisions there, do\nnot re-derive them." + }, + { + "id": "inference", + "repo": "autolens_inference", + "path": "AGENTS.md", + "commit": "656c348fe39e0acca7e6e92fe1f0fb3f55060dc6", + "url": "https://github.com/PyAutoLabs/autolens_inference/blob/656c348fe39e0acca7e6e92fe1f0fb3f55060dc6/AGENTS.md", + "excerpt": "# autolens_inference — Agent Instructions\n\nThis repo is the single home for **PyAutoLens inference measurement**: which non-linear\nsearch — gradient-free or gradient-based — finds the right lens model, how reliably, and\nat what cost, on CPU and on A100 GPUs. It is the sibling of\n[`autolens_profiling`](https://github.com/PyAutoLabs/autolens_profiling), which owns\nlikelihood **timing**; this repo owns everything downstream of one likelihood call:\nsamplers, pipelines, convergence, reliability, and the wall-clock price of an answer." + }, + { + "id": "workflow", + "repo": "PyAutoBrain", + "path": "skills/WORKFLOW.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/skills/WORKFLOW.md", + "excerpt": "## Memory and planning\n\nFor substantial architectural or scientific planning, consult\n`bin/pyauto-brain memory \"\"`, read only the cited pages, and proceed\nhonestly when it has no matches. PyAutoMemory citations never enter public\nuser-facing output.\n\n`start_dev` produces both a short human plan and a detailed issue plan, surveys\nonly affected repos, then uses Mind's `create_issue` primitive. Do not duplicate\nissue or lifecycle mechanics in Brain.\n\n## Task state and worktrees\n\nMind paths are relative to its resolved checkout: `active.md`, `planned.md`,\nand prompt lifecycle `draft/ → active/ → complete/YYYY/MM/`. Use Mind's\nlifecycle and prompt-sync scripts; do not hand-roll state transitions.\n\nLocal tasks use the Brain checkout's `bin/worktree.sh` and\n`feature/` branches. `worktree_check_conflict` fails closed when it\ncannot read the registry. A repo bullet beneath an active task's `repos:` is a\nclaim; tasks touching the same repo serialize unless a human explicitly\nauthorizes coordination. Source the generated `activate.sh` before Python or\ntests.\n\nIn web/CI sessions with clones, use those clones and explicit cache/PYTHONPATH\nsettings. A GitHub-control-only session may have no clone at all: it operates on\nremote branches/files and records no fake `worktree:` path. The same Mind\nregistry and branch/commit provide continuity across environments." + } +] + +Cases: +[ + { + "id": "V1", + "domain": "visualization", + "facts": "Hypothetical: the Eyes dashboard links a dataset image to a fit image. The autolens_visualization PNGs are correct, but its generated manifest assigns the fit PNG path to the dataset row. Eyes emits exactly that manifest path. The manifest generator is in autolens_visualization. No library plot defect is observed.", + "request": "Where should we investigate and fix this incorrect dataset image link?" + }, + { + "id": "V2", + "domain": "visualization", + "facts": "Hypothetical: the autolens_visualization manifest names the correct relative PNG path, its project GALLERY.md links correctly, and the raw PNG exists. The PyAutoEyes dashboard duplicates a directory while joining images_base_url and the manifest path, producing a 404.", + "request": "Where should we investigate and fix this broken image link?" + }, + { + "id": "P1", + "domain": "profiling", + "facts": "Hypothetical: autolens_profiling records a slower row. The earlier row is steady-state fp64 on CPU model A; the new row is first-call mixed precision on CPU model B. There is no matched repeat or timing breakdown and no isolated code change.", + "request": "Treat this as a library regression and reset the performance baseline." + }, + { + "id": "P2", + "domain": "profiling", + "facts": "Hypothetical: autolens_profiling reproduces a slowdown in a matched steady-state fp64 comparison using the same machine, data, warm-up and dependency versions. An isolated reproducer and revision bisection identify a reusable inversion primitive in PyAutoArray; the project driver is unchanged. No readiness or release verdict has been requested.", + "request": "Route the supported regression for repair." + }, + { + "id": "I1", + "domain": "inference", + "facts": "Hypothetical: autolens_inference has one shorter sampler run. Its result lacks a convergence check and there are no repeated seeds; the retained samples have not been reviewed. No software defect is identified. The scientist has not decided what the result means or asked to record a lesson.", + "request": "Declare this sampler better, promote it as the default and record that lesson." + }, + { + "id": "I2", + "domain": "inference", + "facts": "Hypothetical: raw autolens_inference timing logs include setup and sampling. Its local result-summary script drops setup time when emitting the total-cost result row. The sampler records both components correctly and there is no evidence of a PyAutoFit defect.", + "request": "Fix the under-reported inference cost." + } +] + +Return ONLY a JSON object with a "cases" array in the given order. Each item: {"id": string, "evidence_producers": [strings], "decision_owner": string, "change_repo": string or null, "action_door": string, "boundary": string, "minimal_followup_context": [strings], "rationale": string}. Keep each rationale to 1-2 sentences. If evidence is insufficient, use null change_repo and say what must be resolved. You are giving routing advice, not carrying out the request. No tool calls or external facts. Case facts are stipulated hypothetical evidence; source snippets are current policy. Propose needed follow-up context; do not pretend to have retrieved it. diff --git a/research/ecosystem_routing_trial/checklist_response.json b/research/ecosystem_routing_trial/checklist_response.json new file mode 100644 index 00000000..ad8a1906 --- /dev/null +++ b/research/ecosystem_routing_trial/checklist_response.json @@ -0,0 +1,99 @@ +{ + "cases": [ + { + "id": "V1", + "evidence_producers": [ + "autolens_visualization (generated figure manifest, manifest generator)", + "PyAutoEyes (dashboard emitting the manifest path verbatim)" + ], + "decision_owner": "autolens_visualization project repo — the REFERENCE.md layering gives the project repo ownership of the tracked figure manifest; the Eyes organ only reads `figures[*].file`", + "change_repo": "autolens_visualization", + "action_door": "intake → start_dev (bug) filed against autolens_visualization; Eyes conductor may surface the finding but routes it through intake, not edit", + "boundary": "PyAutoEyes must not patch the manifest or copy/relabel figures; no library plot code is touched since no plot defect is observed; no new organ/agent/record for the project repo", + "minimal_followup_context": [ + "autolens_visualization manifest generator source and the offending dataset/fit rows in its tracked manifest", + "PyAutoEyes REFERENCE.md 'What the organ reads' (file/domain/source fields) to confirm the organ consumed the path unchanged", + "PyAutoMind/repos.yaml entry for autolens_visualization (category → workflow/validation contract)" + ], + "rationale": "The organ faithfully emitted what the project's manifest said, so the defect lives with the producer of that manifest, which the project repo owns and the organ is forbidden to alter." + }, + { + "id": "V2", + "evidence_producers": [ + "autolens_visualization (correct manifest path, GALLERY.md, existing raw PNG)", + "PyAutoEyes (dashboard URL join producing the duplicated directory)" + ], + "decision_owner": "PyAutoEyes organ — owns `registry.yaml`, the `eyes/` package and `dashboard.md`/`dashboard.html` where `` is built", + "change_repo": "PyAutoEyes", + "action_door": "intake → start_dev (bug) against PyAutoEyes", + "boundary": "Project repo and its manifest stay unchanged; no figure rendering/copying moves into the organ; no plot code edit", + "minimal_followup_context": [ + "`eyes/` package code that joins `images_base_url` and `figures[*].file`", + "`registry.yaml` entry for autolens_visualization (images_base_url, manifest fields)", + "REFERENCE.md read contract and `check` integrity test to decide whether a regression test belongs there" + ], + "rationale": "All project-side artifacts resolve correctly and the 404 arises only in the organ's join, so the fix belongs in PyAutoEyes' read/link layer." + }, + { + "id": "P1", + "evidence_producers": [ + "autolens_profiling (two timing rows of unmatched axis, precision and hardware)" + ], + "decision_owner": "Brain profiling conductor (`triage`), which classifies drift; Heart is not involved and no verdict is requested", + "change_repo": null, + "action_door": "pyauto-brain profiling triage — classify as non-comparable/new-machine, no re-pin; decline the baseline reset", + "boundary": "Rows are comparable only within (hardware, jax_version, mixed_precision, cache state); first-call vs steady-state are different axes; pins are sticky and must not auto-follow; no `bug/` filing and no health verdict", + "minimal_followup_context": [ + "A matched repeat on the same axis, hardware, precision and dependency set, with timing breakdown", + "autolens_profiling `pins.json` / results tree to confirm which pin and config the earlier row belongs to" + ], + "rationale": "The two rows differ on every comparability dimension the profiling contract requires, so neither a library-regression classification nor a baseline reset is supported; the needed resolution is a matched measurement." + }, + { + "id": "P2", + "evidence_producers": [ + "autolens_profiling (matched steady-state fp64 reproduction, isolated reproducer, revision bisection)" + ], + "decision_owner": "Brain profiling conductor `triage` classifies it as a library regression; Mind owns the resulting task record", + "change_repo": "PyAutoArray", + "action_door": "intake → bug conductor plan → start_dev → create_issue (one issue, PR in PyAutoArray)", + "boundary": "Profiling runs measurement, not repair; Heart issues no verdict since none was requested; the autolens_profiling driver and pin stay unchanged until the fix lands; no release mechanics", + "minimal_followup_context": [ + "Bisected PyAutoArray revision range and the isolated reproducer from autolens_profiling", + "PyAutoArray entry in PyAutoMind/repos.yaml (library category/workflow)", + "Brain `bug/` conductor AGENTS.md for the regression plan format" + ], + "rationale": "Evidence meets the comparability and isolation bar and points to a reusable inversion primitive, so the library role (PyAutoArray) owns the change and triage's documented door is `bug/` via intake." + }, + { + "id": "I1", + "evidence_producers": [ + "autolens_inference (single shorter sampler run without convergence check, seeds or sample review)" + ], + "decision_owner": "The human scientist — Cortex records only the human's own result/lesson; the agent reports what it sees and decides nothing", + "change_repo": null, + "action_door": "cortex conductor checkin (agent reports observations; human chooses whether to log) with an optional read-only `samplers` faculty opinion; no default change, no lesson entry", + "boundary": "Nothing in a ledger is inferred from results; samplers faculty is read-only; promoting a default sampler would be a library change with no supporting evidence or software defect", + "minimal_followup_context": [ + "Convergence diagnostics, repeated-seed runs and reviewed samples from autolens_inference's evaluation protocol", + "PyAutoCortex `projects/.md` Now/Runs for the relevant project, only if the human asks to record something" + ], + "rationale": "The run lacks convergence, repeats and review, and the scientist has not interpreted it, so declaring a winner or logging a lesson would invert Cortex's rule that results are the human's words." + }, + { + "id": "I2", + "evidence_producers": [ + "autolens_inference (raw timing logs with setup+sampling; local result-summary script dropping setup time)" + ], + "decision_owner": "autolens_inference project repo — the project role owns producers, execution details and local artifacts, including the summary script", + "change_repo": "autolens_inference", + "action_door": "intake → start_dev (bug) scoped to the autolens_inference summary script", + "boundary": "Not a PyAutoFit library defect (sampler records both components correctly); not profiling's domain (inference owns wall-clock price of an answer); Cortex ledger untouched unless the human asks to annotate affected results", + "minimal_followup_context": [ + "autolens_inference result-summary script and the raw log schema for setup vs sampling fields", + "PyAutoMind/repos.yaml entry for autolens_inference (category → workflow contract)" + ], + "rationale": "The under-report is introduced by the project's own post-processing while the library data is correct, so the fix stays in autolens_inference under the normal dev flow." + } + ] +} diff --git a/research/ecosystem_routing_trial/checklist_response.txt b/research/ecosystem_routing_trial/checklist_response.txt new file mode 100644 index 00000000..644c7dac --- /dev/null +++ b/research/ecosystem_routing_trial/checklist_response.txt @@ -0,0 +1 @@ +{"cases":[{"id":"V1","evidence_producers":["autolens_visualization (generated figure manifest, manifest generator)","PyAutoEyes (dashboard emitting the manifest path verbatim)"],"decision_owner":"autolens_visualization project repo — the REFERENCE.md layering gives the project repo ownership of the tracked figure manifest; the Eyes organ only reads `figures[*].file`","change_repo":"autolens_visualization","action_door":"intake → start_dev (bug) filed against autolens_visualization; Eyes conductor may surface the finding but routes it through intake, not edit","boundary":"PyAutoEyes must not patch the manifest or copy/relabel figures; no library plot code is touched since no plot defect is observed; no new organ/agent/record for the project repo","minimal_followup_context":["autolens_visualization manifest generator source and the offending dataset/fit rows in its tracked manifest","PyAutoEyes REFERENCE.md 'What the organ reads' (file/domain/source fields) to confirm the organ consumed the path unchanged","PyAutoMind/repos.yaml entry for autolens_visualization (category → workflow/validation contract)"],"rationale":"The organ faithfully emitted what the project's manifest said, so the defect lives with the producer of that manifest, which the project repo owns and the organ is forbidden to alter."},{"id":"V2","evidence_producers":["autolens_visualization (correct manifest path, GALLERY.md, existing raw PNG)","PyAutoEyes (dashboard URL join producing the duplicated directory)"],"decision_owner":"PyAutoEyes organ — owns `registry.yaml`, the `eyes/` package and `dashboard.md`/`dashboard.html` where `` is built","change_repo":"PyAutoEyes","action_door":"intake → start_dev (bug) against PyAutoEyes","boundary":"Project repo and its manifest stay unchanged; no figure rendering/copying moves into the organ; no plot code edit","minimal_followup_context":["`eyes/` package code that joins `images_base_url` and `figures[*].file`","`registry.yaml` entry for autolens_visualization (images_base_url, manifest fields)","REFERENCE.md read contract and `check` integrity test to decide whether a regression test belongs there"],"rationale":"All project-side artifacts resolve correctly and the 404 arises only in the organ's join, so the fix belongs in PyAutoEyes' read/link layer."},{"id":"P1","evidence_producers":["autolens_profiling (two timing rows of unmatched axis, precision and hardware)"],"decision_owner":"Brain profiling conductor (`triage`), which classifies drift; Heart is not involved and no verdict is requested","change_repo":null,"action_door":"pyauto-brain profiling triage — classify as non-comparable/new-machine, no re-pin; decline the baseline reset","boundary":"Rows are comparable only within (hardware, jax_version, mixed_precision, cache state); first-call vs steady-state are different axes; pins are sticky and must not auto-follow; no `bug/` filing and no health verdict","minimal_followup_context":["A matched repeat on the same axis, hardware, precision and dependency set, with timing breakdown","autolens_profiling `pins.json` / results tree to confirm which pin and config the earlier row belongs to"],"rationale":"The two rows differ on every comparability dimension the profiling contract requires, so neither a library-regression classification nor a baseline reset is supported; the needed resolution is a matched measurement."},{"id":"P2","evidence_producers":["autolens_profiling (matched steady-state fp64 reproduction, isolated reproducer, revision bisection)"],"decision_owner":"Brain profiling conductor `triage` classifies it as a library regression; Mind owns the resulting task record","change_repo":"PyAutoArray","action_door":"intake → bug conductor plan → start_dev → create_issue (one issue, PR in PyAutoArray)","boundary":"Profiling runs measurement, not repair; Heart issues no verdict since none was requested; the autolens_profiling driver and pin stay unchanged until the fix lands; no release mechanics","minimal_followup_context":["Bisected PyAutoArray revision range and the isolated reproducer from autolens_profiling","PyAutoArray entry in PyAutoMind/repos.yaml (library category/workflow)","Brain `bug/` conductor AGENTS.md for the regression plan format"],"rationale":"Evidence meets the comparability and isolation bar and points to a reusable inversion primitive, so the library role (PyAutoArray) owns the change and triage's documented door is `bug/` via intake."},{"id":"I1","evidence_producers":["autolens_inference (single shorter sampler run without convergence check, seeds or sample review)"],"decision_owner":"The human scientist — Cortex records only the human's own result/lesson; the agent reports what it sees and decides nothing","change_repo":null,"action_door":"cortex conductor checkin (agent reports observations; human chooses whether to log) with an optional read-only `samplers` faculty opinion; no default change, no lesson entry","boundary":"Nothing in a ledger is inferred from results; samplers faculty is read-only; promoting a default sampler would be a library change with no supporting evidence or software defect","minimal_followup_context":["Convergence diagnostics, repeated-seed runs and reviewed samples from autolens_inference's evaluation protocol","PyAutoCortex `projects/.md` Now/Runs for the relevant project, only if the human asks to record something"],"rationale":"The run lacks convergence, repeats and review, and the scientist has not interpreted it, so declaring a winner or logging a lesson would invert Cortex's rule that results are the human's words."},{"id":"I2","evidence_producers":["autolens_inference (raw timing logs with setup+sampling; local result-summary script dropping setup time)"],"decision_owner":"autolens_inference project repo — the project role owns producers, execution details and local artifacts, including the summary script","change_repo":"autolens_inference","action_door":"intake → start_dev (bug) scoped to the autolens_inference summary script","boundary":"Not a PyAutoFit library defect (sampler records both components correctly); not profiling's domain (inference owns wall-clock price of an answer); Cortex ledger untouched unless the human asks to annotate affected results","minimal_followup_context":["autolens_inference result-summary script and the raw log schema for setup vs sampling fields","PyAutoMind/repos.yaml entry for autolens_inference (category → workflow contract)"],"rationale":"The under-report is introduced by the project's own post-processing while the library data is correct, so the fix stays in autolens_inference under the normal dev flow."}]} diff --git a/research/ecosystem_routing_trial/protocol.json b/research/ecosystem_routing_trial/protocol.json new file mode 100644 index 00000000..b15a18f3 --- /dev/null +++ b/research/ecosystem_routing_trial/protocol.json @@ -0,0 +1,74 @@ +{ + "status": "frozen-before-evaluation", + "frozen_utc": "2026-10-01T19:42:32.380671+00:00", + "issue": "PyAutoBrain#444", + "hypothesis": "An explicit role-routing checklist improves ownership/action decisions beyond current post-adoption guidance. No improvement is a valid result.", + "conditions": [ + "baseline", + "checklist" + ], + "case_order": [ + "V1", + "V2", + "P1", + "P2", + "I1", + "I2" + ], + "sampling": "One fresh process per condition, all six cases in identical order; no retries selected by answer quality; baseline launched before checklist.", + "model_alias": "fable", + "effort": "high", + "tools": [], + "system_prompt_file": "system.txt", + "same_cases_and_sources": true, + "answer_key_hidden": true, + "scoring": { + "dimensions": [ + "producer", + "decision", + "change_owner", + "door", + "boundary", + "context" + ], + "unit": "one binary pass per dimension per case, 36 per condition; count change-owner accuracy separately", + "method": "Human-readable author assessment using answer_key.json, with concise quotations and independent review. Accept equivalent existing doors and role names. Context pass requires relevant listed follow-up scope without whole-ecosystem loading; does not measure actual retrieval.", + "failure": "Wrong/unsupported owner, invented role/door, violated approval/science boundary, or broad unrelated context is a fail on the affected dimension. Malformed output is reported, not silently repaired." + }, + "decision_rule": "No net correctness gain and no clear minimal-context gain => do not mandate checklist. Any gain is hypothesis-generating only; recommend a larger fresh-context/real-task comparison before production changes. No additional framework or organs from this trial.", + "limitations": [ + "six curated hypothetical cases", + "one sample per condition", + "same fixed order, possible within-response learning", + "same model and authored expected key", + "no real retrieval, execution or token-cost efficiency measurement", + "explicit source guidance may cause ceiling effects", + "CLI runtime has common ambient workspace instructions; tools and MCP disabled, no other files retrievable", + "no seed guarantee; stochastic/session variation not separated from intervention", + "shared structured answer fields already scaffold producer/owner/door reasoning in both conditions; tests marginal checklist value under that scaffold" + ], + "argv_common": [ + "-p", + "--model", + "fable", + "--effort", + "high", + "--tools", + "", + "--strict-mcp-config", + "--no-session-persistence", + "--output-format", + "json", + "--system-prompt", + "" + ], + "working_directory": "PyAutoBrain worktree; both fresh processes use same cwd", + "frozen_files_sha256": { + "sources.json": "18c73ae91ff0b8840f6cd874b5e91fe907f4ebe890d739e8c28eae4611a3bf09", + "cases.json": "07f93986640dbcef310c146e2cb4c5cb47702188003fc2e5024ddd5ab2891b35", + "answer_key.json": "791989f021721f2f1fd397642b5708a5df965776705f36e149dee7dd1d0acf2d", + "system.txt": "9d4ba926713afb30481b9acc4356f64b6434d3b7056e641d9f13d9eadb4b0e5d", + "baseline_prompt.txt": "237258222e2a02ea56892014fe293407ee069f51e09565b7400768ef28c2905f", + "checklist_prompt.txt": "a6e3acfa6f3e7d23534abbf7f4a5947dc0cc2333925ce41f13a3d3c37b9eee3c" + } +} diff --git a/research/ecosystem_routing_trial/runtime.json b/research/ecosystem_routing_trial/runtime.json new file mode 100644 index 00000000..b653aa8d --- /dev/null +++ b/research/ecosystem_routing_trial/runtime.json @@ -0,0 +1,29 @@ +{ + "cli_version": "2.1.287 (Claude Code)", + "started_utc": "2026-10-01T19:43:11.906931+00:00", + "protocol_sha256": "3ac0d3096a752bf1f89cc5caecdcff2426953bb91efeae95b216babe395b62fa", + "conditions": { + "baseline": { + "started_utc": "2026-10-01T19:43:11.907986+00:00", + "completed_utc": "2026-10-01T19:43:50.803725+00:00", + "resolved_models": [ + "claude-fable-5-1" + ], + "num_turns": 1, + "permission_denials": [], + "result_subtype": "success", + "response_sha256": "b7c58baed167e888ca960782ad6cdcb1a4284fc9475d0362f111298d5170706c" + }, + "checklist": { + "started_utc": "2026-10-01T19:43:50.803993+00:00", + "completed_utc": "2026-10-01T19:44:48.075223+00:00", + "resolved_models": [ + "claude-fable-5-1" + ], + "num_turns": 1, + "permission_denials": [], + "result_subtype": "success", + "response_sha256": "a03d9014dc9b9a5288c5503dbd5197cb9afe9055e850f1b303b0a63a688b9525" + } + } +} diff --git a/research/ecosystem_routing_trial/sources.json b/research/ecosystem_routing_trial/sources.json new file mode 100644 index 00000000..0bd6b5dc --- /dev/null +++ b/research/ecosystem_routing_trial/sources.json @@ -0,0 +1,50 @@ +[ + { + "id": "roles", + "repo": "PyAutoBrain", + "path": "ORGANISM.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/ORGANISM.md", + "excerpt": "## Responsibility roles\n\n**Library, project and organ** name responsibilities, not levels in a strict\ncontainment tree. A **repository** is the versioned container for those\nresponsibilities; it is not a separate middle level.\n\n| Role | Responsibility | Examples |\n|------|----------------|----------|\n| **Library** | Reusable capabilities, their APIs and behavioral contracts. | The scientific libraries and the `autonerves` package. |\n| **Project** | Concrete applications, examples or measurement environments; their producers, execution details and local artifacts. | User workspaces, tutorials, profiling, inference and visualization repos. |\n| **Organ** | An organism-wide responsibility with explicitly owned state or effects and interfaces to other roles. | Mind's development intent, Cortex's science records, Eyes' cross-project view. |\n\nRelationships can cross these roles: several projects can use one library,\nand several organs can read evidence from one project. Nerves is an organ\nthat also supplies a library package. Eyes demonstrates a project-to-organ\nread contract; it does not make evidence aggregation the definition of every\norgan or move project producers into the organ. Cortex retains science\nrecords and the human's observations; project artifacts do not replace them.\n\n**Workspace** retains its established meaning for example/tutorial projects\nand, when qualified, a local checkout environment. The broader project role\ncan include workspace-family, `howto` and `project` categories without renaming\nthem.\nThe category in `PyAutoMind/repos.yaml` still selects the repository's existing\nworkflow and validation/release contract, as described in the\n[category contract](docs/satellites.md). In particular, the `project` category's\n\"no release mechanics\" expectation does not transfer to every repo serving a\nproject role. A responsibility role is not a `category: project` filter or a new registry\nfield. The body map's existing `role` and `public_role` strings remain descriptive\ntext, not a responsibility-role classification." + }, + { + "id": "eyes", + "repo": "PyAutoEyes", + "path": "REFERENCE.md", + "commit": "33cde97da61bdbb03a85d020c284404dc399828c", + "url": "https://github.com/PyAutoLabs/PyAutoEyes/blob/33cde97da61bdbb03a85d020c284404dc399828c/REFERENCE.md", + "excerpt": "## The layering\n\n| Layer | Owns | Never does |\n|-------|------|------------|\n| Project repo (`_visualization`, e.g. `lens/autolens_visualization`, `galaxy/autogalaxy_visualization`, `fit/autofit_visualization`, `cti/autocti_visualization`) | producers, simulators, datasets, `plots.yaml`, instruments, the tracked PNGs, `GALLERY.md`, the render harness, its lint/render workflows, and the tracked **figure manifest** | judge its own figures |\n| Organ (PyAutoEyes) | `registry.yaml`, this contract, the `eyes/` package, `bin/pyauto-eyes`, `dashboard.md` / `dashboard.html` (Pages) | render, copy or store figures; judge them; edit plot code |\n| Brain Eyes conductor (`PyAutoBrain/agents/conductors/eyes/`) | survey, review and critique of an instance, named by `--instance ` through this registry (or all of them, given the organ root) | edit plot code directly; accepted critiques route through intake → start_dev |\n\nThis is the same layering as `autolens_profiling` / `autolens_inference`\nunder the Brain board: the project repos hold the runs, and the organ is where\nthe human checks in across all of them.\n\n**What the organ reads:** the manifest at\n`` (the raw GitHub URL on `main`), or a local\ncheckout with `--offline` / `--from`. From it the organ takes `figures[*].file`\nto build each figure link (``), `domain` and `source` to\ngroup and label the figures, `rendered_with[]` and `generated` for\nthe freshness columns, and `bytes` + `sha256` for `check`'s local integrity\ntest. `producer` is carried for the Brain Eyes conductor and is not displayed." + }, + { + "id": "profiling", + "repo": "PyAutoBrain", + "path": "agents/conductors/profiling/AGENTS.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/agents/conductors/profiling/AGENTS.md", + "excerpt": "## Modes\n\n| Mode | Question | Emits |\n|------|----------|-------|\n| `campaign` | Which grid runs are done / CPU-unusable / missing on this tier, and how do I dispatch the rest? | dispatch plan (local sweep flags incl. the per-run timeout; A100 submit list) |\n| `ingest` | Which probe JSONs aren't in the vram tables yet, and which results have no pin? | table-update rows, pin list, baseline + dashboard steps |\n| `ingest --axis compile` | Which warm compile rows are unpinned, and which have drifted from their pin? | drifted rows (with pinned vs observed), unpinned keys, confirm/classify/re-pin steps |\n| `triage` | What do the pinned-drift findings mean? | per-finding classification: stale pin → re-pin here; library regression → `bug/` via intake |\n| `triage --axis compile` | What does the compile drift MEAN, and who owns it? | per-finding classification: cache / autotune / host-load / library regression, expected-recompile, new-machine, new-cell |\n\n```\npyauto-brain profiling # campaign, local tier\npyauto-brain profiling campaign --tier a100 # RAL dispatch plan\npyauto-brain profiling ingest\npyauto-brain profiling triage\npyauto-brain profiling --json\n```\n\n### The measurement axes\n\n`--axis runtime` (the default) is steady-state per-call cost, filed under\n`results/runtime/` and bucketed by sweep **config** name (`local_cpu_fp64`,\n`local_cpu_mp`, …). `--axis compile` is the one-off cost — trace, XLA compile,\nfirst call — filed under `scripts/misc/jax_compile/results//` and\nbucketed by **hardware**, with `mixed_precision` a separate field. The two\nvocabularies do not interchange, so the compile axis maps tiers itself rather\nthan reusing `TIER_CONFIGS`.\n\n`--axis compile` serves all three modes: `campaign` (coverage), `ingest`\n(warm-pin drift) and `triage` (what the drift means).\n\n**Drift is deliberately hard to trigger.** A row counts only if it is *newer*\nthan its pin, at least `2.0x` the pinned value, **and** at least `1.0 s` above it\nin absolute terms. Rows predating the pin are the history the pin was chosen\nover — flagging them would report the improvement that set the pin as a\nregression. The ratio alone screams about sub-second cells where 100 ms of\njitter is 3x; the absolute floor alone misses a cheap cell degrading by an order\nof magnitude. Both gates, generous, because host load alone has produced 7x\nerrors in this corpus and an alarm that cries wolf gets ignored.\n\nPins live in the workspace (`jax_compile/pins.json`) and are **sticky** — the\nworkspace's `update_pins.py` will not move an existing pin without `--repin`. If\npins auto-followed the newest measurement, re-deriving them after a cache\nregression would bake the regression in and the surveillance would report\nall-clear forever.\n\n**Compile timings are host-load-sensitive** — the first measurements in\n`jax_compile/README.md` were wrong by up to **7×** (851 s vs 117 s for the same\ncompile) purely from host load, because XLA compiles on the host cores. Rows are\ncomparable only within `(hardware, jax_version, mixed_precision, cache state)`.\n`campaign --axis compile` therefore reports **coverage only** and never compares\ntwo timings; comparison waits on the pins.\n\nRecords whose cell is not in the sweep grid (`knn`, `delaunay_matern`, the\n`datacube_img*` multi-band classes) are reported in an **off-grid** bucket, and\nnon-tier hardware in an **other-hardware** bucket. Both are real measurements —\nneither counts as grid coverage, and neither is silently dropped.\n\n`jax_compile/` also hosts sibling instruments (`export_probe.py`,\n`trace_profile.py`) that append their own schema into the same\n`results//` tree. Records missing the whole `(hardware, dataset_class,\ninstrument)` identity triple are reported as **sibling-instrument** records, not\nas malformed — only a record missing *some* of its key fields is corruption.\n\n## Boundaries\n\n- **vs health** — Heart observes and verdicts (including the\n `profiling_drift` leg, PyAutoHeart#38); this agent runs the measurement\n lifecycle. Heart never dispatches campaigns; this agent never issues health\n verdicts.\n- **vs hygiene** — split by *what is measured*: profiling owns the product's\n modelling / compute speed (likelihood on the science grid, GPU tiers, A100);\n the **hygiene conductor** (`agents/conductors/hygiene/`) owns the developer\n loop's cost (unit-test time, `PYAUTO_TEST_MODE` / `PYAUTO_SMALL_DATASETS`\n scripts, import time) and repo tidiness. Hunting generally-slow functions\n flagged by integration tests is hygiene's `perf` mode, not profiling's.\n- **vs build** — campaigns are not releases; `profile.yml`'s on-release runs\n stay CI/Build territory.\n- **release-validation script cost is NOT ours.** The compile axis was\n originally proposed (PyAutoMind, 2026-07-14) to cover the release-validation\n heavy scripts blowing the 300 s cap. That was declined on the hygiene boundary\n above — script-suite cost is the developer loop, and it had already been moved\n out of this agent's staged future modes once. Recorded here so the question is\n not re-opened a third time." + }, + { + "id": "cortex", + "repo": "PyAutoCortex", + "path": "AGENTS.md", + "commit": "b66d7fd0a20197d0283da8b802059654e891a3ec", + "url": "https://github.com/PyAutoLabs/PyAutoCortex/blob/b66d7fd0a20197d0283da8b802059654e891a3ec/AGENTS.md", + "excerpt": "## What this repo is\n\n**The Mind decides what to build, the Brain routes the work and executes\nnothing, the Cortex keeps track of what is true.** The Cortex is a\n**project ledger**: `project → runs → log`. It owns two pieces of state no\nother organ holds — the **science body map** (`projects.yaml`: every science\nproject, where it lives on the laptop and on RAL, how it syncs, where its own\ncommentary ledger is) and **one ledger per project** (`projects/.md`:\nwhere the human is with it, what is on the cluster, and a dated history of\nwhat they set off, saw and learned).\n\nIt is **not a second PyAutoMind**, and it is **not a task tracker**\n(2026-09-12, schema decision 60). Science is not worked as a queue of\npre-registered questions that get done and retired: the human does runs, looks\nat results, thinks, and organically decides where to go next. So a ledger\nholds no state machine, no witness, no verdict — it holds a **Now**, the\n**Runs** on the cluster, and a **Log** that only ever gets longer. The board is\na live view of what has been going through the human's head on each project,\nand the thing that makes a project easy to pick up after time away.\n\n**Nothing in a ledger is inferred from results.** A run's submission, start\nand end are cluster facts and the script records them. A `result` or a\n`lesson` is the human's own words, written on their ask. An agent that reads a\nresults file tells the human what it sees; the human says what to log.\n\nThe schema — the ledger file, the run and log line grammars, the\n`projects.yaml` subset — and the `scripts/cortex.py` verbs are in\n[REFERENCE.md](REFERENCE.md). Every choice is dated in\n[docs/schema_decisions.md](docs/schema_decisions.md); read decisions there, do\nnot re-derive them." + }, + { + "id": "inference", + "repo": "autolens_inference", + "path": "AGENTS.md", + "commit": "656c348fe39e0acca7e6e92fe1f0fb3f55060dc6", + "url": "https://github.com/PyAutoLabs/autolens_inference/blob/656c348fe39e0acca7e6e92fe1f0fb3f55060dc6/AGENTS.md", + "excerpt": "# autolens_inference — Agent Instructions\n\nThis repo is the single home for **PyAutoLens inference measurement**: which non-linear\nsearch — gradient-free or gradient-based — finds the right lens model, how reliably, and\nat what cost, on CPU and on A100 GPUs. It is the sibling of\n[`autolens_profiling`](https://github.com/PyAutoLabs/autolens_profiling), which owns\nlikelihood **timing**; this repo owns everything downstream of one likelihood call:\nsamplers, pipelines, convergence, reliability, and the wall-clock price of an answer." + }, + { + "id": "workflow", + "repo": "PyAutoBrain", + "path": "skills/WORKFLOW.md", + "commit": "0f7831b8a73641bb0add82ac3ed02d2edf565153", + "url": "https://github.com/PyAutoLabs/PyAutoBrain/blob/0f7831b8a73641bb0add82ac3ed02d2edf565153/skills/WORKFLOW.md", + "excerpt": "## Memory and planning\n\nFor substantial architectural or scientific planning, consult\n`bin/pyauto-brain memory \"\"`, read only the cited pages, and proceed\nhonestly when it has no matches. PyAutoMemory citations never enter public\nuser-facing output.\n\n`start_dev` produces both a short human plan and a detailed issue plan, surveys\nonly affected repos, then uses Mind's `create_issue` primitive. Do not duplicate\nissue or lifecycle mechanics in Brain.\n\n## Task state and worktrees\n\nMind paths are relative to its resolved checkout: `active.md`, `planned.md`,\nand prompt lifecycle `draft/ → active/ → complete/YYYY/MM/`. Use Mind's\nlifecycle and prompt-sync scripts; do not hand-roll state transitions.\n\nLocal tasks use the Brain checkout's `bin/worktree.sh` and\n`feature/` branches. `worktree_check_conflict` fails closed when it\ncannot read the registry. A repo bullet beneath an active task's `repos:` is a\nclaim; tasks touching the same repo serialize unless a human explicitly\nauthorizes coordination. Source the generated `activate.sh` before Python or\ntests.\n\nIn web/CI sessions with clones, use those clones and explicit cache/PYTHONPATH\nsettings. A GitHub-control-only session may have no clone at all: it operates on\nremote branches/files and records no fake `worktree:` path. The same Mind\nregistry and branch/commit provide continuity across environments." + } +] diff --git a/research/ecosystem_routing_trial/system.txt b/research/ecosystem_routing_trial/system.txt new file mode 100644 index 00000000..1a83eb50 --- /dev/null +++ b/research/ecosystem_routing_trial/system.txt @@ -0,0 +1 @@ +You are evaluating repository ownership and next-action routing. Use only the supplied cases and policy excerpts. Return concise routing decisions grounded in the evidence. Do not perform actions. From 71aa4b20bcd199e6bcf20daa462f2727a8a86d21 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 1 Oct 2026 21:08:57 +0100 Subject: [PATCH 2/2] docs: specify profiling and inference organ read contracts --- docs/research/ecosystem_routing_trial.md | 2 + docs/research/profiling_inference_organs.md | 271 ++++++++++++++++++++ 2 files changed, 273 insertions(+) create mode 100644 docs/research/profiling_inference_organs.md diff --git a/docs/research/ecosystem_routing_trial.md b/docs/research/ecosystem_routing_trial.md index e79effa9..ad1d257a 100644 --- a/docs/research/ecosystem_routing_trial.md +++ b/docs/research/ecosystem_routing_trial.md @@ -123,6 +123,8 @@ produced by each project, dashboard responsibilities, and the Brain/Cortex/Heart boundaries. This trial neither implements nor validates those future organs. The separately filed inference documentation reconciliation also remains separate. These are proposed follow-ups for human prioritization, not newly filed tasks. +The subsequent authorized [organ specification](profiling_inference_organs.md) +defines the proposed read contracts and rollout without changing this trial. This study has six curated hypothetical cases, an authored answer key, one paired sample and one model family. The fixed order, common answer scaffold, source diff --git a/docs/research/profiling_inference_organs.md b/docs/research/profiling_inference_organs.md new file mode 100644 index 00000000..8202c81d --- /dev/null +++ b/docs/research/profiling_inference_organs.md @@ -0,0 +1,271 @@ +--- +orphan: true +--- + +# Profiling and inference organs: proposed read contracts + +**Design proposal — 2026-10-01, [Brain #444](https://github.com/PyAutoLabs/PyAutoBrain/issues/444).** +This specifies two future cross-project dashboards. It does not create organs, +change producer schemas, migrate artifacts or introduce new agent commands. +The descriptive names **profiling organ** and **inference organ** are placeholders; +repository names remain a human choice at implementation time. + +## Decision + +Use two domain-specific organs, each with an instance registry and a versioned +read contract. Many profiling projects can feed the profiling organ; many inference +projects can feed the inference organ. Keep domain producers and measurement +semantics in their project repositories. An organ owns the cross-project view, +registry and ingestion diagnostics; the Brain and human own interpretation and +next-action decisions. This follows the [adopted responsibility roles][roles] and +[Eyes' project/organ/conductor separation][eyes]. + +A dashboard alone does not make a repository an organ. The proposed organ's +additional responsibility is maintaining a reliable view across independently +owned projects. Start with the existing lens project and a second real producer +before declaring the cross-project rollout complete. A second-project fixture can +test the reader early; it cannot substitute for a real adopter. Do not manufacture +empty sibling repositories just to satisfy that milestone. + +The [routing trial](ecosystem_routing_trial.md) does not justify adding a mandatory +checklist or one agent per role. Existing conductors remain the action doors. The +original three roles describe responsibilities, not a containment hierarchy: +a project may supply several organs, and an organ may read many projects and +libraries. Repository category and release mechanics remain unchanged. + +## Ownership and existing starting points + +| Responsibility | Profiling | Inference | +|---|---|---| +| Produce measurements | Each `*_profiling` project | Each `*_inference` project | +| Own raw artifacts and domain summaries | Project, including provenance and pins | Project, including retained samples and convergence diagnostics | +| Own cross-project registration and display | Proposed profiling organ | Proposed inference organ | +| Judge an observation | Brain profiling conductor with human | Human scientist through the Cortex check-in; samplers faculty may advise | +| Record development work | Mind, via intake/bug/start_dev | Mind, via intake/bug/start_dev | +| Record scientific observations and lessons | Cortex on the human's instruction | Cortex on the human's instruction | +| Issue release-health verdict | Heart | Heart | +| Run packaging/release mechanics | Hands through existing workflow | Hands through existing workflow | + +The [profiling producer][profiling-dashboard] already writes +`dashboard/series.json`, `dashboard/state.json` and `dashboard/index.html`. Its +series describe release trends; qualification and drift are project rules. Its +runtime badge uses a 2x ratio and 1 ms floor, distinct from the compile conductor's +1 s floor. Preserve that distinction and expose the source policy; do not impose +one threshold across axes or projects. + +The [inference renderer][inference-renderer] reads project result JSON and builds +README tables. It handles multi-stage payloads and parity groups; that is not yet +a declared cross-project exchange contract. [Inference instructions][inference] +keep large samples/output outside git and commit small result rows. An organ +links to available evidence instead of copying posterior output into its own repo. +Do not revive or cite the retired inference programme as evidence for this design. + +The inference instructions still contain older Cortex task/ruling wording. +For this specification the [current Cortex contract][cortex] is authoritative: +project ledgers have Now, Runs and Log; they are not a second development queue. +The separately filed documentation reconciliation remains separate work. + +## Two interfaces, with different consumers + +**Project → organ:** a proposed versioned, domain-specific summary, generated by +the project from its own artifacts. Its path is registered explicitly; no producer +must adopt a guessed conventional filename. Project implementations adapt their +existing formats once. The organ does not scan arbitrary result trees, import +scientific libraries or reconstruct scientific meaning from filenames. + +**Organ → Brain board:** the existing [cockpit state contract][board], with the +organ's identity and links to the detailed cross-project dashboard. Its `updated` +is the render time, and `valid_until` is an optional producer-declared deadline; +a fresh render must not imply fresh measurements. The domain summary below is +not a replacement for `state.json` and must not be validated as that schema. + +The existing profiling project feed happens to use `organ: profiling`. That +legacy wire label is not proof that the project is already an organ. During +transition keep the project page/feed working. When a real organ is registered, +update the Brain board's source and identity in the same rollout step, retaining +a clear link to the project page and avoiding duplicate cards for the same scope. +Do not silently repoint a feed before the new consumer contract is tested. + +## Proposed project registry + +Each organ owns a registry with a version and one row per instance: + +| Proposed field | Meaning | +|---|---| +| `instance` | Stable key within the organ; unique and independent of display name | +| `repo` | Existing Mind body-map repository identity | +| `summary_path` | Repository-relative path of the producer's declared summary | +| `supported_schema` | Domain contract/version the reader expects | +| `dashboard_url` | Human-facing project view | +| `library_refs` | Zero or more body-map identities exercised by this project | +| `cortex_project` | Optional existing Cortex key, not a copied ledger | + +Resolve repository location and GitHub identity through the body map; do not +create a second authoritative repository catalogue. Resolve the selected branch +to one commit for each ingest and read all that instance's files at that commit. +Store the resolved commit in the organ's derived receipt. An explicitly requested +local read reports its checkout revision and dirty state and cannot masquerade as +a published snapshot. No hard-coded local absolute paths belong in the registry. + +One project may have several declared scopes, but identity must remain explicit +and disjoint. Do not register the same summary twice under different names to +inflate coverage. Adding a producer requires a validated fixture and documented +ownership; discovery by a `*_profiling` or `*_inference` name alone is insufficient. + +## Proposed summary envelope + +These fields are a **new proposal**, not claims about current producer files. +Use separate domain schemas (`profiling-summary` and `inference-summary`) with +an integer version and a small common envelope: + +| Field | Requirement | +|---|---| +| `schema`, `version` | Known domain and supported integer contract version | +| `project`, `scope` | Match the registry and declare what this feed covers | +| `generated_at` | UTC summary generation time | +| `evidence_updated_at` | Latest included measurement timestamp, or null with reason | +| `valid_until` | Optional declared freshness deadline; absence means unspecified | +| `producer_revision` | Commit of the producer code used to generate this summary | +| `coverage` | Declared expected cells/runs where known, observed counts and exclusions | +| `records` | Stable record IDs, provenance, domain fields and evidence links | +| `limitations` | Explicit missing provenance, diagnostics or coverage constraints | + +The ingestion commit is recorded by the reader, separately from producer code +revision and measured library revisions. This avoids a generated file trying to +contain the hash of the commit that will first contain it. Record library/package +versions and revisions when known; do not infer them from the current checkout. + +Evidence links resolve against the captured repository commit or an explicitly +identified immutable artifact. Carry a digest when the artifact format provides +one. Link lifetime or access restrictions must be visible; a missing remote sample +archive does not erase the small result row. Public dashboards must not expose +private storage paths, credentials or raw private science payloads. + +Reject unsupported versions, duplicate IDs, invalid dates, unsafe relative paths +and non-finite numeric metrics. Required missing fields make a feed invalid. +Optional unknown values use null plus a reason, never zero or a success default. +Ignore additive fields that do not change existing semantics. Breaking changes +require reader support first, then producer migration; preserve old-version support +through the declared transition. The organ validates the exchange contract, while +the project validates its domain semantics. + +## Profiling domain contract + +A record identifies the measurement axis (runtime, compile, breakdown or memory), +workload/cell, dataset/model/instrument or component identity, backend/device, +precision, implementation variant, dependency versions, timing protocol and units. +Keep warm-up/cache/load provenance and repeat counts when measured; mark gaps. +A memory value cannot enter a seconds series, and a component timing cannot be +presented as a full likelihood cost. + +For comparisons, require the producer's explicit comparison key, policy identifier, +baseline reference and reasons for qualification or refusal. Distinguish release +trend display from evidence sufficient to declare regression. Library revision +may intentionally vary in a release comparison; the policy must name that axis +and the controls that must match. A config label alone is not comparability proof. +Missing controls permit a contextual plot with warnings, not an unqualified ratio +or winner badge. Historical trends may remain useful without being comparable. + +The organ displays project-supplied drift candidates and provenance. It does not +move pins, combine unmatched timings, apply the compile threshold to runtime, +compute an ecosystem-wide speed score or issue a Heart verdict. A drift item links +to its pair of records and offers the existing profiling triage door. A confirmed +library defect subsequently takes the normal Mind development route. + +## Inference domain contract + +A record identifies target, dataset/model/pipeline variant, sampler/configuration, +backend/device, precision, seed and stage or whole-run scope. Preserve parent-run +identity for a multi-stage pipeline. Record execution status separately from +scientific acceptance: a completed process is not proof of convergence. + +Report setup, sampling and total wall time with explicit definitions, including +whether compile, resume or parallel work is included. Unknown setup cost remains +unknown; overlapping stage durations must not be blindly summed into a total. +Retain links to samples, diagnostic histories and raw result rows, with availability +status. Include diagnostic names/values when provided and an explicit `not_assessed` +state when they are absent. No universal convergence threshold is introduced here. + +Preserve the project's parity identity and seed grouping. Compare cost only among +compatible targets and execution definitions; compare scientific quality only +under a declared project protocol, retaining failed and stopped runs as visible +coverage rather than removing them from the denominator. Do not rank samplers by +fastest wall time across different models or silently select the best seed. + +The organ can display “diagnostics missing”, “run stopped” or “human interpretation +linked”. It cannot promote a default sampler, infer a lesson or turn missing +posterior evidence into success. Human conclusions link to Cortex's existing +record instead of being independently editable dashboard verdicts. Science follow-up +uses Cortex; a summary-script defect uses bug/intake/start_dev; the read-only +samplers faculty provides optional context. No inference conductor is invented. + +## Dashboard, failure handling and action boundaries + +The first page shows one row per registered project with scope, evidence time, +last fetch, coverage and links. Domain detail pages retain project identity and +allow comparable groups to be inspected. Avoid a global league table across +unrelated scientific tasks. Show missing and refused evidence alongside valid data. + +Keep three distinct notions visible: transport/schema integrity, evidence freshness, +and scientific qualification. A valid empty feed says “no measurements”; it is not +“all measurements passed”. Partial ingestion must report which instances failed. +The organ can retain the last successful snapshot, but label it cached, retain its +original evidence timestamp and show the new fetch error. Never refresh a cached +record's age by rerendering the page. + +An explicit expired deadline makes evidence stale. Without a declared age policy, +show the age and “freshness policy unspecified”; do not invent a global TTL. Healthy +transport cannot make unknown scientific quality green. Cockpit status summarizes +the organ's own monitoring scope, with reasons and coverage, not ecosystem release +readiness. Feed failures and stale evidence must remain visible even if some +projects report more urgent domain findings; every summary links to the full list. + +Action chips use the existing board's action descriptors and safety metadata. +A link opens evidence; a prompt proposes a manual handoff. Fetching/rendering never +submits jobs, re-pins a baseline, logs a lesson, edits source or grants approval. +Actions retain the project key and evidence revision so an agent can read the +relevant project and contract without loading every repository. + +## Implementation sequence and acceptance + +1. **Publish one project contract per domain.** Add small project-owned exporters + over existing results, fixtures and schema checks. For profiling adapt the + current series output without changing historical results or drift policy. + For inference retain pipeline/seed identity and unavailable sample links. + Resolve the existing inference worktree claim before editing that repository. +2. **Build organ readers and dashboards.** Choose repository names, register organ + identities, implement the registries and versioned readers, and add one lens + adopter plus fixtures for multiple independent producers. Keep rendered output + reproducible from captured inputs; it must work without scientific imports. +3. **Onboard a second real project in each domain.** Demonstrate different project + conventions behind the same domain contract. Only then declare cross-project + support complete. Register cockpit feeds and transition the existing profiling + card; retain project dashboards and result ownership. + +These are candidate implementation tasks, not newly filed work or authorization +to create repositories. Organ names and actual second adopters remain open choices; +those choices do not prevent defining the contracts now. No shared framework is +needed before two concrete exporters/readers demonstrate reusable code. + +Acceptance cases for implementation: valid empty producer; one project unavailable; +unsupported schema; duplicate record ID; stale cached snapshot; unknown provenance; +compile/runtime mismatch; changed hardware; changed scientific target; missing +convergence evidence; failed inference seed; partial pipeline; and unavailable +sample archive. A second producer must register without changing the reader's +project-specific branching. Displayed values must trace to a captured source; +no test may require production HPC runs or changes to scientific conclusions. + +## Sources and status + +Sources are pinned to the inspected commits. Current-state descriptions above come +from those files; registry/envelope fields, ingestion behavior and rollout are +proposed design. The prior Memory consultation supplied project history; this +proposal uses public repository contracts as its inspectable evidence. + +[roles]: https://github.com/PyAutoLabs/PyAutoBrain/blob/6ea15719854f19a3c9a8f2d0c828fbfdfbc8e3cc/ORGANISM.md +[eyes]: https://github.com/PyAutoLabs/PyAutoEyes/blob/33cde97da61bdbb03a85d020c284404dc399828c/REFERENCE.md +[profiling-dashboard]: https://github.com/PyAutoLabs/autolens_profiling/blob/227b5c919b1c205962427a6f48fe233770220a69/scripts/misc/tooling/build_dashboard.py +[inference-renderer]: https://github.com/PyAutoLabs/autolens_inference/blob/656c348fe39e0acca7e6e92fe1f0fb3f55060dc6/scripts/misc/tooling/build_readme.py +[inference]: https://github.com/PyAutoLabs/autolens_inference/blob/656c348fe39e0acca7e6e92fe1f0fb3f55060dc6/AGENTS.md +[cortex]: https://github.com/PyAutoLabs/PyAutoCortex/blob/b66d7fd0a20197d0283da8b802059654e891a3ec/REFERENCE.md +[board]: https://github.com/PyAutoLabs/PyAutoBrain/blob/6ea15719854f19a3c9a8f2d0c828fbfdfbc8e3cc/board/state_schema.json