Skip to harness content
Open technical reference map

Mechanism source reference

Valdris SDLC Harness Repo Map — Current State

Complete canonical source reference from docs/HARNESS_REPO_MAP.md.

Canonical pathdocs/HARNESS_REPO_MAP.mdRevision69bab1cInspect source

Valdris SDLC Harness Repo Map — Current State

Generated as a grounded repo readout for operators and maintainers. This file is intentionally blunt: it separates built, policy/docs, verified gates, and missing enterprise proof-bank work.

Verification snapshot

Commands run from the repository root:

npm run code-intelligence:scan && npm run code-intelligence:gate
npm run verify:harness

Current verified facts:

{
  "code-intelligence": {
    "ok": true,
    "nodes": 23,
    "edges": 5,
    "entrypoints": 8,
    "anchorCount": 8,
    "commit": "a0d16f76ae89d40983ae8c6d7bb0d881b8f38d6b",
    "dirty": true
  },
  "harnessVerifier": {
    "ok": true,
    "generatorVersion": "0.5.0",
    "commissioningQuestionGroups": 32,
    "commissioningQuestions": 165,
    "bridgeContractVersion": "uash.connector-events.v0.5",
    "productionLayers": 13,
    "foundationBlueprint": true,
    "codeQualityGuardrails": true,
    "enterpriseProofBank": true,
    "operatingIntelligence": true,
    "code-intelligenceFlowNode": true,
    "code-intelligenceGeneratedScripts": true,
    "code-intelligenceGateSmoke": true,
    "artifactFileVerification": true,
    "symlinkEscapeBlocked": true,
    "redZoneCompletionBlocked": true,
    "agentApprovalGrantBlocked": true,
    "selfHealCompletionBlocked": true,
    "earlyCompletionBlocked": true
  }
}

Note: graph/ and design/ are generated code-intelligence artifacts and are currently untracked by git. graph/gitnexus.json proves the GitNexus index ran when available; fallback runs must disclose local-static graph use.

Agent knowledge vault

The repo now has an OKF-style knowledge/ vault for agent ease:

knowledge/
  index.md
  log.md
  systems/
  playbooks/
  concepts/
  sources/
scripts/okf-vault-gate.mjs

Use knowledge/index.md as the first progressive-disclosure map after AGENTS.md. Run npm run knowledge:gate to validate frontmatter, indexes, logs, and internal links.


1. Universal product architecture

flowchart TB
  Human["Human / operator<br/>release owner or team"]
  Idea["Idea / task / repo ask"]
  Router["Universal SDLC Router<br/>classify work type"]
  Commission["Repo Commissioning<br/>questions + GitNexus/code intelligence + adapter"]
  Adapter["Project Adapter<br/>project-adapter.json / project.yaml"]
  FrontDoors["Agent Front Doors<br/>AGENTS.md / CLAUDE.md / Codex prompt"]
  Agent["External Agent Runtime<br/>Claude Code / Codex / Hermes"]
  Bridge["Connector Bridge<br/>CLI/MCP/API/watched artifact"]
  Events["Event + Artifact Ledger<br/>run packet / JSONL / DB later"]
  Board["Control Plane UI<br/>visual board / run monitor"]
  Gates["Gate Engine<br/>proof / red-zone / smoke / self-heal"]
  Handoff["Handoff<br/>decision packet + proof paths + next call"]

  Human --> Idea --> Router
  Router --> Commission
  Commission --> Adapter --> FrontDoors --> Agent
  Agent --> Bridge --> Events --> Board
  Events --> Gates --> Handoff
  Gates -->|blocked| Agent
  Gates -->|self-heal gap| Commission

Meaning: the repo is not an IDE. It is a control plane + commissioning layer + proof gate system around existing agent runtimes.


2. Current core SDLC run flow

stateDiagram-v2
  [*] --> intake
  intake --> route
  route --> code-intelligence
  code-intelligence --> design_anchors
  design_anchors --> system_design
  system_design --> production_readiness
  production_readiness --> cloud_platform
  cloud_platform --> implement
  implement --> redzone
  redzone --> qa_break_it
  qa_break_it --> prove
  prove --> live_smoke
  live_smoke --> self_heal
  self_heal --> handoff
  handoff --> [*]

  redzone --> blocked: approval required
  qa_break_it --> blocked: failureReason + recoveryPath
  prove --> blocked: missing proof artifact
  self_heal --> blocked: detected gap without PR/proposal

Required artifact per node

