Releases: Stackbilt-dev/charter
v0.9.0 — stackbilt run
What's New
stackbilt run command
One command to architect and scaffold a Cloudflare Worker project:
npx @stackbilt/cli run "Multi-tenant SaaS API with auth and billing"Animated 6-mode output (PRODUCT, UX, RISK, ARCHITECT, TDD, SPRINT) with real-time progress. Files written to disk immediately.
stackbilt binary alias
The CLI is now accessible as both charter and stackbilt:
# These are equivalent:
stackbilt run "My API"
charter run "My API"
npx @stackbilt/cli run "My API"Full Changelog
See CHANGELOG.md for details.
v0.6.0
v0.6.0 — ADF Architecture & Bootstrap Stabilization
10 issues, 10 PRs, 251 tests across 4 phases.
Phase 1 — Fix Blocking Bugs
- fix(bootstrap): on-demand ADF modules missing after bootstrap (#4, #14)
- fix(adf):
adf init --moduleadditive when.ai/exists (#5, #13)
Phase 2 — Bootstrap/Migrate Features
- feat(adf): migrate classifies rules into on-demand modules (#6, #15)
- feat(setup):
--preset docsfor non-code workspaces (#3, #16) - feat(bootstrap): integrate adf migrate into bootstrap flow (#7, #17)
Phase 3 — ADF Architecture (P0)
- refactor(adf): split bundler into
manifest.ts,merger.ts,bundler.ts(#8, #18) - feat(adf): unified
evaluateEvidence()pipeline (#9, #19)
Phase 4 — ADF Architecture (P1/P2)
- refactor(adf): patcher handler map + shared helpers (#12, #20)
- feat(adf): configurable
ClassifierConfigandStrengthConfig(#11, #21) - refactor(adf):
types.tssplit into 6 domain-owned modules (#10, #22)
Full details in CHANGELOG.md.
v0.5.0
Highlights
- Cross-platform parity: Unified
git-helpers.tsmodule withshell: trueresolves WSL/CMD/PowerShell PATH issues — hook install, audit, validate, and why commands now work consistently across all platforms. charter adf metrics recalibrate: New subcommand to re-measure LOC, propose ceilings with headroom, and update baselines with required rationale trail.- ADX-005 bug fixes: 5 findings resolved (hook install git detection, migrate prose sections, doctor thin pointer false positive, EPERM hint, audit no-HEAD guard).
What's Changed
Added
- Cross-platform git helpers module replacing ~6 duplicated implementations
charter adf metrics recalibratewith budget rationale trail- EPERM/EACCES retry hint in bootstrap install step
- No-HEAD guard in audit command
- ADX-005 feedback paper and papers directory restructure
- Papers lint script for frontmatter validation
- Custom
/commitClaude Code skill
Fixed
- Hook install "not inside git repo" on WSL/PowerShell (F2)
adf migrateADD_BULLET on prose/text sections (F3)- Doctor false positive on
.cursorrulesthin pointers (F4)
Changed
- Stale baseline detection in
adf evidencewith structured warnings - README updated with cross-platform support section and bootstrap docs
- All packages bumped 0.4.2 → 0.5.0
Full Changelog: v0.4.2...v0.5.0
Published packages: @stackbilt/cli, @stackbilt/adf, @stackbilt/core, @stackbilt/types, @stackbilt/git, @stackbilt/validate, @stackbilt/classify, @stackbilt/drift, @stackbilt/ci — all at 0.5.0
v0.4.2
[0.4.2] - 2026-02-27
Added
charter doctor --adf-onlymode: New mode runs strict ADF wiring validation only (manifest, required default-load wiring, module parseability, thin pointer integrity, sync lock status) for clean CI/pre-commit gating in repos that may not use.charter/policy artifacts.- ADF governance workflow hardening:
setup --ci githubworkflow template now includesADF Wiring & Pointer Integrity(doctor --adf-only --ci) andADF Evidence(adf evidence --auto-measure --ci) steps when.ai/manifest.adfis present. - Setup script sync expanded:
setupnow also syncsverify:adf,charter:doctor, andcharter:adf:bundlescripts (in addition to detect/setup), so post-setup agent loops have first-class commands for ongoing governance. - Repository adoption guardrails: setup docs/templates now include PR validation guidance (
verify:adf) and.ai/*CODEOWNERS review ownership for explicit policy-change review.
Changed
- Pre-commit gate upgraded:
charter hook install --pre-commitnow preferspnpm run verify:adfwhen available and otherwise enforcesdoctor --adf-only --ci+adf evidence --auto-measure --ci. This shifts enforcement from ceiling-only to full ADF routing + ceiling integrity. adf initscaffolding upgraded: now creates starterfrontend.adfandbackend.adfmodule stubs to avoid fatal missing-module experiences on first bundle.adf bundlemissing on-demand behavior: missing ON_DEMAND module files are now reported as warnings (missingModulesin JSON) instead of hard failures; missing DEFAULT_LOAD modules remain hard errors.adf sync --writeempty-sync behavior clarified: when manifest has noSYNCentries,--writenow writes an empty.adf.lockand reports tracked source semantics explicitly.
v0.4.1
[0.4.1] - 2026-02-27
Added
charter doctoragent config pointer check: When.ai/manifest.adfexists, doctor now scans for agent config files (CLAUDE.md, .cursorrules, agents.md, AGENTS.md, GEMINI.md, copilot-instructions.md) that contain stack rules instead of thin pointers. Flags them with[warn]and suggestscharter adf migrate --dry-run. Recognizes both pointer marker phrasings.
v0.4.0
[0.4.0] - 2026-02-26
Added
charter hook install --pre-commit: New flag installs a git pre-commit hook that runscharter adf evidence --auto-measure --cibefore each commit. Only gates when.ai/manifest.adfexists -- no-op otherwise. Usesnpx charterfor consuming repos. Both--commit-msgand--pre-commitcan be passed together. Same skip/overwrite pattern with independent markers per hook type.- Evidence pre-commit gate (this repo):
.githooks/pre-commitnow runs ADF evidence checks after typecheck, preventing LOC ceiling breaches from being committed. This is the self-regulating mechanism for unattended agent builds.
Changed
adf.tssplit into 4 files:adf.ts(966 LOC) refactored intoadf.ts(412),adf-bundle.ts(153),adf-sync.ts(203), andadf-evidence.ts(262). Each file is independently tracked by its own METRICS ceiling. No behavioral changes -- purely structural.- METRICS expanded from 4 to 8 entries:
manifest.adfandcore.adfnow trackadf_commands_loc,adf_bundle_loc,adf_sync_loc,adf_evidence_loc,adf_migrate_loc,bundler_loc,parser_loc,cli_entry_locwith appropriately sized ceilings. hook installerror message updated: Now accepts--commit-msgand/or--pre-commit(previously required--commit-msgonly).- 178 tests across 12 test files (unchanged).
v0.3.3
[0.3.3] - 2026-02-26
Added
charter bootstrapcommand: One-command repo onboarding that orchestrates detect → setup → ADF init → install → doctor in a single frictionless flow. Supports--ci github,--preset,--skip-install,--skip-doctor, and--format jsonfor full machine-readable output including next-step plans.- Thin pointer generation:
charter adf init --emit-pointers(and bootstrap) generates thinCLAUDE.md,.cursorrules, andagents.mdfiles that redirect to.ai/— preventing rule duplication across agent config files. - Rule-routing decision tree:
adf initscaffold now includes a commented decision tree incore.adfguiding agents on where rules belong (CLAUDE.md vs core.adf vs domain modules), derived from ADX-002 agent DX feedback. - Section taxonomy documentation: Generated
core.adftemplate documents the open section taxonomy (CONTEXT, CONSTRAINTS, ADVISORY, METRICS), weight tags ([load-bearing],[advisory]), and custom section rules. charter adf sync --explain: New flag outputs the.adf.lockschema documentation (format, hash algorithm, commands, purpose) in both text and JSON, eliminating lockfile archaeology friction reported in ADX-001.- Agent DX feedback papers: ADX-002 (rule routing friction), ADX-003 (install automation friction), and RM-001 (vNext roadmap draft) added to papers/.
- GitHub Actions governance workflow: Bootstrap and setup now generate
.github/workflows/charter-governance.ymlfor PR governance checks.
Changed
- Scaffold templates shared: ADF scaffold constants (
MANIFEST_SCAFFOLD,CORE_SCAFFOLD,STATE_SCAFFOLD) and pointer templates are now exported from the adf command module and shared with bootstrap, eliminating template drift. - Setup functions exported:
detectStack(),loadPackageContexts(),detectPackageManager(), and other setup utilities are now exported for reuse by the bootstrap command.
v0.3.2
[0.3.2] - 2026-02-26
Added
- Lockfile types exported:
AdfLockfileandAdfSyncStatusinterfaces now exported from@stackbilt/adfpublic API, giving agents.d.tsvisibility into the.adf.lockschema without reverse-engineering compiled output. - Lockfile schema documented:
.adf.lockformat (flat JSON map offilename → sha256-prefix-16) documented in the@stackbilt/adfREADME. pnpm run devwatch script: Newtsc --build --watchdev script for incremental rebuilds during local development viatsconfig.build.json.- Research papers directory:
papers/with versioned white papers (CSA-001: Context-as-Code v1.1, CSA-002: Greenfield measurement rubric draft) and Architect v2 integration brief.
Changed
- Build uses
tsconfig.build.json: Root build script replaced hardcoded 9-pathtsc --buildinvocation with atsconfig.build.jsonreference file. TypeScript resolves build order from project references automatically. - Publish workflow simplified: PUBLISHING.md no longer instructs manual
workspace:^replacement — PNPM handles this at publish time. Publish commands no longer need--access publicflag. publishConfig.access: "public"declared in all 9 packages (previously only cli and adf).sideEffects: falsedeclared in all 9 packages for bundler tree-shaking.
v0.3.1
What's New
- CI evidence gating: Governance workflow template now runs
charter adf evidence --auto-measure --cion PRs when.ai/manifest.adfis present, automatically validating metric ceilings before merge. - Scorecard evidence: Charter's own governance scorecard pipeline now includes ADF evidence output alongside validate and drift results.
This closes the governance loop — every PR gets LOC ceiling checks automatically.
Full changelog: v0.3.0...v0.3.1
v0.3.0 — Evidence-Based Governance & Self-Governance
Charter v0.3.0 closes the loop on ADF governance. Metric ceilings are now checkable constraints, charter adf evidence produces structured pass/fail reports, and Charter dogfoods itself — enforcing LOC limits on its own source files.
Highlights
charter adf evidence— validate metric ceilings and produce structured evidence reports with--auto-measure,--context, and CI gating- Metric content type —
key: value / ceiling [unit]syntax for numeric constraints with hard ceilings - Weight annotations —
[load-bearing]vs[advisory]on sections to distinguish measurable constraints from preferences - Auto-measurement —
--auto-measurecounts lines in files referenced by manifest METRICS section - Self-governance — Charter's own
.ai/directory enforces LOC ceilings on its key source files (adf_commands_loc: 835/900)
Added
- Metric content type:
key: value / ceiling [unit]syntax with auto-detection - Weight annotations:
[load-bearing]and[advisory]on section headers UPDATE_METRICpatch op: update metric values while ceiling/unit stay immutable- Token budgets: global
MAX_TOKENSand per-module[budget: N]limits charter adf sync: verify/update.adf.lockhashes (--check/--write)- Cadence scheduling: manifest
CADENCEsection for check frequency - Constraint validation:
validateConstraints()API — pass/warn/fail per metric charter adf evidence: structured reports with--task,--context,--context-file,--auto-measure- Scaffold LOC guardrail:
adf initincludesentry_loc: 0 / 500 [lines]by default - Advisory-only warnings: flags on-demand modules with no load-bearing sections
--ops-file/--context-file: file-based alternatives to inline JSON flags- Doctor ADF checks: manifest existence, parse, module presence, sync lock
- Trigger observability:
matchedKeywords,loadReason,unmatchedModules nextActionsin JSON output: agent-friendly follow-up suggestions- 178 tests across 12 test files (up from 48 in v0.2.0)
Changed
bundleModules()accepts optionaltaskKeywordsfor richer trigger reporting- Comprehensive documentation updates across root, CLI, and ADF package READMEs
- Charter's own
.ai/directory uses ADF metric ceilings for self-governance
Install / Upgrade
npm install --save-dev @stackbilt/cli@latestFull Changelog: v0.2.0...v0.3.0