Generative Specification · Diagnostic

What does a GS-disciplined codebase look like?

That's not aspirational fiction. It's what seven specification properties produce when applied. The methodology is published, reproducible, and backed by a 58-developer controlled study.

Below are the 25 structural capabilities your codebase gains when GS is applied — and the 25 failure modes the same properties prevent.

Book a free 30-min discovery call → 30-second self-test ↓
npx pragmaworks audit

The 25 capabilities GS builds

Structural acquisitions — permanent, not maintained

Each capability is a structural acquisition — something your codebase gains permanently, not a process you have to maintain.

💎 Transformative — alters the category of work your team can take on
#CapabilityWhat it means in practice
1Cross-Session Architectural CoherenceCode generated in any AI session is structurally consistent with all previous sessions. The specification is the persistent referee.
2Stateless DerivabilityA new AI session — or a new engineer — derives the correct implementation from artifacts alone. No verbal handoff needed.
4Explicit Inter-System ContractsEvery interface between systems is written and enforced. The Mars Climate Orbiter failure mode is structurally eliminated.
12Specification-Bound VerificationThe test suite verifies behavioral contracts against real execution — not just that code compiles.
14Stateless Knowledge TransferTeam rotations, AI session resets, onboarding — all handled by the spec. Oral tradition becomes an artifact.
18Sustainable Formal DisciplineThe system enforces SOLID, TDD, and clean architecture automatically — not through cultural pressure.
22Spec-Level SecurityConsequence classification is written. Irreversible operations have confirmation gates. Structural, not procedural.
24Inverted AI DependencyAI executes against your specification, not against its prior distribution. You direct the model; the model doesn't direct you.
🚀 Amplifying — multiplies the capacity of existing work
#CapabilityWhat it means in practice
5Derivable Project KnowledgeAny engineer or AI session can reconstruct the full project context from artifacts alone.
6Persistent Session MemoryContext established in one session is available in every subsequent session — without re-narration.
9Behavioral VerificationTests prove what the system does under real conditions, not just that it compiles.
15Visible Technical DebtDebt is tracked in auditable artifacts. The AI knows it exists. Remediation is planned, not discovered.
21Structured PromptingThe specification is the prompt. Model-agnostic, version-stable, reproducible across any AI executor.
25End-to-End Lifecycle AutomationFrom spec to staging to production monitoring — every tier of the lifecycle governed by the same artifact set.
⚙️ Structural — removes a recurring tax on the team's time
#CapabilityWhat it means in practice
3Architectural Constraint EnforcementLayer rules, forbidden patterns, naming conventions enforced at generation time — not at code review time.
7Single Source of TruthOne canonical spec. Code, tests, and docs derive from it. Divergence is a build error, not a people problem.
8Bounded ConstitutionEvery specification artifact fits within the AI's usable context window. No silent truncation. No blind spots.
10TDD Phase IntegrityThe RED phase cannot be bypassed. Structural gates enforce test-before-code at the commit level.
11Ghost Failure DiscriminationTest failures tell you what the contract requires, not what the current implementation does.
13Deterministic AI OutputGiven the same spec and the same requirement, AI sessions converge on the same output. Reproducibility by design.
16Architectural Decision LineageEvery non-obvious decision has a recorded rationale. The AI cannot silently "correct" what it wasn't told was intentional.
17Typed Change HistoryEvery commit has type, scope, and intent. The git log is a machine-readable audit trail.
19Living DocumentationDocs are derived from the spec — they update when the spec updates. They cannot drift.
20Cross-Language Contract ConsistencyInterface contracts hold across service boundaries regardless of implementation language.
23Governed AI SurfaceThe AI's authority is bounded. What it may and may not do is written, not inferred.

Where is your team today?

30-second self-test

Check any that apply:

3 or more
Multiple active pathologies. The audit names them.
1–2
Early stage — preventable before they compound.
0
Well-specified or very early project. Verify with the free audit.

The 25 pathologies GS prevents

Each is structurally prevented by one or more of the seven properties

Recognizing yours is the first step to resolving them.