flowchart LR
  intake["intake<br/>run/intake.json"] --> route["route<br/>run/route.json"]
  route --> code-intelligence["code-intelligence<br/>graph/graph.json"]
  code-intelligence --> anchors["design-anchors<br/>design/anchors.json"]
  anchors --> design["system-design<br/>design/system_design.md"]
  design --> prod["production-readiness<br/>production/layer-assessment.json"]
  prod --> cloud["cloud-platform<br/>cloud/service-map.json or skip"]
  cloud --> impl["implement<br/>session/events.jsonl"]
  impl --> rz["redzone<br/>approvals/redzone.json"]
  rz --> qa["qa-break-it<br/>qa/break-it-results.md"]
  qa --> proof["prove<br/>proof/proof.json"]
  proof --> smoke["live-smoke<br/>smoke/smoke_proof.json or skip"]
  smoke --> heal["self-heal<br/>self_heal/self_heal_report.md"]
  heal --> handoff["handoff<br/>handoff/final.md"]

3. Repo file map / ICM-style tree

valdris-sdlc-harness/
├── AGENTS.md                         # Codex/general agent front door for this repo
├── CLAUDE.md                         # Claude Code front door for this repo
├── README.md                         # product thesis + scripts + MVP loop
├── app/
│   ├── page.tsx                      # root route -> HarnessTelemetryApp
│   ├── layout.tsx                    # Next app layout
│   ├── globals.css                   # visual system
│   ├── docs/page.tsx                 # docs route
│   └── api/runs/demo/events/route.ts # demo/on-prem JSONL event endpoint
├── components/
│   ├── HarnessTelemetryApp.tsx       # main run-monitor UI
│   ├── ControlPlaneApp.tsx           # control-plane UI shell/run controls
│   ├── HarnessFlow.tsx               # visual flow component
│   ├── AgentOpsBoard.tsx             # agent ops board
│   └── ConnectorCards.tsx            # connector cards
├── lib/
│   ├── run-events.ts                 # workflow nodes/events/reducer for telemetry UI
│   ├── control-plane.ts              # app run model/artifacts/demo control-plane data
│   ├── harness-telemetry.ts          # telemetry scenarios and monitor data
│   └── demo-flow.ts                  # demo flow data
├── scripts/
│   ├── commission-harness.mjs        # generates project-specific harness packs
│   ├── claude-code-bridge.mjs        # strict local bridge / event contract / finish-line
│   ├── uash-emit-event.mjs           # CLI event emitter for agents
│   ├── verify-harness.mjs            # adversarial verifier suite
│   ├── code-intelligence-scan.mjs    # GitNexus-backed scan wrapper / evidence writer
│   ├── code-intelligence-local-scan.mjs             # local Code-intelligence-compatible fallback graph writer
│   ├── code-intelligence-gate.mjs             # graph schema/freshness gate
│   ├── anchor-gate.mjs               # validates design anchors cite real files
│   └── simulate-agent-run.mjs        # local demo event simulation
├── docs/
│   ├── ARCHITECTURE.md
│   ├── UNIVERSAL_COMMISSIONING_FLOW.md
│   ├── CONNECTOR_EVENT_CONTRACT.md
│   ├── CODE_INTELLIGENCE_GRAPH.md
│   ├── PRODUCTION_READINESS_LAYER_PACK.md
│   ├── CLOUD_PLATFORM_ENGINEERING.md
│   ├── QA_RELEASE_AND_SELF_HEALING.md
│   ├── SDLC_LANE_TAXONOMY.md
│   ├── MODES_BLUEPRINT_LIVE_REPLAY.md
│   ├── CLAUDE_CODE_CONNECTOR.md
│   ├── CODEX_CONNECTOR.md
│   ├── PRODUCT_DIRECTION.md
│   ├── CONNECTOR_MODEL.md
│   ├── ON_PREM_RUN_VISUALIZER.md
│   ├── VISUAL_FLOW_UI.md
│   └── HARNESS_REPO_MAP.md           # this file
├── templates/
│   ├── claude-code/commands/valdris-sdlc-harness.md
│   └── codex/valdris-sdlc-harness.md
├── research/clean-room/              # source research + clean-room product specs
├── runs/_run-template/               # sanitized synthetic artifact template only
├── graph/                            # generated code-intelligence artifacts, untracked
│   ├── gitnexus.json
│   ├── graph.json
│   └── freshness.json
└── design/                           # generated local anchors, untracked
    └── anchors.json

4. Code intelligence / GitNexus map

GitNexus index currently sees 963 nodes, 1,525 edges, 37 clusters, and 58 flows for this repo. The stable Valdris fallback graph still writes graph/graph.json, graph/freshness.json, and design/anchors.json for the harness gates.

