Skip to content

Make #192 codegen docs carry cleanly into derived repos (#193) - #194

Merged
ptr727 merged 1 commit into
developfrom
docs-portable-carry-193
Jun 23, 2026
Merged

ptr727 merged 1 commit into
developfrom
docs-portable-carry-193

Conversation

@ptr727

@ptr727 ptr727 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Closes #193. Two derived-repo carry-friction items surfaced by ptr727 while re-syncing LanguageTags against develop after #192. Neither was wrong in the template, but each bit the verbatim/adapted carry. Both are the "describe what/why, not how" principle for a template repo.

1. Dead intra-doc anchor in the mandated-verbatim "PR Review Etiquette" section

The callout ended with See [Files and Sections Derived Repos Must Carry Verbatim](#...), whose target lives under the hub-only "Quick Start for Derived Projects" — which derived repos don't carry. So a verbatim carry dropped a broken MD051 link into every derived repo. Removed the trailing pointer; the hub's registry still links to this section one-directionally, so hub navigation is intact.

2. Codegen-determinism bullet was welded to the API-Ninjas demo

The #192 rewrite mixed the carryable principle with demo specifics (daily-stable quote-of-the-day, day-boundary self-heal, --runtime), which a derived repo reading static registries can't carry verbatim. Split into:

  • Principle (carry): the codegen workflow regenerates committed files via a per-branch matrix; output must be deterministic from its inputs, never per-run state. What is regenerated (data, source, or both; code or pure data) and how (download/process external source, transform local inputs, etc.) is the derived repo's concern — the template constrains only input-determinism, not the mechanism.
  • Template demo only (drop when adopting): the CodeGen/ quote-of-the-day example + --runtime local demo, clearly marked as droppable (mirroring how .editorconfig's EOL block is always-verbatim while [*.cs] is .NET-only).

Also stopped naming sibling repos in the carried text (cross-repo references break in derived repos).

Note (not changed)

AGENTS.md line ~115 (Line Endings) and line ~254 (Quick Start) also reference that registry anchor, but they sit in hub-context sections, not a mandated-verbatim prose contract, so they aren't the same dead-link-downstream problem. Flagging in case you want them normalized too.

Docs-only; line endings preserved.

🤖 Generated with Claude Code

Two derived-repo carry-friction items surfaced re-syncing LanguageTags:

- Drop the dead intra-doc anchor from the mandated-verbatim "PR Review
  Etiquette" callout. Its target lives under the hub-only "Quick Start for
  Derived Projects", which derived repos don't carry, so a verbatim carry
  left a broken MD051 link in every derived repo. The hub registry still
  links to this section one-directionally.
- Split the codegen-determinism bullet into a provider-agnostic principle
  (carry) and a clearly-marked "template demo only - drop when adopting"
  note (the API-Ninjas quote/day-boundary/--runtime specifics). The
  principle now describes the what/why - regenerate committed files,
  output deterministic from inputs, never per-run state - and leaves the
  how (what is generated, code or pure data, how the source is read) to
  the derived repo. Also stops naming sibling repos in carried text.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 23, 2026 18:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates AGENTS.md to make two pieces of mandated documentation carry cleanly into repos derived from this template, avoiding downstream-only anchors and separating a portable codegen determinism principle from template-specific demo details.

Changes:

  • Removed a dead intra-doc anchor from the mandated-verbatim "PR Review Etiquette" callout so derived repos do not inherit a broken link.
  • Rewrote the codegen determinism guidance to (a) state the carryable, repo-agnostic principle and (b) isolate the template's CodeGen/ demo details as explicitly droppable adoption guidance.

@ptr727
ptr727 merged commit 82df99a into develop Jun 23, 2026
5 checks passed
ptr727 added a commit that referenced this pull request Jun 23, 2026
Promotes the current `develop` head to `main` for release.

Contents:
- **#192** — Make CodeGen deterministic-from-external-source; converge
codegen/merge-bot workflows with downstream (drops the per-build
timestamp + `get-runtime` state-sharing; merge-bot hardened to
`pull_request_target`; periodic concurrency workflow-only group).
- **#194** — Make the #192 codegen docs carry cleanly into derived repos
(closes #193: dead-anchor removal + split codegen principle from demo
specifics).

Standard release promotion: merge (not squash). A separate
`publish-release.yml` dispatch performs the actual release after this
lands.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@ptr727
ptr727 deleted the docs-portable-carry-193 branch July 7, 2026 21:05
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