View Markdown · Documentation index (llms.txt)
GitHub Spec Kit Workflow
TraderX baseline generation now follows a root-canonical GitHub Spec Kit flow.
Canonical Locations
.specify/**for constitution and templatesspecs/001-baseline-uncontainerized-parity/**for baseline requirements, stories, plan, tasks, and contractspipeline/**for generation and validation orchestration
Each state pack under specs/NNN-* must include:
research.mddata-model.mdquickstart.md
Convergence states must also include:
system/convergence-rationale.md
Browse in docs:
/specs/baseline-uncontainerized-parity/specs/baseline-uncontainerized-parity/system/system-requirements/specs/baseline-uncontainerized-parity/system/user-stories/specs/baseline-uncontainerized-parity/system/acceptance-criteria/specs/baseline-uncontainerized-parity/system/requirements-traceability/specs/baseline-uncontainerized-parity/system/end-to-end-flows/specs/baseline-uncontainerized-parity/system/architecture/docs/spec-kit/state-docs/docs/learning- runtime API explorer route:
/api/docs(via running state ingress/edge) /specify
Input Evidence For Requirements
specs/001-baseline-uncontainerized-parity/system/architecture.model.jsonspecs/001-baseline-uncontainerized-parity/system/end-to-end-flows.mdspecs/001-baseline-uncontainerized-parity/system/system-requirements.mddocs/README.mdREADME.md
Baseline Generation Flow
- Validate Spec Kit readiness and requirement coverage.
- Compile component manifests from Spec Kit artifacts.
- Synthesize generated components from manifest + templates.
- Start generated overlays and run smoke tests/parity checks.
Derived-State Generation Flow
For states 002+, generation follows:
- Generate parent state output.
- Apply ordered patch set from
specs/<state>/generation/patches/*.patch. - Regenerate architecture docs and run state smoke checks.
Convergence-State Policy
- Prefer new state proposals from the nearest suitable convergence state (
C0/C1/C2/C3). - Keep
previoussingle-parent for publish lineage. - Use
dottedParentsonly for convergence states. - If convergence-state metadata/content changes, update that state's
system/convergence-rationale.md. - Reference:
/docs/spec-kit/convergence-states
LLM Feature-Add Implementation Contract
When implementing a new state delta with an LLM:
- Generate the parent state (
bash pipeline/generate-state.sh <parent-state-id>). - Make only the intended child-state edits against generated output.
- Capture patch set (
bash pipeline/create-state-patchset.sh <state-id> <parent-state-id> [target-path]). - Keep state hook as parent-generation +
apply-state-patchset.shonly. - Update
specs/<state>/generation/generation-hook.mdwith parent, patch path, and refresh commands. - Do not introduce or keep large file-payload heredoc generators for derived states.
- Keep patch payloads clean: exclude build/restored artifacts (
.gradle,build,target,bin,obj,dist,coverage,node_modules) and template-owned wrapper artifacts; include lockfile deltas only when Node manifests change.