feat(bazel): standalone building block authority#1
Conversation
Sync to 0.2.2, standalone authority. Part of TIN-652. Validated: typecheck:✓ build:✓ publint:✓
TIN-652 Building Block Promotion Program — Stage 0 Pre-Triage & Repeatable Model
Problem66 Bazel registry modules exist at 0.1.0 seed state — empty integrity hashes, zero inter-module deps, monorepo strip_prefix sources. 23 standalone repos have MODULE.bazel but no flake.nix; 2 (auth-pg, auth-redis) have flake.nix but no MODULE.bazel. Consumers hand-roll auth, scheduling, content, and identity code instead of consuming building blocks. Auth case study: ~40-50% re-implementation per consumer. Pre-Triage Scan Results (Stage 0) — CompletePackage Health (monorepo scan 2026-04-26)
Consumer Import Matrix (2026-04-26)External consumer ranking:
Key findings:
ScopeRepeatable triage-and-promotion model: per-package triage → edge-finding → gap classification → 8-stage promotion pipeline → GloriousFlywheel CI/cache integration. Wave Execution Strategy
Pre-Triage Deliverables (Stage 0)
ReferencePlan: |
Greptile SummaryThis PR promotes Confidence Score: 5/5Safe to merge; all findings are P2 style suggestions with no runtime or publish-pipeline impact. No P0 or P1 issues found. The two inline comments are style/best-practice suggestions (moduleResolution choice and DOM lib inclusion in tsconfig) that do not affect the build, published output, or CI pipeline as validated by the author. tsconfig.json for the moduleResolution and lib choices; package.json for the previously flagged provenance removal. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Push / PR to main] -->|ci.yml| B[js-bazel-package reusable workflow]
C[GitHub Release published] -->|publish.yml| D[js-bazel-package reusable workflow]
E[workflow_dispatch dry_run?] -->|publish.yml| D
B --> F[typecheck · test · build · publint]
F --> G[Bazel: //:pkg //:test]
G --> H[dry_run=true → no publish]
D --> I[typecheck · test · build · publint]
I --> J[Bazel: //:pkg //:test]
J -->|release event| K[npm publish to registry.npmjs.org]
J -->|workflow_dispatch dry_run=true| L[skip publish]
Reviews (2): Last reviewed commit: "fix(bazel): align source map outputs wit..." | Re-trigger Greptile |
Sync to 0.2.2, standalone authority. Part of TIN-652. Validated: typecheck:✓ build:✓ publint:✓