Canonical Project Layout¶
This is the PDLC filesystem contract for a product project repository. Like AWS AI-DLC's aidlc-docs/ convention, these locations are a public contract: tools (VisionSpec CLI, VisionStudio, pdlc-workflows rules, the site generator) resolve artifacts by these paths, so directory names must not be renamed once adopted.
Design rule: serve directly, project only when forced¶
The review site is a MkDocs site with docs/ as its docs_dir, published to GitHub/GitLab Pages. Everything that can live under docs/ lives under docs/ so MkDocs serves it natively with zero copying. Build-time projection is reserved for content whose location is a contract we don't own — today that is aidlc-docs/ (AWS AI-DLC's frozen convention) — and for computed pages (dashboards, coverage reports).
Since ProductBuildersHQ owns VisionSpec, VisionSpec's canonical spec output moves under docs/specs/ (see "Required VisionSpec change" below). Specs are human-reviewed markdown; they belong in the served tree.
The layout¶
project/
├── pdlc.yaml # PDLC project manifest
├── visionspec.yaml # VisionSpec manifest
├── mkdocs.yml # review-site configuration
│
├── docs/ # MkDocs docs_dir — served directly on Pages
│ ├── index.md
│ │
│ ├── specs/ # VisionSpec canonical output (relocated under docs/)
│ │ ├── requirements.yaml # requirement-ID registry (see requirements-acceptance.md)
│ │ ├── source/ # mrd.md, prd.md, uxd.md, opportunity-spec.md
│ │ ├── gtm/ # press.md, faq.md, narrative-1p.md, narrative-6p.md
│ │ ├── technical/ # trd.md, tpd.md, ird.md
│ │ ├── spec.md # reconciled execution spec
│ │ └── current-truth.md # post-ship reality
│ │
│ ├── specs/market/ # competitive-matrix.md, swot.md, market-sizing.md
│ │ # (VisionSpec discovery spec types; TAM/SAM/SOM)
│ ├── discovery/ # sources.yaml (references to external PII evidence)
│ │ # + PII-free synthesis notes; raw evidence stays out
│ ├── concepts/ # descriptive requirements: domain concepts
│ ├── entities/ # entities and relationships
│ ├── processes/ # end-to-end process workflows (beyond user stories)
│ ├── personas/ # persona pages (+ personas.json IR)
│ │
│ ├── guides/
│ │ ├── user/ # user guide, source locale
│ │ └── admin/ # admin guide, source locale
│ │
│ ├── api/
│ │ ├── openapi.yaml # the API contract (canonical; served + linted from here)
│ │ └── index.md # Scalar-rendered API reference page
│ │
│ ├── prototype/
│ │ ├── index.md # scenarios, journeys, how-to-run
│ │ ├── data-model.md # ER diagrams (advisory validating evidence)
│ │ └── app/ # BUILT React app (output of prototype build)
│ │
│ └── _generated/ # build-time projections ONLY — never hand-edited
│ ├── aidlc/ # projected from aidlc-docs/ (native tree untouched)
│ ├── quality/ # dashboards rendered from quality/ + eval/ results
│ ├── locales/ # coverage dashboard computed from locales/
│ └── handoffs/ # generated builder input packages
│
├── prototype/ # prototype SOURCE — any static-site technology
│ ├── src/ public/ tests/ # (e.g., React + TypeScript; the contract is the
│ │ # static build output, not the framework)
│ └── schema/ # ER diagrams, Ent schema Go structs, seed data — advisory evidence
│
├── design-system/ # DSS design-system spec (JSON), when defined in-repo;
│ # alternatively pdlc.yaml references an external one
│
├── acceptance/ # executable acceptance tests (NORMATIVE; transfer to builder)
│ ├── journeys/*.yaml # browser journeys with role-based locators, per-locale
│ └── config.yaml # target URLs, locale set, capture options
│
├── locales/
│ ├── manifest.yaml # source locale, target locales, coverage targets
│ ├── glossary/ # terminology registry + prohibited translations
│ ├── ui/ # UI string catalogs: <locale>.json (JSON IR)
│ └── guides/<locale>/{user,admin}/ # translated guides per locale
│
├── quality/ # machine-written conformance evidence
│ ├── design-system/ a11y/ api-style/ l10n/ consistency/
│ ├── acceptance/ # journey run results + step screenshots per locale
│ └── readiness.json # top-level roll-up report (structured-evaluation)
│
├── eval/ # VisionSpec LLM-as-a-Judge results (<spec>.eval.json)
│
├── aidlc-docs/ # AWS AI-DLC native workspace — NEVER reorganized
├── specs/ .specify/ # GitHub Spec Kit native workspace, when used
│
├── pdlc-docs/
│ ├── pdlc-state.md # stage-level progress
│ ├── audit.md # append-only decision/approval log
│ └── baselines/PB-<id>/baseline.yaml
│
├── .visionspec/ # VisionSpec WORKING STATE — never published (see below)
│
├── cmd/ internal/ pkg/ ... # production source — team-defined, unmanaged
└── site/ # rendered MkDocs output (CI artifact; gitignored)
Defined artifacts vs narratives¶
PDLC's rule is define when possible; narrate when needed: where a machine-readable form exists, it is the required artifact; prose supplements it. Per domain:
| Domain | Required defined artifacts | Recommended defined artifacts | Narrative role |
|---|---|---|---|
| API | docs/api/openapi.yaml + Scalar reference page |
api-style profile (in-repo file or named reference in pdlc.yaml) + structured-eval results in quality/api-style/ |
API requirements prose states intent the contract can't (workflows, versioning policy rationale) |
| Design | — | DSS design-system spec (design-system/ or external reference) + structured-eval results in quality/design-system/ |
Design principles and content-design guidance |
| Prototype | Static build at docs/prototype/app/; strings externalized to locales/ui/ |
ER/Ent schema evidence in prototype/schema/ |
Scenario and journey pages in docs/prototype/ |
| Localization | locales/manifest.yaml + locale JSON IR catalogs |
glossary YAML; l10n coverage results in quality/l10n/ |
I18N requirements prose (scripts, RTL, fallback policy) |
| Personas | personas.json IR |
— | Persona pages rendered from the IR |
| Accessibility | — | agent-a11y results + baselines in quality/a11y/ (optional: prototype audit may not transfer if the builder rebuilds the UI) |
Accessibility requirements prose (normative for the product) |
| Requirements | docs/specs/requirements.yaml registry (immutable IDs, tombstoned lifecycle, structured acceptance criteria) |
— | Requirement statements are authored inline in spec prose with **FR-n** markers |
| Acceptance | acceptance/journeys/*.yaml (executable, role-based locators, verifies: links to AC IDs) + results in quality/acceptance/ |
— | — |
| Specs | VisionSpec front matter, registry-backed requirement IDs, rubric evals in eval/ |
— | The spec bodies themselves (MRD/PRD/UXD, six-pager, press, FAQ) are the narrative payload |
| Baseline | baseline.yaml manifest |
— | — |
"Required" means the stage gate checks for the artifact; "recommended" means the gate uses it when present (e.g., API conformance is judged only when a style profile is configured, but the OpenAPI file itself is always required for the API stage).
Where spec types are defined vs. where instances live¶
Two different "wheres" must not be conflated:
- The spec type — the schema, rubric, and template for "a SWOT" or "a persona" — is owned by a library in the ecosystem.
- The spec instance — this product's actual SWOT, filled in with real competitors — lives in the project repository at the canonical path this layout assigns.
The routing rule for a spec type is a single question: what is this describing?
| The type describes… | Owned by | Examples |
|---|---|---|
| One product's definition or analysis | VisionSpec (spec type: schema + rubric + template) | MRD, PRD, UXD, personas, competitive matrix, SWOT, TAM/SAM/SOM, BMC, lean canvas, opportunity spec |
| A reusable framework applied across products | productbuildershq-frameworks (machine-readable definition + PIDL) | maturity models (PBMM, ASDM), metrics frameworks (AI-DORA, AI-SPACE), methodologies (AI-DLC) |
| Org or portfolio strategy above any one product | PRISM | V2MOM, capability model, roadmap, org maturity |
The commonly recognized discovery and strategy artifacts — personas, competitive matrix, SWOT, TAM/SAM/SOM — are all per-product analysis, so their types belong in VisionSpec as spec types, joining the canvases it already ships (BMC, lean canvas, opportunity spec). Each gets a template and a rubric so it is authored and evaluated the same way as an MRD or PRD, following define when possible, narrate when needed — a structured competitive matrix where the shape fits, narrative research memos where it does not (exactly as requirements pair structured FRs with narrative concepts and entities).
Their instances live in the project under the market and personas domains:
docs/specs/market/
├── competitive-matrix.md
├── swot.md
└── market-sizing.md # TAM / SAM / SOM
docs/personas/
└── ... # persona pages, rendered from personas.json IR
Discovery evidence stays out of the reviewable repo¶
These structured specs are synthesized from discovery evidence — customer interviews, surveys, analytics, market reports. That raw evidence is PII-bearing and does not belong in the published repository. It is either excluded entirely or held in a separate store with stricter RBAC/ABAC, and referenced by a manifest that carries no PII:
docs/discovery/
├── sources.yaml # references to external evidence (no PII in-repo)
└── ... # PII-free synthesis notes, optional
# docs/discovery/sources.yaml
sources:
- id: SRC-INT-2026-03
type: customer-interview
sensitivity: pii
location: git+ssh://pii-repo/interviews/2026-03 # RBAC/ABAC-controlled
access: research-team
grounds: [persona-admin-ops, FR-0012] # what it backs
This closes the front of the traceability chain — FR-0012 ← persona-admin-ops ← SRC-INT-2026-03 ← (external, access-controlled) — so a requirement is visibly evidence-backed while the transcript itself stays behind access control. As VisionSpec grows structured spec types for customer and market data, more synthesis migrates from narrative into rubric-scored specs; the raw evidence never crosses into the repo.
Profiles¶
Which domains a project carries is declared by its profile in pdlc.yaml. The full profile is the reference practice — React-class prototype with full I18N/L10N, Ent-validated data model, user/admin guides, OpenAPI + style conformance, all judges — proven on real projects and carried in full every iteration. Reduced profiles exist to bring this practice to a broader community of product people, not to dilute it: standard and minimal select fewer domains, and the readiness report evaluates presence/quality only against the declared profile (excluded domains report as excluded, never as failures). A community builder can start minimal (specs + OpenAPI + baseline) and grow toward full without restructuring the repository, because the layout contract is identical at every profile.
.visionspec/ is tool state, not specs¶
.visionspec/ holds VisionSpec's working files, none of which are project specifications:
| File | Purpose | Commit? |
|---|---|---|
context-cache.json |
cached codebase-context gathering | no — gitignore |
execution-status.json |
downstream execution tracking | optional |
metrics.json |
metrics history | optional |
maturity/*.json |
maturity-model state (VisionStudio) | yes |
| mirrored AI-DLC docs | SyncEngine workspace for .visionspec/ ↔ aidlc-docs/ sync |
yes (sync state) |
The review site must never publish .visionspec/. Canonical, reviewable specs live in docs/specs/.
Prototype placement¶
The prototype may be built with any static-site technology — React + TypeScript is typical, but the PDLC contract is only that the prototype (a) builds to static assets publishable at docs/prototype/app/ under a Pages subpath (relative base path), and (b) externalizes user-facing strings into the locale JSON IR.
Prototype source stays outside docs_dir (at prototype/); the built app is emitted to docs/prototype/app/. This keeps node_modules/ and source files out of MkDocs's walk while reviewers get the app on the same host.
Accepted variant: if a project keeps the app inside docs/prototype/, it must use MkDocs exclude_docs to omit src/, node_modules/, and config files so only the built assets are published. The spec default is source-outside, build-inside.
UI string catalogs live canonically in locales/ui/<locale>.json; the prototype build consumes them from there (import or copy step) so translation tooling and the l10n judge work against one set of files.
Required VisionSpec change¶
VisionSpec currently routes specs to repo-root directories (source/, gtm/, technical/ via SpecType.Dir(), scaffolded by VisionStudio). To serve specs natively, VisionSpec needs a configurable specs root in visionspec.yaml:
All path resolution (SpecType.Dir(), template scaffolding, reconcile, VisionStudio's spec map) resolves relative to specsRoot. PDLC projects set docs/specs; existing projects are unaffected. eval/ results stay at root — they are JSON evidence rendered into dashboard pages, not served pages.
Locale JSON IR (initial shape)¶
One file per locale, keyed identically across locales; the source locale is the completeness reference. Designed so the coverage judge can diff key sets and flag untranslated or stale entries:
{
"$schema": "https://productbuildershq.org/schema/l10n-catalog.schema.json",
"locale": "de-DE",
"sourceLocale": "en-US",
"domain": "ui",
"entries": {
"settings.profile.title": {
"value": "Profileinstellungen",
"source": "Profile Settings",
"sourceHash": "9f2c1a",
"status": "translated",
"context": "Heading on the profile settings page",
"maxLength": 40
}
}
}
status ∈ missing | machine | translated | reviewed; sourceHash marks entries stale when the source string changes. The same IR (with domain: "guides") indexes guide-translation status. A Go library implementing this IR is planned; per the Go-first schema policy, the JSON Schema is generated from Go types, not hand-written.
Personas IR (initial shape)¶
Persona pages in docs/personas/ are rendered from a structured IR so personas can be referenced by ID from requirements, journeys, and prototype scenarios:
{
"id": "persona-admin-ops",
"name": "Operations Administrator",
"role": "admin",
"goals": ["..."],
"frustrations": ["..."],
"journeys": ["JRN-ADMIN-001"],
"locales": ["en-US", "de-DE"]
}
A Go library + generated schema is planned.
pdlc.yaml manifest (initial shape)¶
apiVersion: pdlc.productbuildershq.org/v1
kind: ProductProject
metadata:
id: my-product
title: My Product
spec:
profile: full # full | standard | minimal | custom
artifacts: # per-artifact overrides of the profile
prototype: required
guides: required
localization: required
api: required
designSystem: recommended
a11y: optional # prototype audit; enable when the prototype will be
# promoted toward production rather than rebuilt
locales:
source: en-US
targets: [de-DE, ja-JP]
quality:
designSystem:
spec: ./design-system # in-repo DSS spec, or an external reference
threshold: pass
apiStyle:
profile: omniagent-rest # named profile, or spec: ./api-style/spec.json
level: silver
a11y: { wcagVersion: "2.2", level: AA }
l10n: { minimumCoverage: 0.95 }
builder:
methodology: aws-aidlc # aws-aidlc | github-speckit | openspec | custom
Rules¶
docs/_generated/andsite/are machine-written; hand edits are forbidden and overwritten.quality/andeval/are machine-written evidence; re-runs replace reports, baselines are retained for regression gating.pdlc-docs/audit.mdis append-only.aidlc-docs/,specs/,.specify/are governed by their own tools; PDLC reads and projects them, never writes into them..visionspec/is never published; its caches are gitignored.- Production-code layout is team-defined; PDLC records traceability references into it but never mandates it.