pdlc

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

PDLC — Product Development Lifecycle

Go CI Go Lint Go SAST Docs Docs Visualization License

PDLC is the ProductBuildersHQ specification for the product development lifecycle: the stages, deliverables, canonical repository layout, quality gates, and the formal handoff from the product person (product manager / product owner) to the builder person (engineer / AI coding agent).

PDLC answers: what does a complete product definition look like, where does every artifact live in the repository, how is it reviewed as a single website, and what exactly gets handed to engineering?

Position in the ProductBuildersHQ ecosystem

Repository Role
pdlc (this repo) Normative lifecycle specification: stages, deliverables, project layout, review site, Product Baseline handoff
pdlc-workflows Executable agent-rules reference implementation of this specification
visionspec Specification-artifact engine: spec types, templates, rubrics, LLM evaluation, reconciliation, export targets
visionstudio Desktop IDE for authoring, reviewing, and observing PDLC projects
productbuildershq-frameworks Machine-readable framework catalog; owns the canonical six-stage PDLC entry (deliverables, gates, dependency graph, AI-DLC crosswalk) that this module pins as a dependency and re-exports via Stages()

PDLC is the specification; pdlc-workflows is the reference implementation — the same relationship AWS uses between the AI-DLC methodology and awslabs/aidlc-workflows.

The specification

Document Contents
Lifecycle Stages, sequencing (including the guides-before-UI translation order), entry/exit criteria, roles
Project Layout The canonical project-repository filesystem contract
Review Site How every artifact is assembled into one static website for human review on GitHub/GitLab Pages
Requirements & Acceptance Requirement-ID registry with stability rules; executable acceptance tests (browser-driven journeys) tied to requirement IDs
Quality Continuous evaluation: LLM-as-a-Judge, design-system, API-style, accessibility, and localization conformance
Handoff The Product Baseline — the versioned contract between product and builder
Adoption Agent-driven brownfield migration to the canonical layout + readiness evaluation
layout.yaml The layout contract in machine-readable form: canonical paths, detection heuristics, per-profile requirements
model/ The lifecycle as a formal PIDL process model — typed steps, data flows over canonical paths, and gates

Go Module Usage

go get github.com/ProductBuildersHQ/pdlc
import "github.com/ProductBuildersHQ/pdlc"

// The canonical project-repository layout contract.
manifest := pdlc.MustLayout()

// The six PDLC stages (Product Definition, Builder Definition,
// Implementation, Deployment, Builder Operations, Product Operations),
// re-exported from productbuildershq-frameworks so callers depend on
// pdlc rather than the catalog module directly.
stages := pdlc.MustStages()
for _, s := range stages {
    fmt.Printf("%s (%s)\n", s.Name, s.Role)
}

builderDef, _ := pdlc.StageByID(pdlc.StageBuilderDefinition)

Stage IDs are stable string constants (pdlc.StageProductDefinition through pdlc.StageProductOperations) — downstream consumers such as specification-workflow-spec and Threat Model Spec import these rather than re-declaring them. See Lifecycle for the full stage-by-stage narrative.

Core principles

  1. The repository is the product definition. Every deliverable — vision, requirements, narratives, prototype, API specs, guides, translations, evaluations — has one canonical location in the project repository.
  2. Define when possible; narrate when needed. Where a machine-readable form exists — OpenAPI, design-system specs, API style profiles, locale catalogs, personas IR, structured-evaluation results, baseline manifests — that form is the required artifact and narratives supplement it. Prose carries intent, rationale, and domain description where structure doesn't fit.
  3. Native workspaces stay native. VisionSpec directories, aidlc-docs/, and other tool-owned trees are never reorganized. The review site projects them; it never moves or edits them.
  4. One website for reviewers. A human reviewer walks from vision → requirements → six-pager → press release → FAQ → prototype → user/admin guides without knowing the filesystem.
  5. Prototypes are validating evidence, not requirements. ER diagrams, Ent schemas, and demo code prove the definition is coherent; they carry advisory authority, not normative.
  6. The Product Baseline is the handoff. Engineering consumes an approved, git-revision-pinned baseline — not a moving target.
  7. Translate guides before UI. Human-facing guides carry the context translators need; guide translation precedes UI-string translation.

