Skip to content

#47: decouple brain autosave commit from auto-push per-brain - #8

Merged
xianxu merged 2 commits into
mainfrom
000047-auto-push-for-private-but-published-repo-brain
Jun 8, 2026
Merged

xianxu merged 2 commits into
mainfrom
000047-auto-push-for-private-but-published-repo-brain

Conversation

@xianxu

@xianxu xianxu commented Jun 8, 2026

Copy link
Copy Markdown
Owner
  • #47: close — fix stale FindAllSharedBrainsInWorkspace doc ref (review minor)
  • #47: decouple brain autosave commit from auto-push per-brain

xianxu and others added 2 commits June 8, 2026 14:48
Every brain now gets the local autosave commit safety net (even with no
remote); auto-push stays opt-in for plain remotes. Replaces the single
shared-OR-gcrypt "watchable" predicate with a pure per-brain BrainPolicy
{Commit, Push, Pull, KeysAdmit} derived from (manifest, remote kind) —
ARCH-PURE (table-tested without a daemon) + ARCH-DRY (remoteKind reuses
brain.ReadOriginURL; deleted the bespoke hasGcryptRemote git exec).

New manifest field `publish: on|off` (default derived): `on` is the
"private but published" opt-in for a plain-remote brain; `off` pauses
only the push half (pull keeps running). gcrypt/shared brains push with
no field — no regression.

Also fixes a latent writer bug: renderFrontmatter never emitted
`autosave:`/`publish:`, so a recipient op (Read→mutate→RewriteFrontmatter)
silently dropped them. Both now round-trip.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… minor)

Boundary review (SHIP) flagged DiscoverAll's comment still naming the
pre-rename FindAllSharedBrainsInWorkspace. Plus the sdlc-close issue-file
flip (status: done, actual 1.27h).

Review-Verdict: SHIP
Review-Window: f8f6731..HEAD

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@xianxu
xianxu merged commit 0caebbd into main Jun 8, 2026
1 check passed
@xianxu
xianxu deleted the 000047-auto-push-for-private-but-published-repo-brain branch June 8, 2026 22:33
xianxu added a commit that referenced this pull request Jun 9, 2026
Personal Apple-account hygiene (FIDO2 keys, Advanced Data Protection, recovery
posture) belongs with the shared-brain security family that lives in nous
(nous#3/#8/#10/#11), not in brain's repo tracker — it has no brain code surface.
Renumbered brain#10 → nous#51 (nous#10 taken). brain/data/project/shared-brain.md
pointer updated separately in brain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant