Skip to content

feat(stack): managed-block sync for inlined agents (Mavis)#12

Merged
Rwanbt merged 1 commit into
mainfrom
feat/managed-block-sync
Jun 19, 2026
Merged

feat(stack): managed-block sync for inlined agents (Mavis)#12
Rwanbt merged 1 commit into
mainfrom
feat/managed-block-sync

Conversation

@Rwanbt

@Rwanbt Rwanbt commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Why

Completes the non-destructive update story. Claude Code/Cursor/Codex reference AGENTS.md via @import; MiniMax/Mavis has no import directive, so its method must be physically inlined — and would diverge if hand-maintained.

What

scripts/sync_inlined_method.py regenerates a STACK:BEGIN/END managed block from AGENTS.md:

  • Replaces only the bytes between markers — the agent's personal/tool-specific sections outside the block are never touched.
  • Backs up the target before writing.
  • --check mode for CI/pre-commit (exit 1 if stale).
  • Refuses to guess an insertion point if markers are absent (never edits a file it doesn't own).

Docs: UPDATING.md managed-block section now shows the sync command; CHANGELOG updated.

Verification

  • sync replaces block + backs up ✅
  • --check after sync → OK exit 0 ✅
  • personal regions above/below the block preserved ✅
  • missing markers → clean error exit 3 ✅

Claude Code/Cursor/Codex reference AGENTS.md via @import. MiniMax/Mavis has no
import directive, so its method must be inlined — and would diverge if hand-
maintained. sync_inlined_method.py regenerates a STACK:BEGIN/END managed block
from AGENTS.md, replacing only the bytes between markers (everything outside,
i.e. the agent's personal/tool sections, is untouched). Backs up before writing;
--check mode for CI/pre-commit.

This completes the non-destructive update story for inlined targets, per
UPDATING.md's managed-block convention.
@Rwanbt
Rwanbt merged commit b753d9e into main Jun 19, 2026
5 checks passed
@Rwanbt
Rwanbt deleted the feat/managed-block-sync branch June 19, 2026 07:36
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