feat: confluence benchmark, pattern extractor, agent KB, UX spec

- extract-patterns.js: mines layered arch, ArgoCD appsets, cloud regions,
  CIDR allocations, naming conventions, sync waves, tech stack from code
- agent-kb.js: token-efficient JSON rendering of same doc tree
- eval-confluence-ref-questions.json: 32 reference-only benchmark questions
- wiggum-v2.sh: Ralph Wiggum loop targeting confluence baseline (77.8%)
- docs/human-ux-spec.md: BMad UX designer spec for human doc structure
- Eval results: V2 at 28.7% vs confluence 77.8% baseline
- Hub/spoke ownership now correctly extracted (95% on that question)
- Naming conventions, regions, CIDRs surfaced in system-architecture.md
This commit is contained in:
Jarvis Prime
2026-03-10 14:20:35 +00:00
parent 049609a358
commit 0265ec7a60
844 changed files with 2129910 additions and 30 deletions

View File

@@ -15,6 +15,7 @@ const GRAMMARS = {
};
const { extractYaml, extractHcl } = require('./extract-config.js');
const { extractTerraform } = require('./extract-terraform.js');
const EXT_MAP = {
'.ts': 'typescript', '.tsx': 'tsx', '.js': 'javascript', '.jsx': 'javascript',
@@ -192,7 +193,7 @@ function extract(filePath, repoRoot) {
}
if (lang === 'yaml') return extractYaml(filePath, repoRoot);
if (lang === 'hcl') return extractHcl(filePath, repoRoot);
if (lang === 'hcl') return extractTerraform(filePath, repoRoot);
const grammar = GRAMMARS[lang];
const adapter = ADAPTERS[lang];