Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
ff6f856
add token-efficient core utilities
fajarnugraha37 Jul 16, 2026
a18ac2b
add deterministic source inventory
fajarnugraha37 Jul 16, 2026
a9463f3
add sqlite semantic index
fajarnugraha37 Jul 16, 2026
42e7fc8
add bounded context compiler
fajarnugraha37 Jul 16, 2026
c760d36
add budgeted provider runtime
fajarnugraha37 Jul 16, 2026
36cebc1
add indexed documentation pipeline
fajarnugraha37 Jul 16, 2026
1b040d7
add v2 modular cli
fajarnugraha37 Jul 16, 2026
69af73e
add direct indexed core model prompt
fajarnugraha37 Jul 16, 2026
4b99d46
add direct indexed enterprise model prompt
fajarnugraha37 Jul 16, 2026
ef8f2e7
add indexed planning prompt
fajarnugraha37 Jul 16, 2026
117c7e7
add context-only page writing prompt
fajarnugraha37 Jul 16, 2026
0403c6d
add selective risk audit prompt
fajarnugraha37 Jul 16, 2026
137c5f3
replace legacy pipeline configuration
fajarnugraha37 Jul 16, 2026
f679892
switch package entrypoint to v2 engine
fajarnugraha37 Jul 16, 2026
516bef7
bump breaking semantic-index release
fajarnugraha37 Jul 16, 2026
1130e88
bump engine version
fajarnugraha37 Jul 16, 2026
3e81456
add semantic index regression tests
fajarnugraha37 Jul 16, 2026
d06d303
add semantic index ci
fajarnugraha37 Jul 16, 2026
2f9412d
fix provider runtime utilities
fajarnugraha37 Jul 16, 2026
f5c4da9
respect explicit context budgets
fajarnugraha37 Jul 16, 2026
7c0759e
fix provider budget accounting
fajarnugraha37 Jul 16, 2026
ed49f3b
make inventory fresh and gitignore-aware
fajarnugraha37 Jul 16, 2026
c66d9bc
enforce context-only reads from canonical inventory
fajarnugraha37 Jul 16, 2026
a3b628d
index source chunks and qualified model items
fajarnugraha37 Jul 16, 2026
d269e1e
add item traceability and cached risk audit
fajarnugraha37 Jul 16, 2026
f7edb44
require traceability in indexed page writes
fajarnugraha37 Jul 16, 2026
c5927ee
remove legacy monolithic engine
fajarnugraha37 Jul 16, 2026
063ad44
remove legacy discovery prompt
fajarnugraha37 Jul 16, 2026
c2f1971
remove legacy analysis prompt
fajarnugraha37 Jul 16, 2026
0042904
remove legacy semantics prompt
fajarnugraha37 Jul 16, 2026
654b2b2
remove legacy enterprise prompt
fajarnugraha37 Jul 16, 2026
efbdce3
remove legacy planning prompt
fajarnugraha37 Jul 16, 2026
9e05c3a
remove legacy generation prompt
fajarnugraha37 Jul 16, 2026
cb85a2b
remove legacy audit prompt
fajarnugraha37 Jul 16, 2026
1a69240
remove legacy single-page prompt
fajarnugraha37 Jul 16, 2026
47a19e2
remove legacy enrichment prompt
fajarnugraha37 Jul 16, 2026
7e0a60b
remove legacy full audit prompt
fajarnugraha37 Jul 16, 2026
7baacd8
remove legacy repair prompt
fajarnugraha37 Jul 16, 2026
e6a9010
remove legacy update impact prompt
fajarnugraha37 Jul 16, 2026
bbcc992
remove legacy batched enrichment prompt
fajarnugraha37 Jul 16, 2026
e6b2acb
remove unused workspace synthesis prompt
fajarnugraha37 Jul 16, 2026
c380c52
replace project-local legacy configuration
fajarnugraha37 Jul 16, 2026
d486f58
replace legacy stage state template
fajarnugraha37 Jul 16, 2026
a939ea5
replace project-local legacy state
fajarnugraha37 Jul 16, 2026
7f2456f
add breaking v1 to v2 migration
fajarnugraha37 Jul 16, 2026
edd656c
remove legacy managed files during install
fajarnugraha37 Jul 16, 2026
bd8f0f2
remove unused discovery agent
fajarnugraha37 Jul 16, 2026
2dd40be
remove unused architecture agent
fajarnugraha37 Jul 16, 2026
7f0245e
remove unused domain agent
fajarnugraha37 Jul 16, 2026
7d80f92
remove unused enterprise agent
fajarnugraha37 Jul 16, 2026
59a6637
remove unused planning agent
fajarnugraha37 Jul 16, 2026
63423b6
remove project-local discovery agent
fajarnugraha37 Jul 16, 2026
21e3d9e
remove project-local architecture agent
fajarnugraha37 Jul 16, 2026
18ac73c
remove project-local domain agent
fajarnugraha37 Jul 16, 2026
53e9056
remove project-local enterprise agent
fajarnugraha37 Jul 16, 2026
8d1ba6a
remove project-local planning agent
fajarnugraha37 Jul 16, 2026
432c122
remove unused writer agent
fajarnugraha37 Jul 16, 2026
ceddb56
remove project-local writer agent
fajarnugraha37 Jul 16, 2026
b62defb
remove unused auditor agent
fajarnugraha37 Jul 16, 2026
6c17d32
remove project-local auditor agent
fajarnugraha37 Jul 16, 2026
3254928
remove unused workspace agent
fajarnugraha37 Jul 16, 2026
d2eb700
remove project-local workspace agent
fajarnugraha37 Jul 16, 2026
c31c074
remove obsolete discovery command
fajarnugraha37 Jul 16, 2026
3645c2c
remove project-local discovery command
fajarnugraha37 Jul 16, 2026
2b33796
remove obsolete analysis command
fajarnugraha37 Jul 16, 2026
1140892
remove project-local analysis command
fajarnugraha37 Jul 16, 2026
bbc8a14
remove obsolete fix command
fajarnugraha37 Jul 16, 2026
2676a54
remove project-local fix command
fajarnugraha37 Jul 16, 2026
7ab20da
remove obsolete update command
fajarnugraha37 Jul 16, 2026
3201019
remove project-local update command
fajarnugraha37 Jul 16, 2026
3c2523a
remove obsolete enrich command
fajarnugraha37 Jul 16, 2026
c52ebe0
remove project-local enrich command
fajarnugraha37 Jul 16, 2026
634e2e7
remove obsolete quality command
fajarnugraha37 Jul 16, 2026
82e04d2
remove project-local quality command
fajarnugraha37 Jul 16, 2026
b13dfb4
remove obsolete semantics command
fajarnugraha37 Jul 16, 2026
3391cba
remove project-local semantics command
fajarnugraha37 Jul 16, 2026
bf0b664
remove obsolete preflight command
fajarnugraha37 Jul 16, 2026
8f7a9d2
remove project-local preflight command
fajarnugraha37 Jul 16, 2026
7c9e13b
remove obsolete contract test command
fajarnugraha37 Jul 16, 2026
80c9b3c
remove project-local contract test command
fajarnugraha37 Jul 16, 2026
a770200
remove obsolete traceability command
fajarnugraha37 Jul 16, 2026
d40855e
remove project-local traceability command
fajarnugraha37 Jul 16, 2026
de454af
remove obsolete enterprise command
fajarnugraha37 Jul 16, 2026
351b809
remove project-local enterprise command
fajarnugraha37 Jul 16, 2026
def82d0
add migration command
fajarnugraha37 Jul 16, 2026
07c60e4
add project-local migration command
fajarnugraha37 Jul 16, 2026
88a49e9
add semantic index command
fajarnugraha37 Jul 16, 2026
b06369e
add project-local semantic index command
fajarnugraha37 Jul 16, 2026
62b656b
add indexed model command
fajarnugraha37 Jul 16, 2026
a6b23c0
add project-local indexed model command
fajarnugraha37 Jul 16, 2026
e72b214
add provider budget command
fajarnugraha37 Jul 16, 2026
f45d638
add project-local provider budget command
fajarnugraha37 Jul 16, 2026
9193cf2
add context compiler command
fajarnugraha37 Jul 16, 2026
cdb7cab
add project-local context compiler command
fajarnugraha37 Jul 16, 2026
6b76ee6
update audit command for selective v2 audit
fajarnugraha37 Jul 16, 2026
7519b6a
update project-local selective audit command
fajarnugraha37 Jul 16, 2026
1a1521f
update generation command for indexed pipeline
fajarnugraha37 Jul 16, 2026
63a1bee
update project-local indexed generation command
fajarnugraha37 Jul 16, 2026
432c753
update project memory for semantic index pipeline
fajarnugraha37 Jul 16, 2026
4232260
document v2 docgen workspace
fajarnugraha37 Jul 16, 2026
496ed4c
expand semantic index regression coverage
fajarnugraha37 Jul 16, 2026
8fd3b7c
replace v1 package manifest with v2 architecture
fajarnugraha37 Jul 16, 2026
0e0922d
rewrite README for token-efficient v2
fajarnugraha37 Jul 16, 2026
024308a
handle removed agent template directory
fajarnugraha37 Jul 16, 2026
9a4c182
replace v1 contracts with v2 boundaries
fajarnugraha37 Jul 16, 2026
5546385
add v2 breaking release changelog
fajarnugraha37 Jul 16, 2026
2b5edbf
prevent self-referential model contexts
fajarnugraha37 Jul 16, 2026
f46874f
stabilize model context scopes by stage
fajarnugraha37 Jul 16, 2026
0949e45
add zero-provider-resume end-to-end test
fajarnugraha37 Jul 16, 2026
3668a80
stabilize fake provider end-to-end fixture
fajarnugraha37 Jul 16, 2026
41a5d46
expand syntax validation coverage
fajarnugraha37 Jul 16, 2026
4785440
fix fake provider nested template syntax
fajarnugraha37 Jul 16, 2026
62e83f1
upload exact CI source for reproducible debugging
fajarnugraha37 Jul 16, 2026
ce150cf
add static fake provider fixture
fajarnugraha37 Jul 16, 2026
9524e35
use static fake provider fixture
fajarnugraha37 Jul 16, 2026
6455cfa
fix: add warning-filtering DocGen launcher
fajarnugraha37 Jul 16, 2026
ca6d37f
fix: make Windows provider execution observable and safe
fajarnugraha37 Jul 16, 2026
bad224a
test: isolate Windows command shim runtime coverage
fajarnugraha37 Jul 16, 2026
7be104f
fix: correct git-aware inventory Boolean filter
fajarnugraha37 Jul 16, 2026
dda3d3f
test: cover real Git inventory execution path
fajarnugraha37 Jul 16, 2026
61862f1
test: smoke installed CLI against real Git repository
fajarnugraha37 Jul 16, 2026
682474d
test: execute installed CLI on real Git repository
fajarnugraha37 Jul 16, 2026
027591b
fix: restore provider max turns to 30
fajarnugraha37 Jul 16, 2026
fe8b296
fix: restore all stage max turns to 30
fajarnugraha37 Jul 16, 2026
e22cb86
fix(runtime): enforce minimum 30 conversation turns
fajarnugraha37 Jul 16, 2026
b0a36a1
test(provider): fail when max-turns is below 30
fajarnugraha37 Jul 16, 2026
e3f0c76
chore: stage Phase 2 implementation
fajarnugraha37 Jul 16, 2026
beade58
chore: apply Phase 2 through PR validation
fajarnugraha37 Jul 16, 2026
0ea0fc6
chore: publish validated Phase 2 source separately
fajarnugraha37 Jul 16, 2026
34e9f03
feat: stabilize runtime and add stack-neutral quality gates
github-actions[bot] Jul 16, 2026
2c51475
chore: publish Phase 2 validation output to temporary branch
fajarnugraha37 Jul 16, 2026
5915b3a
feat: complete Phase 2A runtime stabilization and Phase 2B quality gates
fajarnugraha37 Jul 16, 2026
6c32ed7
ci: capture full Windows Phase 2 test output
fajarnugraha37 Jul 16, 2026
a5a7edd
test: normalize provider prompts across platforms
fajarnugraha37 Jul 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: ['main', 'agent/**']
pull_request:

permissions:
contents: read

jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
node-version: 22
upload-source: false
- os: ubuntu-latest
node-version: 24
upload-source: true
- os: windows-latest
node-version: 24
upload-source: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: global-template/docgen/package.json
- name: Syntax check
working-directory: global-template/docgen
run: npm run check
- name: Unit and integration tests
working-directory: global-template/docgen
run: npm test
- name: Installer dry run
run: node install.mjs --dry-run --no-link-cli
- name: Upload exact CI source
if: always() && matrix.upload-source
uses: actions/upload-artifact@v4
with:
name: docgen-ci-source
if-no-files-found: error
retention-days: 3
path: |
global-template/docgen
global-template/docgen/project-template
install.mjs
VERSION
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Changelog

## 2.0.0 — Token-efficient semantic index

### Breaking

- Removed the v1 monolithic `docgen.mjs` engine.
- Removed discovery, analyze, semantics, enterprise-pass, enrichment, fix, update-impact, and full re-audit commands/prompts.
- Removed all custom pipeline agents and parent-to-subagent delegation.
- Removed legacy auto-enrich, auto-fix, and re-audit configuration.
- Requires Node.js 22.5+ for built-in `node:sqlite`.
- Existing v1 repositories must run `docgen migrate`.

### Added

- SQLite/FTS5 semantic index with incremental file hashing.
- Overlapping source chunks plus deterministic symbol/interface/config/SQL extraction.
- Bounded content-addressed context compiler.
- Hard provider call/input/output/per-call budgets.
- Provider telemetry and stage usage reports.
- Two-call model synthesis: core and enterprise.
- Deterministic catalog/reference rendering.
- Item-level page invalidation.
- Claim-level traceability generated in the same page invocation.
- Deterministic FACT/evidence validation.
- Selective, risk-scored, hash-cached LLM audit.
- Breaking v1-to-v2 migration with backup and docs/ignore preservation.
- Node.js 22/24 CI and semantic-index regression suite.