flowchart TD
  AppPage["app/page.tsx"] --> TelemetryApp["components/HarnessTelemetryApp.tsx"]
  TelemetryApp --> HarnessTelemetry["lib/harness-telemetry.ts"]

  ControlPlaneApp["components/ControlPlaneApp.tsx"] --> ControlPlane["lib/control-plane.ts"]

  HarnessFlow["components/HarnessFlow.tsx"] --> DemoFlow["lib/demo-flow.ts"]

  AgentOpsBoard["components/AgentOpsBoard.tsx"] --> RunEvents["lib/run-events.ts"]

  CodeIntel["scripts/code-intelligence-scan.mjs"] --> GitNexus["graph/gitnexus.json"]
  CodeIntel --> GraphJson["graph/graph.json"]
  CodeIntel --> Freshness["graph/freshness.json"]
  CodeIntel --> Anchors["design/anchors.json"]
  GraphGate["scripts/code-intelligence-gate.mjs"] --> GraphJson
  AnchorGate["scripts/anchor-gate.mjs"] --> Anchors

Current design anchors:

app/docs/page.tsx
app/page.tsx
app/layout.tsx
components/AgentOpsBoard.tsx
components/ConnectorCards.tsx
components/ControlPlaneApp.tsx
components/HarnessFlow.tsx
components/HarnessTelemetryApp.tsx

5. Commissioning flow

sequenceDiagram
  participant User as Human/operator
  participant CLI as commission-harness.mjs
  participant Graph as GitNexus/code intelligence
  participant Adapter as project-adapter.json
  participant Pack as Generated harness pack
  participant Agent as Claude/Codex/Hermes
  participant Bridge as Local bridge
  participant UI as Control plane UI

  User->>CLI: commission repo/team
  CLI->>Graph: scan repo / infer code facts
  Graph-->>CLI: graph, freshness, anchors
  CLI->>User: ask human-only operating questions
  CLI->>Adapter: write repo/team rules
  CLI->>Pack: generate AGENTS/CLAUDE/docs/scripts/run template
  Agent->>Pack: load front door + adapter
  Agent->>Bridge: emit events/artifacts
  Bridge->>Bridge: validate schema, artifact files, approvals, finish-line
  Bridge-->>UI: expose run state
  UI-->>User: show nodes, skip/fail reasons, proof ledger

6. Connector / bridge enforcement

flowchart TB
  Emit["uash-emit-event.mjs<br/>agent emits event"] --> Contract["connector contract v0.5<br/>strict schema"]
  Contract --> Fields{"required fields present?"}
  Fields -- no --> Reject["reject: event_contract_violation"]
  Fields -- yes --> Node{"known nodeId?"}
  Node -- no --> Reject
  Node -- yes --> Artifact{"artifact.written?"}
  Artifact -- yes --> FileCheck["file must exist under artifactRoot<br/>no path escape / symlink escape"]
  FileCheck -- fail --> Reject
  Artifact -- no --> StateRules
  FileCheck -- pass --> StateRules["node rules"]
  StateRules --> Skip{"skipped? requires skipReason"}
  StateRules --> Failed{"failed? requires failureReason + recoveryPath"}
  StateRules --> Approval{"approval? human-only grant/deny"}
  StateRules --> Complete{"run.completed? all required artifacts passed/skipped?"}
  Complete -- no --> Block["finish_line_blocked"]
  Complete -- yes --> Done["run completed"]

Verified by npm run verify:harness:

  • strict event validation
  • artifact file verification
  • symlink/path escape blocked
  • Red Zone completion blocked
  • agent approval grant blocked
  • self-heal bypass blocked
  • early completion blocked

7. Production readiness layer pack

mindmap
  root((13 production layers))
    Frontend
      screenshots
      browser/e2e
      route proof
    Backend/API
      contract tests
      request/response proof
      logs
    Database/storage
      migration proof
      rollback path
      data sample
    Auth/permissions/RLS
      authz positive
      authz negative
      tenant boundary
    Hosting/deployment
      deploy log
      preview/staging/prod URL
      health check
    Cloud/compute
      service map
      CLI/resource diff
      topology proof
    CI/CD/version control
      workflow run
      required checks
      branch policy
    Security
      secret scan
      threat note
      attack surface
    Rate limiting
      abuse policy
      traffic/concurrency note
    Caching/CDN
      invalidation proof
      stale data test
    Load balancing/scaling
      health config
      scaling policy
      traffic proof
    Observability
      logs
      metrics/traces
      dashboard/alert proof
    Availability/recovery/DR
      rollback plan
      backup/restore
      RTO/RPO