Documentation

Overview

Package pdlc provides the ProductBuildersHQ Product Development Lifecycle contract: the canonical layout manifest and the version of the specification this module implements.

The layout contract is embedded, so tools depending on this module carry the contract with them and need no network or checkout of the specification repo.

Index

Constants

View Source
const (
	StageProductDefinition = "product-definition"
	StageBuilderDefinition = "builder-definition"
	StageImplementation    = "implementation"
	StageDeployment        = "deployment"
	StageBuilderOperations = "builder-operations"
	StageProductOperations = "product-operations"
)

Stage IDs for the six PDLC stages. These are the canonical, stable identifiers downstream consumers import rather than re-declare — for example, specification-workflow-spec tags each spec type with one of these, and Threat Model Spec's ASPM security-posture domains map onto the three builder-side stages (Implementation, Deployment, Builder Operations).

View Source
const SpecVersion = "0.1.0"

SpecVersion is the PDLC specification version this module implements.

Variables

This section is empty.

Functions

func Layout

func Layout() (*layout.Manifest, error)

Layout returns the parsed and validated canonical layout manifest. The result is parsed once and cached.

func LayoutYAML

func LayoutYAML() []byte

LayoutYAML returns the raw embedded layout manifest.

func MustLayout

func MustLayout() *layout.Manifest

MustLayout returns the canonical layout manifest and panics if the embedded contract is invalid. An invalid embedded contract is a build-time defect, not a runtime condition, so callers in tools may use this directly.

Types

type Stage added in v0.2.0

type Stage = frameworks.PDLCPhase

Stage is a single PDLC lifecycle stage. The full stage catalog — deliverables, gates, the dependency graph, and the AI-DLC crosswalk — is defined once in the productbuildershq-frameworks PDLC entry; this package re-exports it so consumers depend on pdlc, the normative specification module, rather than on the catalog module directly.

func MustStages added in v0.2.0

func MustStages() []Stage

MustStages returns the six canonical PDLC stages and panics if the embedded catalog is invalid — a build-time defect, not a runtime condition, so callers in tools may use this directly.

func StageByID added in v0.2.0

func StageByID(id string) (Stage, bool)

StageByID returns the stage with the given ID and true, or a zero Stage and false if no stage has that ID.

func Stages added in v0.2.0

func Stages() ([]Stage, error)

Stages returns the six canonical PDLC stages in order: Product Definition, Builder Definition, Implementation, Deployment, Builder Operations, and Product Operations (the last two run in parallel, not sequentially).

Directories

Path Synopsis
cmd
pdlc command
Command pdlc inspects and evaluates a product project against the ProductBuildersHQ Product Development Lifecycle layout contract.
Command pdlc inspects and evaluates a product project against the ProductBuildersHQ Product Development Lifecycle layout contract.
Package layout defines the PDLC layout contract: where every product-definition artifact belongs in a project repository, how to recognize a misplaced one, and what each project profile requires.
Package layout defines the PDLC layout contract: where every product-definition artifact belongs in a project repository, how to recognize a misplaced one, and what each project profile requires.
Package project models pdlc.yaml, the manifest declaring which product-definition domains a project carries and what quality thresholds apply to them.
Package project models pdlc.yaml, the manifest declaring which product-definition domains a project carries and what quality thresholds apply to them.
Package readiness evaluates a project against its declared PDLC profile and emits a structured-evaluation report answering, per domain: does the artifact exist, and does its quality evaluation pass.
Package readiness evaluates a project against its declared PDLC profile and emits a structured-evaluation report answering, per domain: does the artifact exist, and does its quality evaluation pass.
Package schema embeds the JSON Schemas generated from the PDLC Go types.
Package schema embeds the JSON Schemas generated from the PDLC Go types.
Package specplan resolves a spec profile (a VisionSpec authoring methodology such as "big-tech-product") into the concrete authoring plan for a project: for each required spec, where it belongs in the PDLC layout, and whether a template and rubric are available to author and judge it.
Package specplan resolves a spec profile (a VisionSpec authoring methodology such as "big-tech-product") into the concrete authoring plan for a project: for each required spec, where it belongs in the PDLC layout, and whether a template and rubric are available to author and judge it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL