๐ Three-Horizon State Management: Static Build Lifecycle โ AWS-Native Serverless Intelligence
๐ฏ From Deterministic Build States to Event-Driven, Agentic, Self-Healing State Machines (2026-2037)
๐ Document Owner: CEO | ๐ Version: 4.1 | ๐
Last
Updated: 2026-05-31 (UTC) | ๐ Release: v1.0.1
๐ Review Cycle: Quarterly | โฐ Next Review: 2026-08-31
๐ท๏ธ Classification: Public (Open Source European Parliament Monitoring Platform)
| Document | Focus | Description | Documentation Link |
|---|---|---|---|
| Architecture | ๐๏ธ Architecture | C4 model showing current system structure | View Source |
| Future Architecture | ๐๏ธ Architecture | C4 model showing future system structure | View Source |
| Mindmaps | ๐ง Concept | Current system component relationships | View Source |
| Future Mindmaps | ๐ง Concept | Future capability evolution | View Source |
| SWOT Analysis | ๐ผ Business | Current strategic assessment | View Source |
| Future SWOT Analysis | ๐ผ Business | Future strategic opportunities | View Source |
| Data Model | ๐ Data | Current data structures and relationships | View Source |
| Future Data Model | ๐ Data | Enhanced European Parliament data architecture | View Source |
| Flowcharts | ๐ Process | Current data processing workflows | View Source |
| Future Flowcharts | ๐ Process | Enhanced AI-driven workflows | View Source |
| State Diagrams | ๐ Behavior | Current system state transitions | View Source |
| Future State Diagrams | ๐ Behavior | Enhanced adaptive state transitions | This Document |
| Security Architecture | ๐ก๏ธ Security | Current security implementation | View Source |
| Future Security Architecture | ๐ก๏ธ Security | Security enhancement roadmap | View Source |
| Threat Model | ๐ฏ Security | STRIDE threat analysis | View Source |
| Future Threat Model | ๐ฏ Security | Forward-looking threat analysis | View Source |
| Classification | ๐ท๏ธ Governance | CIA classification & BCP | View Source |
| CRA Assessment | ๐ก๏ธ Compliance | Cyber Resilience Act | View Source |
| Workflows | โ๏ธ DevOps | CI/CD documentation | View Source |
| Future Workflows | ๐ DevOps | Planned CI/CD enhancements | View Source |
| Business Continuity Plan | ๐ Resilience | Recovery planning | View Source |
| Financial Security Plan | ๐ฐ Financial | Cost & security analysis | View Source |
| End-of-Life Strategy | ๐ฆ Lifecycle | Technology EOL planning | View Source |
| Unit Test Plan | ๐งช Testing | Unit testing strategy | View Source |
| E2E Test Plan | ๐ Testing | End-to-end testing | View Source |
| Performance Testing | โก Performance | Performance benchmarks | View Source |
| Security Policy | ๐ Security | Vulnerability reporting & security policy | View Source |
This future state diagram is designed to implement all controls from Hack23 AB's ISMS framework as the EU Parliament Monitor platform evolves across its three strategic horizons โ from the v2.0 enhanced static intelligence lifecycle to the v3.0+ AWS-native serverless state machines.
| Policy Domain | Policy | Planned Implementation |
|---|---|---|
| ๐ Core Security | Information Security Policy | Overall security governance framework for state lifecycle |
| ๐ค AI Governance | AI Policy | AI = proposal generator; human-review gate states; no autonomous deploy |
| ๐ ๏ธ Development | Secure Development Policy | Security-integrated state machine design and validation |
| ๐ Network | Network Security Policy | CloudFront edge states, AWS WAF + Shield, rate-limit states |
| ๐ Cryptography | Cryptography Policy | SLSA provenance signing, TLS 1.3, AWS KMS envelope encryption |
| ๐ Access Control | Access Control Policy | Amazon Cognito session states, IAM least-privilege transitions |
| ๐ท๏ธ Data Classification | Data Classification Policy | European Parliament public open-data classification states |
| ๐ Vulnerability | Vulnerability Management | Amazon Inspector / CodeQL scan states in build lifecycle |
| ๐จ Incident Response | Incident Response Plan | GuardDuty/Security Hub detection โ response state transitions |
| ๐พ Backup & Recovery | Backup Recovery Policy | S3 versioning, point-in-time recovery states |
| ๐ Business Continuity | Business Continuity Plan | Multi-AZ serverless failover, static-edge fallback states |
| ๐ค Third-Party | Third Party Management | AWS shared-responsibility and MCP provider assessment |
| ๐ท๏ธ Classification | Classification Framework | Business impact analysis for platform state criticality |
| Framework | Version | Relevant Controls |
|---|---|---|
| ISO 27001 | 2022 | A.5.1, A.8.25, A.8.26, A.8.27, A.8.28 |
| NIST CSF | 2.0 | GV.OC, GV.RM, ID.AM, PR.AT, DE.CM, RS.MA |
| CIS Controls | v8.1 | Control 1-5, 8, 13, 14, 16 |
| GDPR | 2016/679 | Public MEP roles only; Bedrock Guardrails PII states |
This document defines the evolution of EU Parliament Monitor's state management across three strategic horizons. Today (v1.0.x) the platform is a pure static-site generator whose only "states" are deterministic build-pipeline stages running in GitHub Actions and publishing to Amazon S3 + Amazon CloudFront. The future is not a single leap to "real-time"; it is a deliberate, governed progression:
Design principle: complexity is added behind the static edge, never in front of it. The public, open-data front door always degrades to a pre-rendered static snapshot. This is the resilience and cost moat.
| Aspect | Current (v1.0.x) | v2.0 (Enhanced Static) | v3.0+ (AWS Serverless) |
|---|---|---|---|
| State Persistence | None (ephemeral build) | None (ephemeral build) | DynamoDB + Aurora Serverless v2 + Step Functions execution history |
| State Complexity | Linear build workflow | Linear build + dataset states | Event-driven, parallel, agentic state machines |
| Orchestration | GitHub Actions jobs | GitHub Actions (gh-aw) | AWS Step Functions + EventBridge |
| Error Recovery | Fail and re-run | Fail and re-run | Retry/catch states, DLQ, self-healing |
| Identity/Session | None (anonymous static) | None (anonymous static) | Amazon Cognito session states |
| AI Generation | Build-time LLM (gh-aw) | Build-time LLM (gh-aw) | Bedrock + Knowledge Bases + Guardrails + human gate |
| Security States | CI scan gates | CI scan gates | GuardDuty/Security Hub detect โ respond |
gantt
title State Management Evolution Timeline (v2.0 to v3.0+)
dateFormat YYYY-MM
section v2.0 Enhanced Static
Party Landscape Dashboard States :v2a, 2026-07, 3M
OSINT Tradecraft State Enrichment :v2b, 2026-09, 3M
Dataset Build Lifecycle Hardening :v2c, 2026-10, 2M
51-Template Catalog Integration :v2d, 2026-11, 3M
section v3.0 Serverless Foundation
Step Functions Orchestration :v3a, 2028-01, 4M
EventBridge Event Ingestion States :v3b, 2028-03, 3M
Cognito Session/Auth States :v3c, 2028-05, 3M
section v3.1 Intelligence Core
Bedrock Generation State Machine :v3d, 2028-07, 4M
Neptune Knowledge Graph States :v3e, 2028-09, 3M
DAX Cache State Management :v3f, 2028-10, 2M
section v3.2 Autonomous Resilience
GuardDuty Security State Response :v4a, 2029-01, 3M
Self-Healing Recovery States :v4b, 2029-03, 4M
Agentic OSINT State Orchestration :v4c, 2029-06, 4M
The v2.0 horizon preserves the deterministic, server-free build lifecycle. A gh-aw agentic workflow authors Stage-B markdown analysis artifacts, the deterministic aggregator renders 14-language HTML, and the result is deployed to Amazon S3 and served via Amazon CloudFront. These states are short-lived, fully reproducible, and leave no runtime state to defend.
stateDiagram-v2
[*] --> Idle: Repository Ready
Idle --> WorkflowTriggered: Schedule or Dispatch
WorkflowTriggered --> RunnerProvisioned: GitHub Actions Runner
RunnerProvisioned --> AgenticRun: Start gh-aw Workflow
AgenticRun --> DataCollection: Query MCP Sources
DataCollection --> DataCollected: EP MCP plus WorldBank plus IMF
DataCollection --> DataDegraded: Source Timeout
DataDegraded --> DataCollected: Fallback or Cached Window
DataCollected --> AnalysisAuthoring: LLM Authors Artifacts
AnalysisAuthoring --> ArtifactsWritten: Stage B Markdown Committed
AnalysisAuthoring --> AuthoringRetry: Quality Below Floor
AuthoringRetry --> AnalysisAuthoring: Refine and Reauthor
ArtifactsWritten --> ManifestValidation: Validate manifest.json
ManifestValidation --> ManifestValid: Schema and Floors OK
ManifestValidation --> ManifestInvalid: Missing Artifacts
ManifestInvalid --> AuthoringRetry: Regenerate Gaps
ManifestValid --> AggregatorRender: Deterministic HTML Build
AggregatorRender --> SecurityScan: CodeQL and Scorecard
SecurityScan --> ScanPassed: No Blocking Findings
SecurityScan --> ScanFailed: Findings Present
ScanFailed --> BuildHalted: Block Publish
ScanPassed --> ProvenanceSigning: SLSA 3 Attestation
ProvenanceSigning --> S3Upload: Sync Static Assets
S3Upload --> S3Uploaded: Objects Versioned
S3Upload --> S3UploadRetry: Transient S3 Error
S3UploadRetry --> S3Upload: Retry With Backoff
S3Uploaded --> CloudFrontInvalidation: Invalidate Edge Cache
CloudFrontInvalidation --> EdgePropagating: Distribute to PoPs
EdgePropagating --> Published: Content Live
Published --> Idle: Await Next Trigger
BuildHalted --> Idle: Human Remediation
note right of AnalysisAuthoring
gh-aw + Anthropic Claude:
51-template catalog
ICD 203 confidence grading
Politically neutral, cited
end note
note right of CloudFrontInvalidation
Static edge stays the
public front door across
all three horizons.
end note
v2.0's differentiator is higher-quality political-landscape intelligence, with a focus on parties and political groups. Interactive dashboards (Chart.js 4 + D3 7) consume pre-rendered datasets baked at build time โ there is no runtime query path, preserving pure static delivery. The state machine below governs how a dataset (e.g., political-group cohesion, coalition mathematics, seat projection, voting-pattern heatmap) is assembled, validated, and frozen into a static JSON asset.
stateDiagram-v2
[*] --> DatasetRequested: Build Step Begins
DatasetRequested --> SourceResolution: Resolve MCP Tools
SourceResolution --> Fetching: Pull Voting and Membership Data
Fetching --> Fetched: Records Retrieved
Fetching --> FetchPartial: Window Gap
FetchPartial --> Fetched: Merge Cached Window
Fetched --> Normalizing: Canonicalize Entities
Normalizing --> Computing: Aggregate Metrics
Computing --> CohesionScored: Group Cohesion Index
Computing --> CoalitionMapped: Coalition Mathematics
Computing --> SeatProjected: Seat or Election Cycle
CohesionScored --> Validating: Cross-Check Totals
CoalitionMapped --> Validating: Cross-Check Totals
SeatProjected --> Validating: Cross-Check Totals
Validating --> Valid: Sums and Ranges OK
Validating --> Invalid: Anomaly Detected
Invalid --> Recompute: Flag and Recompute
Recompute --> Computing: Reaggregate
Valid --> Freezing: Serialize Static JSON
Freezing --> Embedded: Bake Into Build Output
Embedded --> [*]: Dataset Ready For Edge
note right of Computing
Party / political-group focus:
cohesion, defection, alliance
networks, scorecards, heatmaps.
end note
In v3.0+ the build-time generation path is complemented by an AWS Step Functions-orchestrated state machine for on-demand and event-triggered intelligence products. Amazon Bedrock provides model-agnostic foundation models, Bedrock Knowledge Bases supply managed RAG over the EP corpus and committed analysis artifacts, and Bedrock Guardrails enforce neutrality, GDPR/PII boundaries, and hallucination control. Per the Hack23 AI Policy, a human-review gate precedes any publication โ AI proposes, humans remain accountable.
stateDiagram-v2
[*] --> ExecutionStarted: Step Functions Invoke
ExecutionStarted --> InputValidation: Validate Payload
InputValidation --> ContextRetrieval: Valid Request
InputValidation --> Rejected: Schema Error
Rejected --> [*]: Fail Fast
ContextRetrieval --> KnowledgeBaseQuery: Bedrock Knowledge Base
KnowledgeBaseQuery --> ContextAssembled: RAG Chunks Retrieved
KnowledgeBaseQuery --> RetrievalRetry: Throttled
RetrievalRetry --> KnowledgeBaseQuery: Backoff Retry
ContextAssembled --> ModelInvocation: Bedrock InvokeModel
ModelInvocation --> DraftGenerated: Tokens Returned
ModelInvocation --> InvocationRetry: Transient Error
InvocationRetry --> ModelInvocation: Retry With Jitter
ModelInvocation --> FallbackModel: Capacity Exhausted
FallbackModel --> ModelInvocation: Switch Bedrock Model
DraftGenerated --> GuardrailEvaluation: Bedrock Guardrails
GuardrailEvaluation --> GuardrailPassed: Neutral and Clean
GuardrailEvaluation --> GuardrailBlocked: Policy Violation
GuardrailBlocked --> Regeneration: Adjust Prompt
Regeneration --> ModelInvocation: Regenerate
Regeneration --> HumanReviewGate: Max Attempts
GuardrailPassed --> QualityScoring: ICD 203 and Citations
QualityScoring --> QualityAcceptable: Floor Met
QualityScoring --> QualityRejected: Below Floor
QualityRejected --> Regeneration: Refine
QualityAcceptable --> HumanReviewGate: Editorial Approval Required
HumanReviewGate --> Approved: Editor Approves
HumanReviewGate --> ChangesRequested: Editor Edits
HumanReviewGate --> Discarded: Editor Rejects
ChangesRequested --> ModelInvocation: Apply Feedback
Discarded --> [*]: Halt Execution
Approved --> Translation: Amazon Translate 14 Langs
Translation --> TranslationDone: All Locales Ready
Translation --> TranslationRetry: Locale Failed
TranslationRetry --> Translation: Retry Failed Locales
TranslationDone --> Persistence: Write DynamoDB and S3
Persistence --> EdgePublish: CloudFront Invalidate
EdgePublish --> ExecutionSucceeded: Product Live
ExecutionSucceeded --> [*]: Emit Completion Event
note right of HumanReviewGate
AI Policy: AI proposes,
humans are accountable.
No autonomous production
publish.
end note
note right of GuardrailEvaluation
Neutrality, PII/GDPR,
hallucination control on
every generated draft.
end note
To support near-real-time political intelligence, v3.0+ ingests European Parliament events through Amazon EventBridge, Amazon Kinesis (stream buffering), and AWS Lambda consumers. Events (new votes, tabled documents, plenary activities) flow from MCP feed polling into a durable stream, are deduplicated and classified, then either trigger the Step Functions generation machine or update the knowledge graph. Failures route to Amazon SQS dead-letter queues.
stateDiagram-v2
[*] --> Polling: EventBridge Scheduler
Polling --> FeedQueried: Lambda Polls MCP Feeds
FeedQueried --> NoChange: Empty Window
FeedQueried --> EventsDetected: New Items
NoChange --> Polling: Await Next Tick
EventsDetected --> Buffering: Publish to Kinesis
Buffering --> Consuming: Lambda Stream Consumer
Consuming --> Deduplicating: Check Idempotency Key
Deduplicating --> Duplicate: Already Processed
Deduplicating --> NewEvent: Unseen Event
Duplicate --> Polling: Drop and Continue
NewEvent --> Classifying: 7-Dimension Classification
Classifying --> Significant: Above Threshold
Classifying --> Routine: Below Threshold
Routine --> GraphUpdateQueued: Update Knowledge Graph Only
Significant --> GenerationTriggered: Start Step Functions
Significant --> GraphUpdateQueued: Update Knowledge Graph
GenerationTriggered --> Acknowledged: Execution Accepted
GraphUpdateQueued --> Acknowledged: Update Enqueued
Acknowledged --> Polling: Return to Stream
Consuming --> ProcessingError: Consumer Exception
ProcessingError --> RetryConsume: Within Retry Budget
RetryConsume --> Consuming: Reprocess
ProcessingError --> DeadLetter: Budget Exhausted
DeadLetter --> OperatorAlert: SNS Notify
OperatorAlert --> Polling: Manual Triage Logged
note right of Classifying
Significance scoring feeds
the analysis catalog and
early-warning indicators.
end note
The v3.0+ API ecosystem serves journalists, researchers, and programmatic consumers via Amazon API Gateway fronted by AWS WAF, with identity managed by Amazon Cognito user pools (federated sign-in supported). The state machine governs a consumer session from anonymous edge access through authenticated, token-scoped API use. Public open-data endpoints remain anonymously reachable through the static edge.
stateDiagram-v2
[*] --> Anonymous: Reach Static Edge
Anonymous --> PublicAccess: Read Open Data
PublicAccess --> Anonymous: Continue Browsing
Anonymous --> AuthInitiated: Request API Access
AuthInitiated --> CredentialEntry: Cognito Hosted UI
CredentialEntry --> Authenticating: Submit Credentials
Authenticating --> MFAChallenge: MFA Required
Authenticating --> AuthFailed: Invalid Credentials
AuthFailed --> CredentialEntry: Retry Within Limit
AuthFailed --> LockedOut: Threshold Exceeded
LockedOut --> Anonymous: Cooldown Elapsed
MFAChallenge --> MFAVerified: Valid Code
MFAChallenge --> AuthFailed: Invalid Code
MFAVerified --> TokensIssued: ID and Access Tokens
TokensIssued --> Authenticated: Session Active
Authenticated --> AuthorizedCall: API Gateway Authorizer
AuthorizedCall --> ScopeChecked: Validate Cognito Scopes
ScopeChecked --> CallAllowed: Scope Permits
ScopeChecked --> CallDenied: Insufficient Scope
CallDenied --> Authenticated: Return 403
CallAllowed --> Authenticated: Return Result
Authenticated --> TokenRefresh: Access Token Expiring
TokenRefresh --> TokensIssued: Refresh Token Valid
TokenRefresh --> SessionExpired: Refresh Expired
Authenticated --> SignOut: User Logout
SignOut --> SessionExpired: Revoke Tokens
SessionExpired --> Anonymous: Session Terminated
note right of ScopeChecked
IAM least privilege plus
Cognito scopes. Public
open-data needs no auth.
end note
The political knowledge graph (MEPs โ political groups โ committees โ dossiers โ votes) lives in Amazon Neptune Serverless. Updates arrive from the event ingestion machine and from batch reconciliation jobs. The state machine enforces transactional consistency, entity resolution, and provenance tagging before commits become queryable via natural-language search (AppSync/OpenSearch-backed).
stateDiagram-v2
[*] --> Idle: Graph Ready
Idle --> UpdateReceived: Event or Batch Trigger
UpdateReceived --> EntityResolution: Match Canonical IDs
EntityResolution --> Resolved: Existing Entities
EntityResolution --> NewEntities: Unseen Nodes
NewEntities --> NodeCreation: Create Nodes
NodeCreation --> Resolved: Nodes Registered
Resolved --> EdgeStaging: Stage Relationships
EdgeStaging --> ProvenanceTagging: Attach Source and Confidence
ProvenanceTagging --> TransactionOpen: Begin Neptune Tx
TransactionOpen --> Writing: Apply Mutations
Writing --> ConsistencyCheck: Validate Invariants
ConsistencyCheck --> Committing: Invariants Hold
ConsistencyCheck --> Conflict: Invariant Violated
Conflict --> RollingBack: Abort Tx
RollingBack --> Reconciling: Resolve Divergence
Reconciling --> EdgeStaging: Restage Corrected
Committing --> Committed: Tx Durable
Committed --> IndexSync: Sync OpenSearch Vectors
IndexSync --> Queryable: NL Query Ready
Queryable --> Idle: Await Next Update
Writing --> WriteError: Engine Error
WriteError --> RetryWrite: Within Budget
RetryWrite --> Writing: Retry Mutation
WriteError --> RollingBack: Budget Exhausted
note right of ProvenanceTagging
Every edge carries source
grade and ICD 203 confidence
for auditable intelligence.
end note
v3.0+ caching is two-tiered: Amazon CloudFront at the edge (static assets and cacheable API responses) and Amazon DynamoDB Accelerated (DAX) for hot key-value read paths behind dynamic Lambda functions. The state machine governs cache warming, hit/miss handling, event-driven invalidation, and eviction โ with predictive warming guided by the parliamentary calendar.
stateDiagram-v2
[*] --> CacheCold: Stack Deployed
CacheCold --> Warming: Preload Hot Partitions
Warming --> CacheReady: Edge and DAX Populated
CacheReady --> Serving: Handle Request
Serving --> EdgeHit: CloudFront Hit
Serving --> DaxHit: DAX Hit
Serving --> CacheMiss: Not Cached
EdgeHit --> CacheReady: Return Cached
DaxHit --> CacheReady: Return Cached
CacheMiss --> OriginFetch: Lambda Reads DynamoDB
OriginFetch --> Populating: Write Through DAX
Populating --> CacheReady: Entry Stored
CacheReady --> Invalidating: Content Updated Event
Invalidating --> SelectivePurge: Targeted Keys
SelectivePurge --> CacheReady: Related Entries Cleared
CacheReady --> PredictiveWarm: Calendar Signal
PredictiveWarm --> Warming: Pre-Fetch Likely Reads
CacheReady --> TtlExpiry: TTL Reached
TtlExpiry --> Evicting: Remove Stale
Evicting --> CacheReady: Entry Evicted
CacheReady --> Pressure: Memory Threshold
Pressure --> LruEvict: Evict Least Recently Used
LruEvict --> CacheReady: Capacity Restored
note right of PredictiveWarm
Plenary sessions and vote
windows drive proactive
warming before demand.
end note
Runtime security states are driven by Amazon GuardDuty (threat detection) and AWS Security Hub (finding aggregation and posture), with automated response orchestrated by EventBridge โ Lambda and escalation via Amazon SNS. The machine moves from steady-state monitoring through detection, automated containment, and human-decision escalation, then back to a hardened secure state with updated detection rules.
stateDiagram-v2
[*] --> SecureState: Baseline Posture
SecureState --> Monitoring: GuardDuty Active
Monitoring --> FindingRaised: Anomaly Detected
Monitoring --> SecureState: All Clear
FindingRaised --> Triage: Security Hub Correlates
Triage --> LowSeverity: Informational
Triage --> MediumSeverity: Suspicious
Triage --> HighSeverity: Confirmed Threat
LowSeverity --> Logging: Record and Continue
Logging --> SecureState: No Action Needed
MediumSeverity --> AutoContainment: EventBridge Lambda
AutoContainment --> Contained: WAF Rule or Isolation
AutoContainment --> ContainmentFailed: Action Error
ContainmentFailed --> Escalation: Page On-Call
HighSeverity --> Escalation: Notify Responders
Escalation --> IncidentOpen: SNS Alert Sent
IncidentOpen --> Investigating: Responder Engaged
Investigating --> Mitigating: Apply Countermeasures
Mitigating --> Neutralized: Threat Removed
Mitigating --> CircuitBreaker: Isolate Component
CircuitBreaker --> Isolated: Protected Mode
Isolated --> Investigating: Continue Response
Contained --> PostIncident: Review and Learn
Neutralized --> PostIncident: Review and Learn
PostIncident --> RuleUpdate: Tune Detections
RuleUpdate --> SecureState: Hardened Posture
note right of AutoContainment
Automated response within
seconds; humans approve
irreversible actions.
end note
| State Category | Metric | Target | Alert Threshold |
|---|---|---|---|
| Static Build (v2.0) | Build-to-Published time | <12 min | >25 min |
| Dataset Build (v2.0) | Dataset freeze success rate | >99% | <97% |
| Step Functions (v3.0) | Execution success rate | >99% | <97% |
| Bedrock Generation | Draft-to-approved latency | <6 min | >15 min |
| Event Ingestion | Event processing lag | <60 seconds | >300 seconds |
| Cognito Auth | Token issuance latency | <500 ms | >2 seconds |
| Neptune Update | Commit-to-queryable lag | <30 seconds | >120 seconds |
| Cache (CloudFront/DAX) | Combined cache hit rate | >95% | <90% |
| Security Response | Detect-to-contain time | <30 seconds | >120 seconds |
EdgePublish without an Approved transition through HumanReviewGate, per the
AI Policy.| State Aspect | Current (v1.0.x) | v2.0 (Enhanced Static) | v3.0+ (AWS Serverless) |
|---|---|---|---|
| Total States | ~10 (build workflow) | ~20 (build + dataset) | 120+ (multi-machine) |
| State Persistence | None (ephemeral) | None (ephemeral) | DynamoDB + Aurora SLv2 + Step Functions history |
| Orchestration | GitHub Actions | GitHub Actions (gh-aw) | Step Functions + EventBridge |
| Error States | Re-run job | Re-run job | Retry/catch, DLQ, self-healing |
| Parallel States | None (serial) | Limited (parallel datasets) | True parallel + fan-out |
| Identity States | None (anonymous) | None (anonymous) | Amazon Cognito sessions |
| AI States | Build-time gh-aw LLM | Build-time gh-aw LLM | Bedrock + KB + Guardrails + gate |
| Security States | CI scan gates | CI scan gates | GuardDuty/Security Hub detectโrespond |
| Predictive States | None | None | Predictive cache warming, anomaly forecast |
| Public Front Door | Static (S3+CloudFront) | Static (S3+CloudFront) | Static edge + dynamic behind it |
The state machines above govern build, ingest, auth, graph, cache and security. These add the intelligence-product lifecycles required by the OSINT capability roadmap โ the behaviour of an indicator/warning, a forecast, and a competing-hypothesis assessment as they move from raw signal to human-approved, calibrated intelligence. Each lifecycle bakes in the AI-Policy gate: no state reaches "Published" without human confirmation.
stateDiagram-v2
[*] --> Watching: Indicator Registered
Watching --> Scoring: Scheduled Tick
Scoring --> Watching: Within Baseline
Scoring --> Elevated: Deviation Above Threshold
Elevated --> Watching: Reverts to Baseline
Elevated --> WarningDrafted: Tripwire Sustained
WarningDrafted --> HumanReview: Attach WEP Band and Evidence
HumanReview --> Suppressed: Rejected as False Alarm
HumanReview --> WarningRaised: Confirmed
WarningRaised --> Disseminated: Brief and Alert Emitted
Disseminated --> Resolved: Event Occurs or Window Closes
Suppressed --> Watching: Resume Monitoring
Resolved --> Calibrated: Score Hit or Miss
Calibrated --> Watching: Update Baseline
note right of HumanReview
AI Policy gate. No warning is
disseminated without a human
confirming the signal.
end note
stateDiagram-v2
[*] --> Requested: Estimative Question Posed
Requested --> HypothesesGenerated: Minimum Two Competing Hypotheses
HypothesesGenerated --> EvidenceMapped: Cite PUBLIC Sources
EvidenceMapped --> RedTeamed: Devils Advocate Pass
RedTeamed --> Adjudicated: Human Resolves Splits
RedTeamed --> EvidenceMapped: Reopen on New Evidence
Adjudicated --> Estimated: WEP Band and Confidence Set
Estimated --> Published: Human Signoff
Estimated --> Withheld: Confidence Too Low
Published --> AwaitingOutcome: Track Until Event
Withheld --> EvidenceMapped: Gather More Evidence
AwaitingOutcome --> Resolved: Outcome Known
Resolved --> Calibrated: Brier Score Recorded
Calibrated --> [*]: Feeds Analytic Track Record
note right of Estimated
Never a bare point estimate.
Competing hypotheses and
confidence travel with it.
end note
stateDiagram-v2
[*] --> Framing: Define Question and Boundary
Framing --> Hypotheses: Enumerate Mutually Exclusive Options
Hypotheses --> EvidenceWeighing: Build ACH Matrix
EvidenceWeighing --> AssumptionsChecked: Key Assumptions Check
AssumptionsChecked --> Diagnostic: Identify Most Diagnostic Evidence
Diagnostic --> Consistent: Leading Hypothesis Holds
Diagnostic --> Inconsistent: Disconfirming Evidence Found
Inconsistent --> Hypotheses: Revise or Add Hypotheses
Consistent --> DissentRecorded: Preserve Minority View
DissentRecorded --> HumanAdjudicated: Analyst Decides
HumanAdjudicated --> Assessed: Confidence and Sources Attached
Assessed --> [*]: Hand to Production
note right of DissentRecorded
Minority hypotheses are never
discarded. Dissent is part of
the auditable record.
end note
As foundation models advance โ accessed model-agnostically through Amazon Bedrock and continuously benchmarked against competitors (OpenAI, Google, Meta, EU sovereign AI) at each release โ state management evolves from reactive (v2.0 build gates) to predictive (v3.0 anomaly and demand forecasting) to autonomous self-healing (late-horizon), always within Hack23 AI Policy guardrails: AI proposes, humans remain accountable, no autonomous production deploy.
| Year | AI Model | DevSecOps Capability Evolution |
|---|---|---|
| 2026 | Opus 4.6โ4.9 | ๐ข AI-assisted code review, automated test generation, agentic CI/CD workflows |
| 2027 | Opus 5.x | ๐ต Predictive vulnerability detection, intelligent dependency management |
| 2028 | Opus 6.x | ๐ฃ Multi-modal security analysis (code + architecture + runtime), automated threat modeling |
| 2029 | Opus 7.x | ๐ Autonomous security pipeline orchestration, self-healing build systems |
| 2030 | Opus 8.x | ๐ด Near-expert automated security review, AI-driven architecture validation |
| 2031โ2033 | Opus 9โ10.x / Pre-AGI | โช Autonomous secure development lifecycle management |
| 2034โ2037 | AGI / Post-AGI | โญ Transformative software engineering with built-in security assurance |
Assumptions: major AI model upgrades annually; competitors evaluated at each release; architecture accommodates potential paradigm shifts (quantum AI, neuromorphic computing). Full cross-perspective analysis lives in the Hack23 Information Security Strategy ยง AI Model Evolution Strategy; governance per AI Policy.
Document Status: โ
APPROVED FOR PLANNING
Last Updated: 2026-05-31 (UTC)
Next Review: 2026-08-31 (Quarterly)
Classification: Public