feat(0.2): Align pillar foundation — repos.yaml + alignment-first migration + tier badges (Tracks 6.1/6.5/6.6)#148
Open
feat(0.2): Align pillar foundation — repos.yaml + alignment-first migration + tier badges (Tracks 6.1/6.5/6.6)#148
Conversation
…ration + tier badges
Three Track 6 deliverables that establish the Align pillar's 0.2.0
foundation. Track 6 is intentionally parallel and partial-ship-OK
per the parity plan (Align is the secondary pillar; floor ≥ 3
soft); these three deliverables are the parts that lift Align
without requiring the full multi-repo aggregator. The aggregator
(Tracks 6.2 / 6.3) lands in 0.2.x once the manifest format ships
here.
Track 6.1 — Multi-repo manifest format
New `internal/portfolio/manifest.go` with `RepoManifest` and
`RepoEntry` types matching the parity plan's `.terrain/repos.yaml`
schema: per-repo path or pre-saved snapshot, optional owner,
frameworks-of-record declaration, free-form tags. Loader +
validator + path resolution helpers.
Validation enforced (rather than trusting YAML schema):
- schema version is the only currently-supported value (1)
- non-empty repos list
- per-repo non-empty Name + at least one of Path / SnapshotPath
- unique Name across the manifest
- error messages cite the repo position so adopters can find
the bad entry without grepping
12 new tests covering the canonical happy path plus every
validation rule; ResolveRepoPath / ResolveSnapshotPath helpers
for the aggregator that lands in 0.2.x.
Track 6.5 — Migration alignment-first reframe
New `docs/product/alignment-first-migration.md` documents the
framing shift the launch-readiness review surfaced: most teams
care about *aligning* (declare a framework of record per repo,
see drift, converge gradually), not just *converting*. Conversion
is one tool inside convergence, not the headline.
Spells out single-repo and multi-repo flows end-to-end; pins the
per-direction tier matrix (Stable / Experimental / Preview /
Cataloged); names anti-goals (we don't auto-convert, don't pick
the "best" framework, don't block convergence on calibration).
Track 6.6 — Per-direction tier badges in `migrate list`
New `tierLabelForState` helper renders GoNativeState as the
Tier-badge vocabulary used elsewhere in 0.2 (Stable / Experimental
/ Preview / Cataloged). `terrain migrate list` and
`terrain migrate shorthands` now surface tier badges instead of
raw state strings.
`humanizeGoNativeState` is preserved so any other call sites that
depend on the raw state string don't break — only the user-facing
list renderers switched. Tier label test locks the mapping;
renaming a label is a public-facing change and the test surfaces
the dependency.
Verification: full Go test suite green; make docs-verify clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Terrain AI Risk Review
Decision: PASS — AI surfaces are covered. |
[RISK] Terrain — Merge with caution
Coverage gaps in changed code
Pre-existing issues (2)
Recommended tests2 test(s) with exact coverage of 5 impacted unit(s). 3 impacted unit(s) have no covering tests in the selected set.
Owners: PMCLSF Limitations
Generated by Terrain · Targeted Test ResultsTerrain selected 2 test(s) instead of the full suite.
|
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three Track 6 deliverables that establish the Align pillar's 0.2.0
foundation. Track 6 is intentionally parallel and partial-ship-OK
(Align is the secondary pillar; floor ≥ 3 soft per the parity
plan); this PR lands the parts that lift Align without requiring
the full multi-repo aggregator. The aggregator (Tracks 6.2 / 6.3)
lands in 0.2.x once the manifest format ships here.
internal/portfolio/manifest.godefines the.terrain/repos.yamlschema (version-pinned to 1) withper-repo path or pre-saved snapshot, optional owner,
frameworks-of-record declaration, tags. Loader + validator +
path resolution helpers ready for the aggregator.
docs/product/alignment-first-migration.mddocuments theframing shift: declare a framework of record per repo, see
drift, converge gradually. Conversion is one tool inside
convergence, not the headline.
migrate list.terrain migrate listandterrain migrate shorthandsnowsurface Tier vocabulary (Stable / Experimental / Preview /
Cataloged) instead of raw GoNativeState strings.
Test plan
go build ./...cleango test ./internal/portfolio/...— 12 new manifest tests(canonical + every validation rule + path resolution variants)
go test ./cmd/terrain/...— new tier label test + existingsmoke tests pass
make docs-verifypassesterrain migrate listrenders the new tierbadges (separate verification — needs a built binary)
Plan tracker
Closes Track 6.1, 6.5, 6.6. Track 6 remaining (post-0.2.0 or
0.2.x): 6.2 per-repo snapshot ingestion + 6.3 cross-repo
aggregator + 6.4 multi-repo example fixture + 6.7 conversion-
corpus calibration to A-grade. Per the plan, those are partial-
ship-OK; the manifest format ships in 0.2.0 with Tier 3 /
experimental marketing on multi-repo until 6.2/6.3 land.
🤖 Generated with Claude Code