Developer Onboarding Guide¶
Welcome to the deterministic documentation platform. This guide gets a new developer from zero to a running local environment in under 15 minutes.
Core Principle
Everything you need is in this repository. There are no hidden wikis, tribal knowledge, or "ask someone" steps. If something is missing, that is a documentation bug — open a PR.
Prerequisites¶
| Tool | Minimum Version | Install Command |
|---|---|---|
| Docker | 24.x | docs.docker.com |
| Git | 2.40+ | apt install git / brew install git |
| VSCode (optional) | 1.85+ | code.visualstudio.com |
All other tools (Terraform, OPA, PowerShell, MkDocs, Pester) are bundled
inside the Docker toolchain image defined in Dockerfile.
Step-by-Step Setup¶
1 — Clone the Repository¶
git clone https://github.com/DevelApp-ai/deterministic-technical-design-specification.git
cd deterministic-technical-design-specification
2 — Build the Toolchain Image¶
This image contains every tool pinned to an exact version. You only need to
rebuild when Dockerfile changes.
3 — Run the Full Documentation Pipeline Locally¶
docker run --rm \
-v "$(pwd)":/workspace \
-w /workspace/example \
dtds-example \
bash scripts/generate-docs.sh
Expected output:
[Step 1/7] terraform-docs ... ✓
[Step 2/7] DSC doc-gen ... ✓
[Step 3/7] Ansible facts ... ✓
[Step 4/7] Network topology... ✓
[Step 5/7] Changelog gen ... ✓
[Step 6/7] mkdocs build ... ✓
[Step 7/7] Doc coverage ... ✓
4 — Serve Docs Locally¶
docker run --rm \
-p 8000:8000 \
-v "$(pwd)":/workspace \
-w /workspace/example \
dtds-example \
mkdocs serve --dev-addr 0.0.0.0:8000
Open http://localhost:8000 in your browser.
5 — Run All Tests¶
# OPA policy unit tests
docker run --rm -v "$(pwd)":/workspace dtds-example \
opa test example/policies/ -v
# Pester DSC unit tests
docker run --rm -v "$(pwd)":/workspace dtds-example \
pwsh -Command "Invoke-Pester example/dsc/tests/ -Output Detailed"
Repository Map¶
graph LR
ROOT["/ (repo root)"]
EXAMPLE["example/"]
ROOT --> EXAMPLE
EXAMPLE --> TF["terraform/\nInfrastructure as Code"]
EXAMPLE --> K8S["kubernetes/\nK8s Manifests"]
EXAMPLE --> HELM["helm/\nHelm Chart"]
EXAMPLE --> POL["policies/\nOPA Policies"]
EXAMPLE --> DSC["dsc/\nPowerShell DSC"]
EXAMPLE --> ANS["ansible/\nConfiguration"]
EXAMPLE --> DOCS["docs/\nDocumentation source"]
EXAMPLE --> SCR["scripts/\nPipeline scripts"]
EXAMPLE --> GHA[".github/workflows/\nCI/CD pipeline"]
DOCS --> REQ["requirements/\nMoSCoW"]
DOCS --> ARCH["architecture/\nC4 diagrams"]
DOCS --> SEC["security/\nControls matrix"]
DOCS --> TRACE["traceability/\nReq → ADR → Policy"]
DOCS --> GEN["generated/\nAuto-generated pages"]
Making Your First Change¶
Adding a new Terraform variable
- Add the variable to
terraform/variables.tf - Update
docs/infrastructure/terraform.md(required by DOC-TF gate) - Run
terraform-docs markdown table example/terraform/to preview the updated README - Open a PR — the CI
doc-coveragejob verifies rule DOC-TF is satisfied
Adding a new OPA policy
- Create
policies/terraform/deny_<name>.regowith a__rego__metadoc__block - Create
policies/terraform/deny_<name>_test.regowith ≥ 1 test per rule - Update
docs/compliance/opa-policies.mdanddocs/security/index.md - Run
opa test policies/ -vto verify 100 % rule coverage - Open a PR — the CI
doc-coveragejob verifies rule DOC-OPA is satisfied
Commit Message Format¶
This project uses Conventional Commits:
feat(terraform): add cost_center tag validation to deny_missing_tags
fix(docs): correct network subnet CIDR in topology table
docs(onboarding): add step for Kubernetes manifest testing
chore(ci): pin git-cliff to v2.4.0
The CI release job uses these messages to auto-generate CHANGELOG.md.
Getting Help¶
| Resource | Where |
|---|---|
| Architecture overview | Architecture & C4 |
| Operational runbook | Runbook |
| Requirements | MoSCoW |
| ADRs (decision log) | Architecture Decisions |
| Doc coverage rules | Doc Review Gate |
| Traceability | Traceability Matrix |