brain-link-discipline
Enforces that whenever the agent reports a created or edited knowledge-base page, it derives the correct hosted URL mechanically from git, pushes before linking, verifies the link resolves, and includ
What it does
When you report a brain page to the user — created, edited, committed, or relayed from a subagent — a working link is part of the deliverable, in the SAME message. Derive the path mechanically (git ls-files --full-name), push BEFORE linking, verify the link resolves when a hosted remote exists, and degrade through a defined fallback chain when it doesn't. Inside brain pages the rule inverts: relative links preserve the link graph; absolute URLs are for chat deliverables only.
Quality judgment
Exceptionally thorough: mechanical path derivation, push-before-link ordering, verification with token-safety caveat, fallback chain, subagent relay rewrite, anti-patterns, and dedup boundaries. Triggers are described in prose but no explicit frontmatter trigger list is included, slightly weakening routing reliability; everything else is near-exemplary.