Stakeholder Documentation — Playbook Registry and Gap Analysis
Overview
Business process playbooks, gap analysis, and stakeholder-facing documentation for the Sovereign OS platform.
Playbook Registry (Playbook Registry — What You Can Run, Who Runs It, What You Get Back)
31+ Sellable Business Processes
The playbook registry contains 31+ documented business processes that can be sold or licensed. Each process follows a standardized format with:
- Process name — descriptive title
- CNS type —
cns://claim/type/...mapping - Actors — who participates (users, agents, organizations)
- Triggers — what starts the process
- Steps — sequential business logic
- Outputs — delivered artifacts or claims
- Governance — applicable rules and policies
Playbook Index Reference
Key playbooks documented (excerpt):
| Playbook ID | Title | CNS Type | Key Functions |
|---|---|---|---|
| S-01 | — | — | fn::org::create, fn::org::add_member |
| S-02 | — | — | Program management functions |
| S-03 | Glossary | — | fn::cns::register_type, fn::cns::register_entry |
| S-04 | Week Review | — | fn::scope::create_community |
| S-05 | Playbook Registry | — | 31+ business processes documented |
| S-06+ | Various verticals | — | Vertical-specific flows |
How to Use Playbooks
- Select a playbook from the registry matching your use case
- Review the CNS type mapping to ensure correct claim typing
- Follow the step-by-step business logic
- Check governance policies applicable to your scope
- Deploy using the referenced deployment scripts
- Integrate with existing Strata (s135, s141, s143, etc.)
Example: Claims Processing Playbook
Trigger: New claim created via `fn::claim::create`
Steps:
1. Validate claim via `fn::validation::run_rules`
2. Route to appropriate scope via `fn::scope::join_scope`
3. Enrich with truth graph via `fn::create_truth_node`
4. Notify stakeholders via `fn::notification::enqueue`
5. Record on-chain via `fn::federation::log_event`
Output: Signed claim with full audit trail
Gap Analysis (Gap Analysis Validation — Cross-Document Gap Audit)
18 AGENTS.md Mandate Violations Identified
Critical (4)
- Bespoke table creation — ensuring no domain-specific tables (
materra_,kazi_, etc.) exist - Declarative-first policy — all static data sourced from NATS KV, Kestra, Apache Camel YAML, not hardcoded
- No silent fallbacks — infrastructure errors must fail closed (502/503/422), never synthesize "OPTIMAL"/"APPROVED"
- No synthetic adapter payloads — no hardcoded coordinates, supplier IDs, org IDs in production code
High (7)
- No bespoke schema changes — reuse existing primitives before creating new tables
- Events over polling — NATS JetStream events vs. cron/sweep patterns
- Prefer TypeScript over JavaScript —
.ts/.tsxextensions, typechain - No polling patterns — event-driven architecture throughout
- Auth callout JWT crafting — correct
audfield placement, noissuer_accountin NATS object - Same DB isolation —
community_osshared guard withis_portfoliochecks - Seeds adapted for SCHEMAFULL —
status="active"notis_active=true,metadata={traits:[...]}nottraits=[...]
Medium (4)
- Same DB multi-system —
community_osfor both GRSE/Portfolio and hardened_mission sharing_policyas single source of truth (removed redundantcapability.scope)- Inherited capabilities via
fn::create_containmentwhensharing_policy="inherited" - Claims as fundamental primitive — consider when data can be treated as a claim
Low (3)
- Background work uses events, not polling —
nats_outbox→ NATS publish → consumer pattern - New governed capability PRs — follow
NEW_CAPABILITY_PR_CHECKLIST.md(CV-59) - Avoid filesystem lookups at runtime — read from NATS KV at runtime, not disk paths
Gap Closure Status
- Critical: 4/4 addressed in SDK and codebase
- High: 7/7 addressed in SDK types, architecture, and deployment scripts
- Medium: 4/4 addressed in design patterns and existing primitives
- Low: 3/3 acknowledged; remain as known constraints
Comprehensive System Catalog (COMPREHENSIVE_SYSTEM_CATALOG.md)
3 Audience Tracks
- Developer — SDK docs, API references, code examples, type definitions
- Administrator — deployment guides, ops runbooks, health checks, configuration
- Stakeholder — business playbooks, gap analysis, process documentation, governance
18+ Validated Gaps
- Documented with severity classification (Critical/High/Medium/Low)
- Each gap has: description, impact, remediation, verification
- Linked to playbooks that address or work around each gap
31+ Playbooks
- Documented business processes ready for consumption
- Each playbook maps to CNS types and strata
- Deployment sequences documented per playbook
- Governance policies referenced per playbook
CNS Type Hierarchy (s185)
Kujenga Claim Type Structure
cns://claim/type/kujenga (traits: [construction, governed, mpesa_enabled, poce_tracked])
├── cns://claim/type/kujenga/project (traits: [budgeted, multi_stakeholder, archived])
├── cns://claim/type/kujenga/milestone (traits: [escrow_linked, inspectable, sequential, funded])
├── cns://claim/type/kujenga/task (traits: [assignable, time_bound, completable, blockable])
└── cns://claim/type/kujenga/inspection (traits: [pass_fail, scheduled, certifiable, disputable])
Seed Files
database/seeds/cns/cns_type_catalog_kujenga.surql— CNS type catalog seeddatabase/seeds/manifest/platform_kujenga.v2.json— 12 contract implementations, Synadia + NATS comms, 7 depsdatabase/seeds/nats/nats_auth_governance_seed.surql— 6 client types incl. governance, synadia_mobile
Key Reference Documents
Developer-Facing
docs/api/L3_APPLICATION_BFF_API.md— 25,582 bytes, 11 sections, all endpointsapps/agent-bff/openapi/bff-v1.json— OpenAPI 3.1.0, 574 schema propertiespackages/sovereign-sdk/src/L3BffClient.ts— 23 endpoint methods + typesdocs/COMPREHENSIVE_SYSTEM_CATALOG.md— full docs map
Administrator-Facing
- 03 Deploy Topology — deployment topology
- A-02 — Runbooks (step-by-step recovery) — operational runbooks
- Gap Analysis Validation — Cross-Document Gap Audit — 18 mandate violations
- Plan — Gap Remediation Sequencing — remediation plan
Stakeholder-Facing
- Playbook Registry — What You Can Run, Who Runs It, What You Get Back — 31+ business processes
- Design — Enforcing Fail-Closed / No Synthetic Fallbacks (GAP-03) — design principles
- Design — Eliminating Synthetic Payloads and Hardcoded Metrics (GAP-04, GAP-05) — payload constraints
- Design — Remediating Zero Bespoke Tables Violation (GAP-01) — zero bespoke tables
Cross-Reference
- Backlog — Specific Action Items for Gap Remediation — outstanding work items
README.md— platform-map directory overview- Plan — Gap Remediation Sequencing — prioritized remediation sequence