# Blackboard Governance SaaS Rationalized Architecture

Date: 2026-06-27
Status: product architecture correction and roadmap input
Task: IF-3854
Destination DSL: `/root/docs/5002-if-rook-harness-structurizr-c4-workspace-2026-06-27.dsl`
Roadmap: `/root/docs/5003-if-blackboard-rook-governance-saas-autoplan-roadmap-2026-06-27.md`

## Product Thesis

The product is not a harness stack.

The product is:

> Blackboard Governance SaaS: a governance layer that turns AI-agent work into reconstructable, reviewable, exportable, access-controlled proof.

Buyer-readable promise:

> For any AI-assisted work item, Blackboard can show what happened, who or what did it, what evidence exists, what was verified, what was claimed, what was inferred, what was redacted, who accessed it, and what packet was exported.

Rook is the reference or hosted harness. BYO harness adapters are the expansion path. Context, Switchboard, if.bus, if-cli, SSH wrappers, maintenance bridges, Martin laptop, and host names are implementation or operator details, not buyer-facing product language.

## Blackboard As A Holistic Ensemble

Blackboard is the buyer-facing ensemble. The important user features from the underlying modules should appear as Blackboard capabilities, not as a list of module brands.

User-facing capabilities:

- Cryptographically signed or hash-bound task events and updates, according to policy.
- Reconstructable task timelines from instruction to closeout.
- Tenant-scoped human, agent, session, and service-account actions.
- Evidence continuity across interrupted or resumed work.
- Live progress, wake/contact, and subscription updates without treating live messages as proof truth.
- Governed agent/tool integration through HTTPS API, managed MCP, SDK, or WebSocket subscriptions.
- Search over proof records with authoritative hydration before review or export.
- Confidence classes for verified, claimed, inferred, stale, blocked, missing, and not-claimed state.
- Redaction manifests and non-claims in externally shared packets.
- Access logs for proof views, exports, and policy decisions.
- Receipt binding for packets, exports, redactions, provenance batches, and high-value control events where policy requires it.

Internal capability sources:

| Blackboard capability | Internal source of strength |
|---|---|
| Evidence continuity | bounded context and resume artifacts |
| Live progress | live event gateway |
| Tool integration | managed API and MCP gateway |
| Event fan-out | internal event backbone |
| Integrity receipts | receipt binding surface |
| Hosted reference option | Rook reference harness |

These details can be used in technical appendices, but the top-level product story remains Blackboard.

## Rationalized Runtime

```text
Customer / Agent / Reviewer
        |
        v
Gateway
        |
        v
Auth Broker + Tenant/RBAC
        |
        v
Blackboard Event API
        |
        v
Append-Only Event Store
        |
        v
Projection Worker + Search Index
        |
        v
Proof Desk
        |
        v
Proof Packet Service
        |
        v
Object Store + if.trace Receipt + Audit/Observability
```

This is the architecture a buyer should see first. The broader Rook/Context/Switchboard/Bus estate remains valid as implementation substrate, reference harness, or future module work, but it should not lead the story.

## Product Surfaces

Only three public surfaces are product surfaces:

| Surface | Purpose |
|---|---|
| HTTPS API | Write, read, search, and export proof events. |
| Managed MCP Gateway | Scoped agent tools for customers that use MCP. |
| WebSocket Live Gateway | Subscriptions, progress, wake/contact, and shared UI events only. |

Everything else is internal, operator-only, break-glass, or deferred.

## Four Core APIs

### Write Event

`POST /v1/events`

Writes task, session, checkpoint, signal, evidence, access, and closeout events. Required controls: tenant scope, actor scope, agent scope, schema version, idempotency key, event hash, evidence reference validation, rate limits, and audit record.

### Read Timeline

`GET /v1/tasks/{task_id}/timeline`

Returns the authoritative work timeline from projections hydrated against event truth. It must show principal, agent, session, evidence, policy, transport, and access context.

### Assemble Proof Packet

`POST /v1/proof-packets`

Builds a deterministic packet with task/session/signal ids, evidence refs and hashes, event range, hash-chain root, confidence classes, redaction summary, non-claims, access log ids, receipt id, and schema version.

### Search Proof Records

`GET /v1/search`

Searches projections or indexes, then hydrates from authoritative event/projection state before claims or export. Meilisearch may be used as a rebuildable index; it is never the proof authority and customers never receive direct Meilisearch credentials.

## Canonical Event Envelope

All valuable actions become events. Subsystems must not create separate truth.

```json
{
  "event_id": "evt_...",
  "tenant_id": "ten_...",
  "workspace_id": "ws_...",
  "project_id": "proj_...",
  "task_id": "task_...",
  "session_id": "sess_...",
  "agent_id": "agent_...",
  "principal_id": "user_or_service_...",
  "event_type": "task.created | session.bound | checkpoint.written | evidence.attached | signal.raised | task.closed",
  "source_harness": "rook | byo | api | mcp",
  "transport_class": "http_api | mcp_gateway | websocket | operator_break_glass",
  "payload": {},
  "evidence_refs": [],
  "policy_hash": "sha256:...",
  "redaction_policy_id": "redact_v1",
  "idempotency_key": "...",
  "prev_hash": "...",
  "created_at": "..."
}
```

Events are append-only, tenant-scoped, hash-chained, projection-fed, searchable through authorized views, proof-packetable, receipt-bindable, and auditable.

## Proof Packet V1

Proof Packet v1 is the commercial artifact.

