Skip to content

feat: resumable local Broca setup for independent Scientists #16

Closed

Description

@Jammy2211

Overview

Provide resumable local setup for an independently named Broca data directory, continuing the Scientist adoption pilot.

Plan

  • Preview and initialize empty user-owned configuration.
  • Resume interruptions safely and preserve existing records.
  • Validate and render truthful empty evidence with a fresh-chat handoff.
  • Test recovery, conflicts and integration with the existing feed contract.

Tier: judge — merge mode: human /prm.

Branch survey

PyAutoBroca: clean main; no conflicting claim. Proposed branch: feature/scientist-broca-setup.
Only Broca implementation changes; Scientist is an integration consumer.

Approved detailed plan and original request

Resumable local Broca setup for an independent Scientist

Type: feature
Epic: scientist-adoption-pilot
Target: PyAutoBroca
Difficulty: medium
Autonomy: supervised
Consequence: judge
Status: proposed

Original request

WE have been doing work on making PYAutoScientist useful generally, can we continue that where we left it

Recovered handoff

Continue scientist_optional_organ_activation.md. Starter conversational acceptance,
validated organ connections and Broca's live feed acceptance are complete. The next
bounded slice is owner-specific resumable setup. @PyAutoBroca owns implementation;
reuse @PyAutoScientist's existing connection validator without changing its contract.

Proposed scope

Add an offline preview/apply setup command for an independently named, user-owned
Broca data directory. Initialize empty configuration and required state through
Broca-owned schemas, without copying maintainer measurements. Persist enough local
setup information to inspect and resume an interrupted setup; refuse conflicting
files and preserve existing records. Validate canonical repository identity and
explicit Pages location. Reuse existing check/render/state validation to produce a
local board and feed with truthful empty/unknown evidence. Explain the subsequent
publication and Scientist connection steps in a fresh-chat handoff.

No remote creation, publishing, schedules, assistant evaluation, Scientist lifecycle
UI, upgrades or collaborator access in this slice. Actual activation remains pending
until the existing public-feed connection gate succeeds.

Detailed implementation plan awaiting approval

  • broca/setup.py (new): prepare a deterministic file plan; validate identity using
    the supplied canonical map; implement apply/resume with conflict detection and
    preservation of user changes. Track setup artifacts only, not a second task ledger.
  • broca/__main__.py: expose setup preview/apply and owner validation through the
    existing CLI, allowing setup before assistants.json exists.
  • Reuse broca/collect.py, broca/records.py and broca/state.py schema/validation
    owners; change them only if required to support truthful empty initial state.
  • tests/test_setup.py (new): empty destination, interrupted resume, identical retry,
    conflicting configuration, invalid identity and byte-preserved existing records;
    integration check/render/feed validation for a differently named synthetic instance.
  • README.md and a concise setup guide: explain preview/apply/resume, fresh-chat
    recovery and the explicit publication/connection boundary.

Route: start_workspace -> ship_workspace. Proposed branch:
feature/scientist-broca-setup. One implementation PR in Broca; human /prm.
Heart door on 2026-10-12: STALE (exit 1), planning permitted; ship gate remains due.

Approved by the user on 2026-10-12: "ok conitnue".

Activity

  1. Jammy2211 commented on Oct 12, 2026

    @Jammy2211
    ContributorAuthor

    Summary

    Independent Scientist users can now preview and initialize empty Broca data without copying maintainer records. Interrupted setup resumes by creating only missing files; conflicting files are preserved and reported. A private local handoff records validation and subsequent publication/connection steps.

    Closes #16.

    Scripts Changed

    • broca/setup.py: canonical identity validation, deterministic manifest, atomic create-only initialization/resumption and owner feed validation.
    • broca/__main__.py: setup preview/apply command before configuration loading.
    • tests/test_setup.py: interruption, conflict, preservation, identity and rendering integration coverage.
    • docs/setup.md, README.md: setup and fresh-chat instructions.

    Validation

    • 49 tests passed (python -m pytest -q).
    • Existing owner state validated: four assistants, 18 records.
    • Existing board and feed rendered successfully.
    • Synthetic differently named setup/check/render validates the shared feed; no collection remains grey with unknown time.
    • Diff whitespace check passed. Author review completed; no independent review claimed.

    Limits

    Local setup only; no remote provisioning, publication, activation UI, evaluation or upgrade support. Resume uses the same framework version and paths. Intentional edits to setup files require normal check/render rather than reinitialization. Scientist connection remains gated on a real valid HTTPS feed.

    Shipping gate

    Heart RED currently blocks commit/push/PR creation:

    • PyAutoFit: 1 commit(s) behind origin
    • PyAutoGalaxy: 1 commit(s) behind origin
    • PyAutoLens: 1 commit(s) behind origin

    Tier: judge — human /prm; no merge authority.

  2. Jammy2211 commented on Oct 12, 2026

    @Jammy2211
    ContributorAuthor

    Development-only Heart RED override — 2026-10-12

    The live user authorized Broca #16 to commit, push and open its PR: "I authroize, go".
    This answers the task-specific override request. Merge and release are not authorized.

    Current exact Heart RED reasons:

    • PyAutoFit: 1 commit(s) behind origin
    • PyAutoGalaxy: 1 commit(s) behind origin
    • PyAutoLens: 1 commit(s) behind origin

    Branch gates: 49 tests passed; existing owner check validates 4 assistants and 18
    records; existing board/feed render passed; author diff review and whitespace
    check passed. No independent review claimed. This change does not repair Heart.

  3. Jammy2211 commented on Oct 12, 2026

    @Jammy2211
    ContributorAuthor

    scientist-broca-setup

    • issue: feat: resumable local Broca setup for independent Scientists #16 (closed)
    • completed: 2026-10-12
    • workspace-pr: feat: resumable local Broca setup for independent Scientists #17 (MERGED)
    • merge: f6e04b0
    • summary: Resumable local Broca setup with explicit canonical identity, preview/apply, create-only files, conflict refusal, owner validation and private fresh-chat handoff.
    • validation: 49 local tests; existing owner check (4 assistants, 18 records); board/feed render; author diff review. Exact-head CI: push tests, PR tests and PR dashboard build passed; deploy intentionally skipped for PR event.
    • authorization: user approved plan, then development-only Heart RED override; separate $prm authorized merge and close-out.
    • Heart RED reasons at ship: PyAutoFit: 1 commit(s) behind origin; PyAutoGalaxy: 1 commit(s) behind origin; PyAutoLens: 1 commit(s) behind origin. This task does not repair Heart.
    • limits: local setup only; publication, activation state controls, upgrades and real collaborator acceptance remain separate. Reuse Scientist's existing HTTPS-feed connection boundary.
    • next: continue optional-organ publication/activation scope, then record-preserving upgrades and collaborator pilot.
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