ADR-002: Downstream-in-spirit of claude-quickstart (deferred sync gating)
Status |
Accepted (amended by ADR-003: the sync-cutover direction is superseded; the never-edit rule for synced pages stands) |
|---|---|
Date |
2026-08-26 |
Deciders |
@bitskrieg (Chris Apsey) |
Tags |
standards, governance, template |
Context
Agency standards are distributed from the claude-quickstart template as
synced files, drift-gated by cargo xtask check-docs against
.claude/sync-manifest.toml (schema 2: immutable-hashed byte-exact pages,
managed-region hooks). Live Rust projects consume this with blocking
checks, so the mechanism cannot be broken or forked casually.
This repo is the first non-Rust downstream, which surfaces two gaps:
-
The sync engine is cargo-bound — a TS repo has no
cargo xtaskto run the drift gate (and the engine-version handshake is Rust-side). -
Some synced content is Rust-specific (
coding-conventions, container rules), inapplicable byte-for-byte here — andimmutable-hashedforbids local edits, whilesync-overrides.tomlentries are whole-page-coarse.
Meanwhile, this repo’s own mission (model-agnostic guidance injection) makes it the natural place to prototype the template’s generalization.
Decision
Operate as a downstream in spirit:
-
The standards module (
docs/modules/standards/) is byte-copied unedited from the template (all 9 pages, including Rust-specific ones), so future hash-based reconciliation is clean. TS applicability is mapped in the project-owned Project Conventions page — never by editing synced pages. -
Hooks are adapted ports (cargo steps →
taskverbs), attributed to their template versions in their headers. They are project-owned until the template supports language profiles; they do not claim managed-region status. -
task check-docsexists as a stub (exit 0 with a notice) so the verb vocabulary and hook wiring stay shape-compatible with the template. -
A macro-feedback issue proposing a language-profile manifest (
profile = "rust" | "typescript" | "universal") and a non-cargo engine is drafted but held until this repo’s auto-mode is operational (operator instruction: no cross-project interfacing before then). -
When upstream ships profiles, this repo cuts over to real sync and the stub dies.
Alternatives Considered
-
Full downstream now (sync everything,
sync-overrides.tomlfor the inapplicable) — requires the cargo engine we cannot run, and coarse overrides would forfeit sync of entire pages anyway. Rejected as mechanically impossible today. -
Port the engine to TS now — a second engine implementation to maintain, solving the transport but not the Rust-specific-content problem. Rejected as premature; may become part of the upstream fix later.
-
Standalone successor (fork the standards) — breaks the single-source-of- truth for live projects with blocking checks; migration must be careful and additive. Rejected by operator decision.
Consequences
-
Until sync activates, standards drift here is caught only by review — the copied pages must not be edited (the Project Conventions page and dated overrides are the only local voice).
-
The upstream language-profile issue is the unlock for both this repo’s sync and the broader genericization goal; it stays tracked and held.