Skip to content

feat: record-preserving Scientist runtime upgrades - #76

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/scientist-record-preserving-upgrade
Oct 12, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/scientist-record-preserving-upgrade

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Independent Scientist instances can record exact local Scientist/Brain revisions, validate a candidate pair against current configuration, and switch or roll back without replacing user records. A check/render launcher uses the selected pair, so the pins control execution rather than merely documenting it.

Closes #75.

Scripts Changed

  • scripts/instance_runtime.py: preview/apply initialization, upgrade and rollback; pinned check/render launcher; atomic manifest updates and protected-path drift checks.
  • tests/test_instance_runtime.py: revision, compatibility, record preservation, stale-input, failed-write and recovery coverage, including real owner validators in local Git clones.
  • docs/instance-upgrades.md, STARTER.md: registration, candidate review, protected paths and manual recovery.

Validation

  • 142 Python tests and 7 Node tests passed.
  • Real owner validator test rerun after adapting its second local revision for shallow CI clones.
  • Current project and independent lifecycle configuration checks passed.
  • Author diff/whitespace review passed; no independent review claimed.
  • Heart STALE: release validation incomplete: no rehearsal for current source. Development only; no release.

Behavior and limits

Only a private runtime manifest is intentionally written. Rollback validates current configuration and retains newer user records; it can recover from a broken current checkout. The previous pair must still be available and compatible. No fetch/pull/reset, environment installation, schema migration, owner-organ upgrade or hosted deployment occurs.

Protected paths are explicit; the profile directory and canonical map are always included. Git metadata is excluded and symlinks/special files are refused. Fingerprints detect drift but are not a sandbox or backup: validation executes trusted candidate Python, and unexpected record changes require manual inspection rather than automatic restoration. Checkouts, interpreter/environment and the launcher must be retained for reproducible recovery.

Tier: judge — merge mode: human /prm.

@Jammy2211
Jammy2211 merged commit 9eb3baf into main Oct 12, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/scientist-record-preserving-upgrade branch October 12, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: record-preserving Scientist runtime upgrades

1 participant