Skip to content

feat(sync): keep framework blocks in AGENTS.md - #44

Merged
replworks-bot merged 1 commit into
mainfrom
t-029-preserve-agents-blocks
Nov 4, 2026
Merged

replworks-bot merged 1 commit into
mainfrom
t-029-preserve-agents-blocks

Conversation

@replworks-bot

Copy link
Copy Markdown
Collaborator

Summary

  • T-029: repl sync keeps framework-inserted blocks (<laravel-boost-guidelines> … </laravel-boost-guidelines>, <!-- BEGIN:nextjs-agent-rules --> … <!-- END:nextjs-agent-rules -->, and any block with the same line grammar) after the canonical AGENTS.md instead of dropping them.
  • Tag lines inside fenced code blocks, indented, or sharing a line with other text are not block lines.
  • An opening line without a closing line stops sync with an error that names the line number. No file is written and the exit code is 2.
  • repl check rule agents-canonical compares against the same expected text, so it no longer reports a violation right after sync.
  • PRODUCT_SPEC.md (new definitions, FR-017, FR-028–031, FR-045, ERR-008, AC-047–051), ARCHITECTURE.md (new C14 Preserved Block Reader, RD-13), and TASKS.md (T-029) are updated as confirmed by the human.

Tests

  • gofmt -l ., go vet ./..., golangci-lint run, go test ./...
  • go test -tags e2e ./... against the live canonical source, including the new preserved-block and unclosed-block E2E tests

🤖 Generated with Claude Code

repl sync now replaces AGENTS.md with the expected AGENTS.md: the
canonical content followed by every preserved block, such as
<laravel-boost-guidelines> or <!-- BEGIN:nextjs-agent-rules --> blocks.
Tag lines inside fenced code blocks, indented, or with other text on
the line are ignored. An unclosed opening line stops sync without
writes, and repl check compares against the same expected text.

Co-authored-by: Samgu Lee <cable8mm@gmail.com>
@replworks-bot replworks-bot self-assigned this Nov 4, 2026
@replworks-bot
replworks-bot merged commit 3e84fd2 into main Nov 4, 2026
2 checks passed
@replworks-bot
replworks-bot deleted the t-029-preserve-agents-blocks branch November 4, 2026 04:59
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.

2 participants