Current repo status: this layer pack is documented, included in commissioning, and verified as 13 layers in the generated adapter. It is not yet a full enterprise proof-bank implementation with load/eval/observability scripts per layer.


8. Current coverage matrix

CapabilityCurrent statusEvidenceHonest read
Universal SDLC stage flowBuiltlib/run-events.ts, lib/control-plane.ts, connector contractReal core flow exists
GitNexus/code-intelligence nodeBuilt + verifiedcode-intelligence, design-anchors, npm run code-intelligence:*GitNexus preferred backend with disclosed local fallback
Project commissioning generatorBuilt + verifiedscripts/commission-harness.mjs, verifier generated packExpanded to 32 groups / 165 questions including ontology/terminology and Apple/iOS platform facts
Good-looks-like foundation docsBuilt structurallygenerated Good Looks Like Foundation, Code Quality Guardrails, Enterprise Proof Bank docsTeaches target foundation and anti-spaghetti rules before feature work
Operating-intelligence enforcement coreBuilt + executablegoal, eval, trajectory, context, skills, typed evidence, production, AI/domain, live-smoke, and waiver gatesEleven positive gates plus route-conditional code-intelligence/smoke and adversarial negative fixtures pass
Generated agent front doorsBuiltAGENTS.md, CLAUDE.md, generated pack checksReal front-door pattern
Claude/Codex connector bridgeBuilt local v0scripts/claude-code-bridge.mjs, uash-emit-event.mjsLocal bridge works; MCP/hosted daemon later
Strict event contractBuilt + verifiedCONNECTOR_EVENT_CONTRACT.md, verifierGood hardening exists
Artifact verificationBuilt + verifiedverify:harness artifact/root/symlink testsStrong MVP gate
Red Zone approvalsBuilt + verifiedbridge blocks agent approval grantsReal safety boundary exists
Self-heal loopPartial/built gatedocs + verifier blocks bypassNeeds productized PR/workflow UX
Visual run monitorBuilt MVPNext UI components + docsExists; can become deeper n8n-style monitor
Blueprint/Live/Replay separationBuilt policy + UI datadocs + event typesGood; must keep enforced in UI
13 production layersBuilt as v2 control catalog + enforced gate39 controls, typed evidence, dependency DAG, verifier negative testsDomain-specific packs extend the universal model
Cloud/platform laneBuilt as lane/policydocs + artifact pathNeeds real provider adapters/scripts
QA/break-it/live smokePartialdocs + artifacts + gate positionsNeeds serious automated smoke/e2e harness
EvalsBuilt + adversarially verifiedOPERATING_INTELLIGENCE_LAYER.md, context-manifest-gate.mjs, eval-gate.mjs, typed arm-result fixturesUI coverage can deepen; executable context/eval enforcement exists
ObservabilityPartial / policyENTERPRISE_PROOF_BANK.md, production layer packNeeds actual observability proof gate/scripts
Enterprise load/concurrency proofPartial / policyENTERPRISE_PROOF_BANK.md scale/concurrency dimensionsNeeds load/k6/artillery/Locust validator
Game development domain packPartial / policyserious game section in ENTERPRISE_PROOF_BANK.mdNeeds dedicated game domain-pack artifact + gates
Website/web-app domain packsPartial genericenterprise web/growth sections in ENTERPRISE_PROOF_BANK.mdNeeds domain-specific templates + proof validators
Understand-anything style repo explainerPartial via GitNexus + this docgraph/gitnexus.json, this fileNeeds generated interactive repo-explainer view

9. The proof-bank correction delivered in v0.7

The pre-v0.7 harness proof standard was not high enough for the target operating model. v0.7 closes the structural-proof gap with control IDs, a dependency DAG, typed evidence, hashes, commit/environment binding, executable metrics/evals, human-only approvals, and domain catalogs.

Target proof standard:

enterprise-scale by default
→ not 50 users
→ design for thousands / 10k+ concurrency where relevant
→ production-grade full stack
→ marketing/private-equity credible
→ scalable infrastructure story from the jump

What "good proof" should become

flowchart TB
  ProofBank["Enterprise Proof Bank"]
  ProofBank --> Functional["Functional proof<br/>feature works end-to-end"]
  ProofBank --> Scale["Scale proof<br/>load/concurrency/capacity assumptions"]
  ProofBank --> Reliability["Reliability proof<br/>retries/failover/DR/rollback"]
  ProofBank --> Security["Security proof<br/>authz/secrets/threat boundary"]
  ProofBank --> Data["Data proof<br/>migration/integrity/tenant boundaries"]
  ProofBank --> Observability["Observability proof<br/>logs/metrics/traces/alerts"]
  ProofBank --> Cost["Cost proof<br/>scaling/cost risk"]
  ProofBank --> Domain["Domain proof<br/>game/web/app/API/AI-specific gates"]
  ProofBank --> Smoke["Live smoke<br/>target env behavior"]
  ProofBank --> Handoff["Operator handoff<br/>decision packet + Linear-ready summary"]