🔴 Critical — active structural damage
#PathologyWhat you observe
1Architectural DriftAI output structurally incoherent across sessions. Each session locally valid; system diverges over time.
2Specification AbsenceNo derivable spec. Every new session reconstructs intent from code — incorrectly and differently each time.
3Implicit ArchitectureArchitectural rules live in heads, not artifacts. AI violates boundaries it was never told about.
4Implicit Contract SyndromeTwo systems agree by assumption, not contract. The Mars Climate Orbiter failure mode. $327M demonstrated cost.
5AI Security BlindspotNo consequence classification. AI executes irreversible operations without a confirmation gate.
6Session AmnesiaContext resets at every session boundary. Prior decisions and constraints evaporate.
🟠 High — compounding silently
#PathologyWhat you observe
7Test TheaterTests pass. Behavioral contracts aren't tested. Green CI on broken features.
8ADR DebtDecisions made and lost. Same decision relitigated in every session.
9Scope CreepEach AI session expands scope slightly. Boundaries never enforced.
10Copilot DependencyOnly the AI knows what the code does. Humans can't audit output they can't follow.
11Context Window OverflowSessions collapse under their own weight. Quality degrades; model attends to wrong signals.
12Bus FactorOne person understands the system. AI or human departure = knowledge loss.
13Naming EntropyInconsistent naming across sessions. AI invents synonyms. Search fails.
14Commit ChaosCommits untyped, oversized, untraceable. Git log useless as audit trail.
15Documentation DecayDocs written at project start. Code moved on. Docs actively mislead the AI.
16Cascade BlindnessSpec change cascades downstream without anyone knowing. Tests pass on the old contract.
17Layer ViolationAI adds to the nearest layer, not the right one. Domain logic in controllers.
18Phantom DependencyComponents depend on each other in ways not declared. Refactoring breaks unexpected things.
🟡 Medium — detectable before critical
#PathologyWhat you observe
19Onboarding FrictionNew developers need weeks of handholding. New AI sessions need the same every time.
20Prompt Engineering DependencyPrompts are the spec. Change the model, lose the output.
21Premature OptimizationAI optimizes for the nearest metric, not the system's actual constraints.
22Over-EngineeringAI adds abstraction layers the spec never requested. Complexity compounds.
23Tech Debt InvisibilityDebt known but untracked. Doesn't appear in audit trail. AI doesn't know it exists.
24Compliance GapRegulatory requirements exist in someone's head. The AI never had them.
25Tooling MismatchAI uses the wrong tool. Not because it's wrong — because the spec never said which tool to use when.

How the seven properties map to both

Each property prevents pathologies and builds capabilities
GS PropertyPathologies it preventsCapabilities it builds
Self-describingArchitectural Drift, Session Amnesia, Implicit Architecture, Onboarding Friction, ADR DebtCross-Session Coherence, Stateless Derivability, Derivable Project Knowledge
BoundedContext Window Overflow, Scope Creep, Layer Violation, Tooling MismatchBounded Constitution, Architectural Constraint Enforcement
VerifiableTest Theater, Cascade Blindness, Compliance GapBehavioral Verification, Specification-Bound Verification
DefendedAI Security Blindspot, Cascade Blindness, Premature OptimizationSpec-Level Security, TDD Phase Integrity, Governed AI Surface
AuditableADR Debt, Commit Chaos, Documentation Decay, Tech Debt InvisibilityArchitectural Decision Lineage, Typed Change History, Living Documentation
ComposablePhantom Dependency, Layer Violation, Over-EngineeringCross-Language Contract Consistency, Single Source of Truth
ExecutableTest Theater, Compliance Gap, Tooling MismatchGhost Failure Discrimination, Deterministic AI Output

Seven properties and rubric (0–14 score) published in the GS White Paper v4.0.

What to do next

Three paths forward
Free · Immediate
Run the codebase audit

Any repo. Produces a 0–14 score with named pathologies and a remediation priority list. Free for individuals.

npx pragmaworks audit
Workshop · $6–25K
La Fragua

Four-morning hands-on workshop delivering the seven properties operationally. Teams leave with a personalized diagnostic, ForgeCraft enforcement recipes for their top pathologies, and 90 days of tooling access.

Learn about La Fragua →
Concierge · $20–50K
Done-for-you remediation

Guided remediation on production systems. Start with a free discovery call.

Book a 30-min call →