Digital twin downstream — Layer ② Process binding
What this is. A worked example of how a downstream project — a digital twin platform that embeds pentaglyph-docs as a
git subtreeunderlibs/pentaglyph-docs/— plans to bind Layer ② Process to its concrete operating environment after the upstream pentaglyph self-architecture (Phases 0-5) was merged. The patterns generalise; specific project names, ticket IDs, and contributor names are redacted.
| Metadata | Value |
|---|---|
| Case study type | Layer ② Process binding (concrete-from-abstract) |
| Downstream archetype | Digital twin platform (private, regulated industry) |
| Upstream canon version | pentaglyph self-architecture Phases 0-5 |
| Status | In progress — three follow-up User Stories planned |
1. TL;DR
Section titled “1. TL;DR”After the upstream pentaglyph self-architecture work was merged (5 layers ⓪–⑤ surfaced + ADRs 0001-0009 + Layer ② canon bindings), the downstream team noticed a gap that pentaglyph itself does not — and should not — fill:
“pentaglyph binds canons (Scrum Guide 2020 / North 2003 BDD / Beck 2002 TDD) by linking out. But our team has not yet picked the concrete Sprint cadence, CI/CD ↔ Sprint trigger, or BDD/TDD tool — those are deliberately out of pentaglyph’s scope. Without those concrete bindings, a new joiner cannot ‘just adopt the kit’ — they will improvise, drift, and lose the upstream benefits.”
This case study documents:
- What pentaglyph Layer ② provides (the upstream side, complete).
- What pentaglyph deliberately leaves out-of-scope (and why — the four-axis test in
STRATEGY §9.1). - Three concrete bindings the downstream chose:
- Track 1: Scrum cadence binding →
docs/detailed-design/cross-cutting/development-lifecycle/scrum-cadence.md - Track 2: CI/CD ↔ Sprint integration → extend
docs/detailed-design/infra/ci-cd/CICD.md - Track 3: BDD/TDD tool adoption ADR →
docs/arc42/09-decisions/00XX-bdd-tdd-tool-adoption.md
- Track 1: Scrum cadence binding →
2. What pentaglyph Layer ② provides (upstream)
Section titled “2. What pentaglyph Layer ② provides (upstream)”Phase 2 of the self-architecture roadmap delivered these bindings in template/docs/design-guide/:
| File | Canon bound | Status |
|---|---|---|
dev-cycle.md | Scrum Guide 2020 (Schwaber & Sutherland) | Stable |
bdd-workflow.md | Dan North 2003 / Adzic 2011 SbE | Stable |
tdd-workflow.md | Beck 2002 / Fowler | Stable |
dod-dor.md | Definition templates (Cohn / industry baseline) | Stable |
_binding-a-new-process.md | Meta-doc: how to bind a new process canon | Stable |
Crucially, every binding doc states the same boundary in different words:
“No tool selection. Whether you track Sprint Backlog in Jira / Linear / Azure DevOps Boards / GitHub Projects / paper is a Layer ③ Automation concern.”
“Sprint cadence is project-specific. This binding does not prescribe 1-week / 2-week / 4-week Sprints — pick what matches team / domain.”
This is the deliberate hole. The hole is the point — it lets pentaglyph stay domain-neutral and ten-year-stable. But the hole has to be filled per project.
3. What pentaglyph deliberately leaves out (and why)
Section titled “3. What pentaglyph deliberately leaves out (and why)”The four-axis test from STRATEGY.md §9.1 decides what pentaglyph binds vs. what it leaves to downstream:
| Axis | Means | If all four ✅ | If any ❌ |
|---|---|---|---|
| Day-1 necessity | Project needs it on day 1, can’t postpone | Bind it | Leave to downstream |
| Switching cost | Costly to change after the fact | Bind it | Leave to downstream |
| External canon | A stable, free, authoritative document exists | Bind to it (link-out) | Don’t invent one |
| Domain neutrality | Works in regulated / startup / B2B / OSS / AI / embedded | Bind it | Leave to downstream |
Applying this to the downstream’s gap:
| Concrete decision | Day-1? | Switch cost | External canon | Domain-neutral? | Pentaglyph binds? |
|---|---|---|---|---|---|
| Scrum cadence (1-week vs 2-week) | ✅ | ⚠️ medium | ❌ (Scrum Guide silent) | ❌ (team-dependent) | NO — leave to downstream |
| CI tool choice | ✅ | 🔴 high | ❌ (no canon) | ❌ (cloud-dependent) | NO — Layer ③ Automation |
| BDD tool | ⚠️ | 🟡 low-medium | ❌ (multiple tools) | ❌ (language-dependent) | NO — leave to downstream |
| BDD / TDD / Scrum as concepts | ✅ | 🔴 high | ✅ | ✅ | YES — already bound in Phase 2 |
So the three Tracks below all fall on the “leave to downstream” side of the line. That is the intended architecture, not a pentaglyph gap.
4. The three concrete bindings (Tracks)
Section titled “4. The three concrete bindings (Tracks)”Each Track corresponds to one User Story under a parent Feature. Each is sized for one focused day of work and is independent — can be done in any order or in parallel.
4.1 Track 1 — Scrum cadence binding
Section titled “4.1 Track 1 — Scrum cadence binding”Goal: Author docs/detailed-design/cross-cutting/development-lifecycle/scrum-cadence.md as the downstream’s project-specific override of pentaglyph’s design-guide/dev-cycle.md. The authoritative answer to “How does Scrum run on this project?”
Content (must include all):
- Cadence: 1-week Sprint (Mon-Fri).
- Events with timeboxes:
- Sprint Planning: Monday, 2h max
- Daily Scrum: 15 min, asynchronous (geographically dispersed team)
- Sprint Review: Friday, 1h max — includes DoD gate + Velocity recompute
- Sprint Retro: Friday after Review, 45 min max
- Roles (Scrum Guide 2020 mapping):
- Product Owner: domain champion / funder
- Scrum Master: distributed across AI-agent skills (impediment detection, DoD gate, facilitation). Non-standard but intentional.
- Developers: AI-agent roles + human reviewers
- Artefact mapping — abstract pentaglyph list instantiated for this project’s ticket system.
- Version bumping — Sprint Review triggers semver minor bump + tag.
- Override declaration —
overrides: libs/pentaglyph-docs/template/docs/design-guide/dev-cycle.md.
4.2 Track 2 — CI/CD ↔ Sprint integration
Section titled “4.2 Track 2 — CI/CD ↔ Sprint integration”Goal: Extend docs/detailed-design/infra/ci-cd/CICD.md with the Sprint-cadence interplay that is currently undocumented. Not about adding new CI features — about naming the existing release ceremony so newcomers stop reverse-engineering it.
Content:
- Trigger matrix — for each pipeline, what fires it and which Sprint event it maps to.
- Sprint-Review release flow — the canonical sequence from DoD gate → version bump → tag → CD-prod auto-fire → post-deploy smoke test.
- Cold-start / drift handling — week-1 of Sprint re-bake fragility patterns.
- Path-aware CI skip rules — what triggers full CI vs fast path.
- Failure runbook — link to recent CI postmortems.
4.3 Track 3 — BDD / TDD tool adoption ADR
Section titled “4.3 Track 3 — BDD / TDD tool adoption ADR”Goal: Decide which BDD and TDD tools the downstream adopts and record the decision as a MADR ADR.
Decision drivers (pre-filled in the ADR):
- Existing test stack — extensive unit test coverage, no Gherkin /
.featurefiles yet. - Current AC practice — Connextra format + checkbox; some AC use Given/When/Then but not executable.
- Test maturity — high in unit / E2E; marginal value of BDD on top is moderate, not high.
- PoC vs production — multi-tenant + regulated rollout increases the value of executable AC for compliance.
- AI-agent compatibility — adding pytest-bdd would add a layer the agents need new prompts for.
Candidate decisions:
| Option | Verdict |
|---|---|
| A. Adopt pytest-bdd for new features only | Maintains alignment with SbE; adds friction to agent workflow; locks in tool early |
| B. Defer BDD adoption until multi-tenant rollout | Avoids premature tool commitment; keeps option open; risks AC drift |
| C. Adopt G/W/T as AC notation only (no .feature files), TDD-first via existing unit tests | Cheapest; matches current habit; loses “executable AC” benefit; aligns with pentaglyph upstream “tool-free first” guidance |
Recommendation: Option C for PoC, revisit at multi-tenant milestone.
5. Generalisable patterns
Section titled “5. Generalisable patterns”Even with project-specific details redacted, these patterns travel:
- Three-Track decomposition — splitting one Feature into Cadence + Tooling-integration + Decision-ADR keeps each PR shippable in a day.
- Override declaration in front-matter —
overrides: libs/pentaglyph-docs/template/docs/design-guide/<file>makes pentaglyph alignment checkable by static linting later. - Distributed Scrum Master role across AI agents — non-standard but viable for small, AI-augmented teams; document explicitly to avoid Scrum Guide compliance surprises.
- “Tool-free first” for BDD adoption — favouring G/W/T as a writing convention before committing to a runner is consistent with pentaglyph’s domain-neutrality philosophy.
6. Lessons learned
Section titled “6. Lessons learned”To be appended after the three Tracks merge. Especially:
- Did the four-axis test correctly predict the binding boundary?
- Any pieces that should be pushed back into pentaglyph upstream?
- Any downstream-specific binding actually generic enough to be a kit default?
7. References
Section titled “7. References”design-guide/dev-cycle.md— Scrum Guide 2020 bindingdesign-guide/bdd-workflow.md— BDD bindingdesign-guide/tdd-workflow.md— TDD bindingdesign-guide/dod-dor.md— DoD/DoR bindingdesign-guide/_binding-a-new-process.md— meta-doc- Schwaber & Sutherland — Scrum Guide 2020
- Dan North — Introducing BDD (2003)
- Gojko Adzic — Specification by Example (2011)
- Kent Beck — Test Driven Development (2002)