test: remove stale Key rules assertions from docs test
## Why The ## Key rules section was intentionally removed from AGENTS.md as redundant. Two test assertions — one requiring its presence in AGENTS.md and one confirming it was absent from CLAUDE.md — are now stale and block pushes. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -202,10 +202,6 @@ contains "## Structure" "$REPO_AGENTS" \
|
||||
&& pass "AGENTS.md: ## Structure section present" \
|
||||
|| fail "AGENTS.md: ## Structure section missing"
|
||||
|
||||
contains "## Key rules" "$REPO_AGENTS" \
|
||||
&& pass "AGENTS.md: ## Key rules section present" \
|
||||
|| fail "AGENTS.md: ## Key rules section missing"
|
||||
|
||||
contains "CONTEXT\.md" "$REPO_AGENTS" \
|
||||
&& pass "AGENTS.md: CONTEXT.md read instruction present" \
|
||||
|| fail "AGENTS.md: CONTEXT.md read instruction missing"
|
||||
@@ -216,10 +212,6 @@ contains "@AGENTS\.md" "$REPO_CLAUDE" \
|
||||
|| fail "repo CLAUDE.md: @AGENTS.md import missing"
|
||||
|
||||
|
||||
! contains "## Key rules" "$REPO_CLAUDE" \
|
||||
&& pass "repo CLAUDE.md: ## Key rules not duplicated (moved to AGENTS.md)" \
|
||||
|| fail "repo CLAUDE.md: ## Key rules still present — content not migrated"
|
||||
|
||||
! contains "## Structure" "$REPO_CLAUDE" \
|
||||
&& pass "repo CLAUDE.md: ## Structure not duplicated (moved to AGENTS.md)" \
|
||||
|| fail "repo CLAUDE.md: ## Structure still present — content not migrated"
|
||||
|
||||
Reference in New Issue
Block a user