Example: serious game proof bank should not be hobby proof

For a serious game/RPG like Shroudfront, proof should include layers like:

  • gameplay loop correctness and progression integrity
  • save/load/data versioning and migration
  • server authority / anti-cheat model if multiplayer or online systems exist
  • backend services for accounts, inventory, world state, matchmaking, telemetry, commerce if applicable
  • load/concurrency model for sessions, lobbies, persistent services, chat, events
  • client performance budgets by target platform
  • crash/error reporting
  • liveops/event pipeline
  • patch/update strategy
  • observability dashboards and alert paths
  • rollback/cutover plan
  • security/privacy/compliance if accounts/payments/minors/UGC exist
  • marketing-scale launch readiness: waitlist, analytics, attribution, funnel, CDN, incident runbook

This is now encoded through the mobile-iOS, multiplayer-realtime, digital-commerce, and youth-AI catalogs plus scripts/domain-assurance-gate.mjs.


10. Remaining work beyond v0.7

The immediate remaining frontier is provider-backed semantic ingestion, richer workload generators, dedicated OpenTelemetry/SLO query validation, signed supply-chain attestations and expiring waiver governance, Apple-native macOS/device proof, and a hosted multi-user connector service.

The block below is retained as historical pre-v0.7 backlog provenance; the eval gate and initial game/mobile domain packs it requested have now been delivered.

docs/domain-packs/ENTERPRISE_PROOF_BANK.md or registry entry
  - promote the current root taxonomy into machine-readable domain packs
  - add scale tiers: prototype, production, enterprise, launch-surge
  - add mandatory evidence artifact schemas

docs/domain-packs/GAME_DEVELOPMENT_ENTERPRISE.md
  - serious game/RPG proof bank
  - multiplayer/backend/liveops/security/performance gates

docs/domain-packs/WEB_APP_ENTERPRISE.md
  - SaaS/web app proof bank
  - auth/data/billing/api/observability/load gates

docs/domain-packs/WEBSITE_GROWTH_ENTERPRISE.md
  - marketing site proof bank
  - SEO/perf/forms/analytics/traffic/CDN proof

scripts/load-gate.mjs
  - load/concurrency proof validator

scripts/eval-gate.mjs
  - eval artifact validator for AI/agent/RAG tasks

scripts/smoke-gate.mjs
  - live/preview smoke artifact validator

scripts/observability-gate.mjs
  - logs/metrics/traces/dashboard proof validator

lib/domain-packs.ts
  - software type classifier and domain pack registry

visual board update
  - display proof-bank coverage and missing enterprise evidence

11. Current verdict

v0.8 is a usable commissioning and proof-gate harness for goal-loop delivery. It now has eight workflow skills, 14 Layer 0 foundation controls, 39 enterprise production controls, ten AI assurance domains, five domain packs, executable goal/context/eval/trajectory validators, portable proof, signed four-role review, coherent run packets, and adversarial tests. It is not a certification engine, an autonomous source of human authority, an Apple build service, or a hosted fleet orchestrator.

Historical pre-v0.7 verdict (superseded)

The repo has a real universal harness MVP:
- stage flow
- GitNexus/code intelligence
- commissioning generator
- local connector bridge
- strict event contract
- artifact verification
- Red Zone/self-heal hardening
- 13 production-readiness layer pack
- visual monitor shell

But it does not yet fully satisfy the enterprise-scale proof-bank standard:
- load/concurrency proof is policy-only; no executable gate
- external eval execution is provider/project-specific; the executable `eval-gate.mjs` validates versioned datasets, rubrics, evaluator configuration, slice thresholds, critical failures, and result digests
- observability proof is policy-only; no logs/metrics/traces gate implementation
- serious game/web/website domain packs exist as root policy sections, not dedicated machine-readable packs
- no full proof-bank registry/classifier yet
- no hosted/daemon-grade connector runtime yet

The next work is deeper provider-backed semantic validation, workload/domain coverage, hosted connector operation, and visual-board coverage of the new v0.7 gates—not another generic checklist. The release-blocking distinction between structural conformance and semantic assurance is tracked in Production Assurance Gap Register.