### Changed

- Planning defaults to at most 30 pages unless explicitly configured otherwise.
- Provider prompts are direct and context-only.
- Skills remain available for manual Command Code work but are not automatically loaded by the pipeline.
- Source inventory moved from `.docgen/state` to `.docgen/index`.
- Publishing and P3 workspace aggregation remain deterministic.

### Removed dead managed files during installation

The installer backs up and removes v1 executable, prompts, agents, and obsolete slash commands from global and project-local installations.

## 1.0.0

P3 system-of-systems workspace release built on the original provider-heavy repository pipeline.
126 changes: 66 additions & 60 deletions PACKAGE-MANIFEST.json
Original file line number Diff line number Diff line change
@@ -1,99 +1,105 @@
{
"name": "commandcode-docgen-kit",
"version": "1.0.0",
"version": "2.0.0",
"releaseType": "breaking-token-efficiency-redesign",
"runtime": {
"node": ">=22.5.0",
"database": "node:sqlite with FTS5",
"provider": "Command Code CLI"
},
"defaultInstallationScope": "global",
"globalComponents": [
"agents",
"skills",
"commands",
"hooks",
"orchestrator",
"prompts",
"modular-engine",
"bounded-prompts",
"schemas",
"project-template"
],
"projectComponents": [
".docgen/config",
".docgen/evidence",
".docgen/index",
".docgen/context",
".docgen/model",
".docgen/plan",
".docgen/traceability",
".docgen/audit",
".docgen/state",
".docgen/telemetry",
".docgen/budget",
".docgen/runs",
".docgen/traceability",
".docgen/publish",
".docgen/state",
"docs",
".docgen/quarantine",
".docgenignore",
".docgen/publish"
".docgenignore"
],
"counts": {
"agents": 8,
"agents": 0,
"skills": 50,
"commands": 21,
"commands": 15,
"schemas": 35,
"prompts": 14
"providerPrompts": 5
},
"contractFirewall": {
"boundaries": 19,
"deterministicTests": 21,
"transactionalStages": 6,
"zeroTokenCommand": "docgen contract-test"
"tokenEfficiency": {
"singlePassSourceIndex": true,
"incrementalFileHashing": true,
"sourceChunkIndex": true,
"sqliteFts5": true,
"boundedContextCompiler": true,
"contentAddressedContext": true,
"hardProviderBudgets": true,
"providerTelemetry": true,
"twoModelSynthesisCalls": true,
"deterministicReferenceRendering": true,
"itemLevelPageInvalidation": true,
"selectiveRiskAudit": true,
"auditInputCaching": true,
"parentAgentDelegation": false,
"autoEnrichLoop": false,
"autoFixLoop": false,
"fullReauditLoop": false,
"legacyPipeline": false
},
"p0Trustworthiness": {
"trustworthiness": {
"typedSemanticModels": true,
"claimLevelTraceability": true,
"evidenceCentricQuality": true,
"crossPageContradictions": true,
"duplicateDetection": true,
"sourceFreshness": true,
"wordCountGate": "advisory",
"zeroTokenCommand": "docgen traceability"
"factEvidenceValidation": true,
"ignoredEvidenceRejected": true,
"contextOnlyReadHook": true,
"mermaidOnly": true
},
"p1EnterpriseDepth": {
"security": true,
"operations": true,
"testing": true,
"dataGovernance": true,
"architectureDecisions": true,
"configuration": true,
"changeImpact": true,
"ownership": true
},
"ignoreBoundary": {
"sourceBoundary": {
"gitignore": true,
"nestedGitignoreFallback": true,
"docgenignore": true,
"readHook": true,
"sourceInventory": true,
"fingerprintsRespectIgnore": true,
"traceabilityRejectsIgnoredEvidence": true,
"binaryAndNonText": true,
"magicAndUtf8Probe": true
"magicAndUtf8Probe": true,
"oversizedTextGuard": true
},
"p2DocumentationExperience": {
"documentModes": true,
"publishing": {
"frontmatter": true,
"llmsTxt": true,
"llmsFullTxt": true,
"searchIndex": true,
"backlinks": true,
"aliasesRedirects": true,
"versionDeprecationMigration": true,
"evidenceDerivedExamples": true
"navigationIndex": true
},
"p3SystemOfSystems": {
"systemOfSystems": {
"workspaceRegistry": true,
"multiRepositoryAggregation": true,
"globalDependencyGraph": true,
"sharedContractRegistry": true,
"domainCapabilityMap": true,
"dependencyGraph": true,
"contractRegistry": true,
"capabilityMap": true,
"businessJourneys": true,
"crossServiceRequestFlows": true,
"crossServiceEventFlows": true,
"crossRepositoryDataLineage": true,
"sharedInfrastructure": true,
"ownershipAggregation": true,
"crossRepositoryChangeImpact": true,
"incrementalWorkspaceRebuild": true,
"mermaidOnly": true,
"zeroProviderBasePipeline": true
"crossServiceFlows": true,
"dataLineage": true,
"ownership": true,
"changeImpact": true,
"incrementalWorkspaceRebuild": true
},
"migration": {
"from": "1.x",
"command": "docgen migrate",
"preserves": ["docs/**", ".docgenignore", "selected runtime/ignore configuration"],
"archivesLegacyArtifacts": true
}
}
Loading
Loading