```json
{
  "packet_id": "pp_...",
  "tenant_id": "ten_...",
  "workspace_id": "ws_...",
  "project_id": "proj_...",
  "task_ids": [],
  "session_ids": [],
  "event_range": {
    "first_event_id": "...",
    "last_event_id": "..."
  },
  "hash_chain_root": "...",
  "evidence_refs": [
    {
      "artifact_id": "...",
      "uri": "...",
      "etag": "...",
      "sha256": "...",
      "confidence": "verified | claimed | inferred",
      "redaction": "none | partial | removed"
    }
  ],
  "redaction_manifest_id": "...",
  "non_claims": [
    "Receipt proves artifact bytes, not semantic correctness."
  ],
  "access_log_ids": [],
  "receipt_id": "...",
  "assembled_at": "...",
  "schema_version": "proof_packet.v1"
}
```

Packets must be deterministic, redacted, receipted when policy requires, access-logged, and coherence-checked before export.

## Claim Boundary Engine

The Claim Boundary Engine decides what the product is allowed to say.

| Claim | Allowed only if |
|---|---|
| Agent completed task | Closeout event exists and required evidence refs resolve. |
| Artifact was produced | Object exists and hash or etag matches. |
| Reviewer approved | Reviewer event exists with principal and timestamp. |
| Packet is externally shareable | Redaction policy applied and manifest exists. |
| Receipt proves integrity | Hash chain and if.trace receipt validate. |
| Work was semantically correct | Never automatic; requires human review or domain verifier. |

The product must separate verified facts, actor claims, inferred state, stale state, missing evidence, and non-claims. This is the trust boundary.

## Transport Status

| Transport | Product status |
|---|---|
| HTTPS API | Product |
| Managed MCP Gateway | Product |
| WebSocket Live Gateway | Product, live events only |
| BYO Adapter SDK | Product after pilot |
| if-cli | Admin/operator |
| SSH wrappers | Operator-only |
| stdio MCP bridge | Internal compatibility |
| maintenance bridge | Internal/break-glass |
| mtl-03 harness | Internal estate |
| Martin laptop | Never product |

No customer docs should present SSH, maintenance bridges, host names, or local wrapper paths as product auth or product transport.

## Pilot Runtime Baseline

Minimum credible governance runtime:

- Gateway
- Auth broker or simple OIDC
- Tenant/RBAC
- Blackboard Event API
- PostgreSQL append-only event tables
- Projection worker
- Current-state projection tables
- Meilisearch or PostgreSQL search
- Proof Desk
- Proof Packet v1
- Object store
- Access log
- Basic observability
- Tenant isolation tests
- Claim Boundary Engine

Baseline non-goals:

- no customer SSH;
- no generic agent platform;
- no broad workflow automation;
- no multi-harness SDK zoo;
- no overbuilt live switchboard;
- no customer vault unless required by a design partner;
- no public claim that if.trace proves correctness.

## Proof Desk V1 Screens

The first Proof Desk UI should have five screens:

1. Work Timeline
2. Evidence Panel
3. Confidence View
4. Redaction And Export
5. Access Log

Everything else belongs behind admin/debug until a design partner proves the need.

## Roadmap Shape

Now:

- freeze product/operator transport boundary;
- build `POST /v1/events`;
- enforce append-only event truth;
- ship first Proof Desk timeline;
- ship Proof Packet v1;
- add Claim Boundary Engine and access logs.

Next:

- one hosted Rook pilot path;
- one BYO adapter path;
- managed MCP gateway;
- load and tenant-isolation tests;
- better packet verification and redaction workflows.

Later:

- customer-owned vault;
- SIEM/GRC exports;
- advanced lifecycle and legal hold;
- full incident replay;
- multi-region operations;
- broader adapter ecosystem;
- enterprise SAML/KMS/Vault depth.

## Mapping From Current Architecture

| Current or target component | Rationalized role |
|---|---|
| Blackboard Writer | Blackboard Event API |
| Blackboard Ledgers | Append-Only Event Store |
| Blackboard Renderer | Projection Worker + Read Models |
| Blackboard Proof Desk | Proof Desk Service/UI |
| Proof Packet Exporter | Proof Packet Service |
| if.trace | Receipt Binding Surface |
| if.api | Gateway + Blackboard Event API |
| if.bus | Internal event backbone |
| Switchboard | Optional live coordination module |
| Context | Internal evidence context helper |
| Rook | Hosted reference harness |
| if-cli | Admin/operator tool |
| MCP HTTP bridge | Internal/break-glass |
| SSH wrappers | Never customer-facing |
| Martin laptop / mtl-03 | Current internal estate only |

## Validation Gates

Before Blackboard is described as governance-grade, these gates must pass:

- `POST /v1/events` rejects missing tenant, actor, agent, schema version, and idempotency key.
- Important task events, updates, checkpoints, evidence attachments, access decisions, redactions, and packet exports are signed or hash-bound according to tenant policy.
- Append-only event tables reject update, delete, and truncate attempts.
- Search results hydrate from authoritative event/projection records before proof claims or exports.
- Proof Desk timelines show tenant, workspace, project, principal, agent, session, provenance, evidence refs, access state, and claim boundary labels.
- Claim Boundary Engine blocks unsupported correctness claims and separates verified, claimed, inferred, stale, missing, blocked, redacted, and not-claimed statements.
- Proof Packet v1 assembly is deterministic, redacted, access-logged, coherence-checked, and receipt-bound where policy requires it.
- WebSocket live events reference durable event ids and resync through request/response APIs.
- External customer docs and examples use HTTPS API, managed MCP, SDK, or WebSocket subscriptions only; SSH and maintenance bridges stay operator-only.
- Tenant isolation probes pass across API, PostgreSQL RLS, search filters, object-store URLs, projection workers, and packet export.

## Decision

Build Blackboard Governance SaaS as the main product. Hide the workshop machinery. Make every important action an event, every event reconstructable, every proof claim bounded, and every external packet deterministic, redacted, access-logged, and receipt-bound where policy requires.
