Skip to content

feat: route profiling decisions through the project catalogue #477

Closed

Description

@Jammy2211

Route profiling through the project source catalogue

Type: feature
Target: PyAutoBrain
Repos: PyAutoBrain
Difficulty: medium
Consequence: judge
Autonomy: human-required
Filed: 2026-10-06

Primary repo: @PyAutoBrain. Standalone organ task, no library changes.
Parent: draft/feature/pyautopulse/profiling_setup_browser.md, approved Phase 4.
Dependency: autolens_profiling#380 source manifest, available in isolated worktree;
retain compatibility with the current main producer until project migration merges.
Branch: feature/profiling-catalogue-routing
Worktree: /home/jammy/Code/PyAutoLabs/.worktrees/profiling-catalogue-routing

Approved high-level plan

  1. Read the versioned project script catalogue without scientific imports.
  2. Replace sweep CELLS AST assumptions when the producer is available, retaining
    explicit legacy fallback for pre-migration checkouts only.
  3. Keep dry-run decisions, CPU caps, output identities and evidence qualifications.
  4. Test current/legacy/malformed/missing producers and local migration integration;
    review and evaluate current shipping gates in a separate PR.

Tier: judge — merge mode: human /prm.

Detailed plan

  • agents/conductors/profiling/_profiling.py: stdlib reader for local
    catalogue/script_routes.json or published dashboard/catalogue.json script_routes.
    Validate schema/version, safe source paths, unique cell IDs and instrument lists.
    Fail explicitly on malformed/unknown data rather than invent empty coverage or
    silently fall back. Missing new producer may use existing legacy AST reader.
  • Surface source/provenance/qualification on campaign decisions. Existing archive
    presence is unreviewed coverage, never accepted baseline/current performance.
    Preserve compile/runtime distinction, pins and unavailable compile builder status.
  • Keep CPU per-run timeout and dry-run behavior. No execution or new baseline steps.
    Update affected profiling agent/skill docs and tests only. No ownership changes.
  • Exercise legacy/new producer fixtures, unknown schema, unsafe paths, duplicates,
    missing producer and CLI decision integration against the Phase4 project tree.

Coordination

Human explicitly answered "Allow isolated Brain coordination" on 2026-10-06 for
active Brain claims #469–472. Work is isolated from those branches and touches only
profiling conductor, its tests and related docs. Existing main clean; no merge or
Heart RED override carried forward. Project migration is independently tracked #380.

Original request (verbatim)

Resume the profiling redesign at Phase 4: dataset/model script migration and Brain routing.

Read PyAutoMind/draft/feature/pyautopulse/profiling_setup_browser.md and the completion records for profiling-setup-page and profiling-setup-browser. Project PR autolens_profiling#379 and Pulse PR #13 are merged; verify current state before proceeding.

The overall redesign plan is already approved. Follow start-dev and create the next task/worktree without asking me to approve the same scope again.

Inventory scripts and callers, then migrate toward:
scripts///.py

Preserve numerical behavior, CLI arguments, output destinations and existing results. Keep thin compatibility wrappers for old paths. Update imports, sweep/compile dispatch, HPC scripts, tests and documentation. Validate without submitting profiling jobs. Then update Brain's profiling routing in a separate task/PR.

Keep evidence qualification and unknowns explicit. Do not launch a baseline campaign, accept archived measurements as baselines, or restore temporal charts.

Continue through implementation, testing and review. Apply current shipping gates; do not infer a new Heart RED override or merge authorization from previous sessions.

Activity

  1. Jammy2211 commented on Oct 6, 2026

    @Jammy2211
    ContributorAuthor

    Implemented in PR #478 at 9021e63; not merged.

    Versioned local/published catalogue routes replace sweep-layout assumptions with explicit legacy fallback and unknown/error states. Historical IDs and CPU policy remain intact. Missing sources and unavailable compile builders suppress dispatch; archived coverage remains unreviewed.

    Validation: 1,230 full Brain tests and 48 final conductor tests passed; live old/new project runtime coverage/usability/dispatch match. Tenant firewall, discovery, syntax pass. Independent review CLEAN after fixing declared compile-probe path/availability. Exact-head Python3.12/3.13 CI pending at handoff.

    Heart STALE: release validation stale: source moved since rehearsal (PyAutoNerves). No RED/YELLOW reasons, no override; development shipping permitted, release blocked. No profiling jobs, baseline acceptance or merge performed. Project companion PR381 has exact-head lint SUCCESS. Human /prm remains the merge door.

  2. Jammy2211 commented on Oct 6, 2026

    @Jammy2211
    ContributorAuthor

    Profiling catalogue routing in Brain

    Completed: 2026-10-06
    Issue: #477
    PR: #478
    Merge commit: fb82b9d

    Added stdlib routing from the project's local manifest or published v2 catalogue. Legacy AST fallback applies only when the new producer is absent. Invalid/missing routes retain explicit unknown coverage; unsafe identities are rejected. Runtime cell/output identities and CPU caps are preserved. Missing sources and unavailable compile builders suppress dispatch; available compile probes use their declared source path.

    Validation: full Brain suite 1,230 passed; final conductor suite 48 passed; tenant firewall, discovery and syntax passed. Live old/new project integration matched runtime decision fields across 22 grid cells. Independent review CLEAN after its compile-path finding was fixed. Exact-head CI run 37436134919 passed every job/step on Python 3.12 and 3.13 at 9021e63.

    Heart STALE: release validation stale: source moved since rehearsal (PyAutoNerves). Current dev-ship policy allowed shipping; no RED override. Human /prm authorized merge on 2026-10-06. Branch ancestry proved against fetched origin/main after merge. Isolated Brain coordination was explicitly authorized.

    Archive presence is unreviewed evidence, never an accepted baseline. Generic compile builder remains unavailable. No jobs, campaigns, baseline acceptance or temporal charts. Parent phases 5–6 remain unstarted. Project migration merged first as autolens_profiling#381.

    Validation evidence archived locally under .worktree-archives/profiling-phase4-20261006/profiling-catalogue-routing/ with copy hashes verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions