Dual-State SDLC Knowledge Graph & Automated Blast Radius

How RobOS maintains simultaneous models of production reality and proposed feature branches, calculating the exact blast radius of every change across microservices, schemas, and contracts before coding begins.

Table of contents

  1. The Strategic Advantage: Seeing the System Beyond the File
  2. The Dual-State Model: World 1 vs. World 2
    1. World 1: Production Reality (main)
    2. World 2: Proposed Feature Branch (feature/*)
  3. Automated Pre-Code Blast Radius Calculation
  4. Hierarchical Agent Context & Multi-Level Rules Inheritance (Eliminating Duplicate Skills)
    1. The Big Win: Graph-Inherited Agent Context
    2. The 5 Hierarchical Context Levels
    3. Dynamic Downward Traversal in Action
  5. Living Documentation Continuous Synchronization
  6. Standards-Based Foundation: OASIS OSLC & W3C JSON-LD
  7. Next Steps

The Strategic Advantage: Seeing the System Beyond the File

Traditional developer environments suffer from severe myopia: an editor only understands plain text files within a single working folder. When an engineer or autonomous coding assistant modifies a database column or alters an API payload:

  • It has no awareness that a downstream mobile app will crash upon receiving the updated response.
  • It doesn’t know that an analytics data pipeline depends on the renamed column.
  • It cannot determine which consumer contracts or documentation pages are broken until runtime defects occur in production.

RobOS solves this through the Dual-State SDLC Knowledge Graph:

Instead of treating codebases as isolated silos, RobOS maintains an executable, connected architecture graph linking systems, services, data entities, contracts, teams, tasks, and documentation. Powered by international open standardsβ€”OASIS OSLC Core 3.0, W3C JSON-LD 1.1, and W3C SHACLβ€”the Knowledge Graph models not just what code exists today, but how the entire ecosystem changes tomorrow.

Dual-State Living Architecture (World 1 vs World 2)
Dual-State Living Architecture Diagram: Comparing Live Production State (World 1) against Proposed Feature State (World 2) with automated blast radius calculation and schema drift detection. (Click image to zoom full screen)

The Dual-State Model: World 1 vs. World 2

RobOS leverages Git branching to maintain two simultaneous representations of architectural reality:

Dual-State SDLC Knowledge Graph World 1 vs World 2 Blast Radius
Dual-State Blast Radius Detection: Comparing World 1 (Production main) against World 2 (Proposed Feature Branch) to flag breaking downstream impacts before code is written. (Click image to zoom full screen)

World 1: Production Reality (main)

World 1 represents what is actively running in production:

  • Deployed microservice versions and container configurations
  • Live database schemas, indices, and connection strings
  • Active consumer contracts and verified Pact agreements
  • Team ownership boundaries and on-call rotations

World 2: Proposed Feature Branch (feature/*)

World 2 represents the proposed state of the universe once a pull request, spike, or architectural change is merged:

  • Altered TypeSpec domain schemas
  • Updated OpenAPI endpoints or gRPC Protobuf definitions
  • New database tables or added columns
  • Newly registered microservices, frontends, or background pipelines

Automated Pre-Code Blast Radius Calculation

Before an autonomous agent or human engineer writes a single line of application code, RobOS executes Semantic Graph Diffing:

  1. Entity Drift Detection: RobOS compares the JSON-LD triples between the active branch and the main branch.
  2. Dependency Edge Traversal: The engine traverses dependency edges (robos:consumesAPI, robos:dependsOnService, robos:persistsTo, robos:tracksRequirement).
  3. Consumer Contract Verification: If an endpoint schema change violates an existing consumer contract (e.g. removing a required JSON field or changing a type from integer to string), RobOS immediately flags a Breaking Contract Violation.
  4. Impact Visualization in Dev Central: The lead architect sees a color-coded blast radius map:
    • πŸ”΄ High Risk: Broken downstream consumer contracts requiring coordination.
    • 🟑 Medium Risk: Database schema alterations requiring migration scripts.
    • 🟒 Low Risk: Additive non-breaking endpoints or documentation updates.
{
  "@type": "robos:BlastRadiusReport",
  "sourceChange": "urn:robos:contract:orders-api#OrderCreateRequest",
  "changeType": "BreakingFieldTypeChanged",
  "field": "tax_cents",
  "impactedConsumers": [
    {
      "appId": "mobile-checkout-ios",
      "team": "checkout-squad",
      "consumerContract": "urn:pact:orders-mobile-contract-v4"
    }
  ],
  "remediation": "Generate backward-compatible API adapter or bump major API version to /v2/orders."
}

Hierarchical Agent Context & Multi-Level Rules Inheritance (Eliminating Duplicate Skills)

In traditional AI coding setups, software engineering organizations face an unsustainable maintenance bottleneck: prompt rule and skill duplication across repositories.

When developers rely on file-local configurations (.cursorrules, CLAUDE.md, .github/copilot-instructions.md, or custom skill manifests):

  • Excessive Duplication: Security guidelines, license requirements, commit formatting rules, and testing standards are copy-pasted across dozens or hundreds of individual repositories.
  • Rule Drift & Stale Agents: When a company-wide policy changes (e.g. banning a compromised dependency, enforcing GPG-signed commits, or updating an API authentication standard), dozens of repositories remain outdated.
  • Context Blindness: An autonomous agent operating in a microservice has no awareness of the parent organization’s open-source bylaws, foundation rules (e.g., Apache Software Foundation policies), or team-level ownership protocols.

The Big Win: Graph-Inherited Agent Context

RobOS leverages the Knowledge Graph hierarchy to define agent context, skills, and rules once at the appropriate level, dynamically synthesizing the effective context whenever an agent session starts:

5-Tier Hierarchical Agent Rules and Context Inheritance
5-Tier Hierarchical Agent Rules & Context Inheritance: Dynamically compiling global, enterprise, organization, team, and repository context with zero duplicated prompt rules. (Click image to zoom full screen)

The 5 Hierarchical Context Levels

Level Knowledge Graph Store Scope & Injected Capabilities Duplicate Maintenance Eliminated
1. Global / System robos.core / RobOS Preferences System-wide developer defaults, base agent skills (add-ai-text-area-to-app, app-snapshot, etc.), global shell environments, and standard SDLC conventions. Eliminates re-declaring base skills and toolchains across individual developer workstations.
2. Company / Enterprise robos:Company / Enterprise Sync Corporate security baseline, allowed dependencies/registries, SSO SCIM policies, and enterprise-wide architectural review mandates. Eliminates copying corporate compliance policies into 100+ separate service repositories.
3. Git Project Organization robos:GitProjectOrganization (robos.org) Forge-level governance (e.g. https://github.com/apache), org-wide documentation hubs (docsUrl), open-source licenses (license), and org agent rules (robos:agentRules e.g. ASF license headers, public dev@ consensus tracing). Prevents copy-pasting foundation or forge guidelines across 350+ member repos (Kafka, Spark, Lucene).
4. Team / Squad robos:Team (robos.org) Team Topologies (stream-aligned, platform), code ownership boundaries, team lead approvers, and on-call escalation procedures. Configured once in the team topology node; all squad repositories inherit ownership context.
5. Repository / Component robos:Microservice, robos:FrontEndApp Service-specific OpenAPI 3.1 contracts, Protobuf stubs, TypeSpec models, and Gherkin .feature acceptance criteria. Individual repositories focus solely on their distinct business logic and contract models.

Dynamic Downward Traversal in Action

When an autonomous agent investigates a bug or opens a pull request on https://github.com/apache/kafka:

  1. Forge Organization Rules Injected: RobOS traverses to urn:robos:git-org:apache, injecting RULE-APACHE-001 (ASF license header verification) and RULE-APACHE-002 (dev@ consensus citation).
  2. Enterprise & Team Policies Merged: Corporate security rules (secret leak prevention) and team approver rosters are automatically merged into the session prompt.
  3. Local Component Contracts Linked: The microservice’s local OpenAPI contracts and TypeSpec schemas provide exact AST-level context.
  4. Zero Skill Duplication: The repository maintains zero redundant prompt files or duplicated skill definitions. Updating a rule at the organization level in the Knowledge Graph takes effect instantly across all 350+ repositories.

Living Documentation Continuous Synchronization

A major disease of enterprise software is Documentation Rotβ€”system architecture diagrams, READMEs, and wiki pages drift out of date within weeks of being written.

In RobOS, the Knowledge Graph is the living heartbeat of system documentation:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 1. Ingest Knowledge Graph Deltas                       β”‚
β”‚    Inspect added/modified nodes in Modular KGraph Pkgs β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 2. Discern Noticeable Documentation Impacts            β”‚
β”‚    Identify impacted docs: README.md, docs/index.md,   β”‚
β”‚    docs/project-plan/, specs, and .robos/ GitOps files β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 3. Apply Synchronized Documentation Updates            β”‚
β”‚    Update markdown files, tables, and architecture     β”‚
β”‚    diagrams to reflect latest graph entities           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The RobOS Cardinal Rule for AI Agents: Whenever Knowledge Graph objects are updated (added, altered, or deleted), the AI is prompted to discern any noticeable updates needed across system documentation (docs/index.md, README.md, docs/project-plan/, API specs) and update them automatically.


Standards-Based Foundation: OASIS OSLC & W3C JSON-LD

RobOS builds upon established, battle-tested open standards rather than proprietary formats:

  • OASIS OSLC Core 3.0: Standardizes requirements management (oslc_rm:Requirement), change management (oslc_cm:ChangeRequest), architecture management (oslc_am:Resource), and quality management (oslc_qm:TestPlan).
  • W3C JSON-LD 1.1: Human-readable JSON format with semantic linked-data semantics, allowing graphs to be stored directly in Git repositories under .robos/kgraphs/.
  • W3C SHACL (Shapes Constraint Language): Enforces schema correctness before graphs are committed, preventing malformed nodes, missing fields, or invalid enum values.

Next Steps