ADHOC-2026-09-22-T01: statehub register renders {CREDENTIAL_ROUTING} into AGENTS.md
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 7184@bnt-lap001 Assistant-Session: 4b436ae2-b17c-4b40-8754-200b161b26e4
This commit is contained in:
parent
fafaced426
commit
19450d7618
3 changed files with 54 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ from __future__ import annotations
|
|||
|
||||
import argparse
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
import tomllib
|
||||
from pathlib import Path
|
||||
|
|
@ -100,6 +101,10 @@ def test_write_registration_files_primes_codex_repo(tmp_path: Path):
|
|||
assert "!.claude/rules/" in (tmp_path / ".gitignore").read_text()
|
||||
assert (tmp_path / "INTENT.md").read_text() == "# INTENT\n\nDemo service intent.\n"
|
||||
assert "**Repo slug:** demo-service" in (tmp_path / "AGENTS.md").read_text()
|
||||
agents_md = (tmp_path / "AGENTS.md").read_text()
|
||||
assert "{CREDENTIAL_ROUTING}" not in agents_md
|
||||
assert "warden route find" in agents_md
|
||||
assert not re.search(r"\{[A-Z_]+\}", agents_md)
|
||||
assert "Run the demo service." in (tmp_path / "SCOPE.md").read_text()
|
||||
workplan = (tmp_path / "workplans" / "DEMO-WP-0001-statehub-bootstrap.md").read_text()
|
||||
assert "id: DEMO-WP-0001" in workplan
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue