Layer 9 · composition
architecture
An architecture composes building blocks into one concrete setup: parts (named instances of a block, with a count), links (which part may call or message which, and what the link carries), a border (the parts a human principal reaches) and immutable revisions. No link, no reach: two parts without a link cannot reach each other.
Depends on
- shared · layer 0 · 27 references
Used by
- deployment · layer 9 · 24 references
- experiment · layer 10 · 5 references
- kpi · layer 10 · 4 references
Entities
Architecture
One composed setup, edited as parts, links and a border, frozen by each commit into a revision.
Identified by architecture_id (ArchitectureId).
| field | type |
|---|---|
name | Name |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
partsowns Part (many, byarchitecture_id)linksowns Link (many, byarchitecture_id)revisionsowns ArchitectureRevision (many, byarchitecture_id)patch_applicationsowns PatchApplication (many, byarchitecture_id)ingressesowns Ingress (many, byarchitecture_id)
Lifecycle of Architecture
Retired.ArchitectureRevision
An immutable snapshot of an architecture's parts, links and border.
Identified by revision_id (ArchitectureRevisionId).
| field | type |
|---|---|
architecture_id | ArchitectureId |
number | integer |
digest | Digest |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Always holds: number >= 1.
Lifecycle: one state, Recorded; a recorded ArchitectureRevision does not change.
Contract
The ports one architecture revision uses, narrowed by its settings, with the routing invariants of its links.
Identified by contract_id (ContractId).
| field | type |
|---|---|
revision_id | ArchitectureRevisionId |
digest | Digest |
ports | list of ContractPort |
invariants | list of RoutingInvariant |
border | list of PartId |
ingress | list of ContractIngress |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
revisionreferences ArchitectureRevision (one, byrevision_id)border_partsreferences Part (many, byborder)
Lifecycle: one state, Recorded; a recorded Contract does not change.
Export
The protocol an ingress's interface is served over.
Identified by export_id (ExportId).
| field | type |
|---|---|
ingress_id | IngressId |
protocol | ExportProtocol |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Lifecycle: one state, Declared; a recorded Export does not change.
Ingress
For whom an architecture is reachable from outside, what that audience may use, and whether callers authenticate.
Identified by ingress_id (IngressId).
| field | type |
|---|---|
architecture_id | ArchitectureId |
name | Name |
audience_part_id | optional PartId |
implied_audience | optional ImpliedAudience |
authenticated | boolean |
interface | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
audiencereferences Part (one, byaudience_part_id)exportsowns Export (many, byingress_id)
Lifecycle: one state, Declared; a recorded Ingress does not change.
Link
An allowed call or message from one part to another of the same architecture, carrying one kind of traffic.
Identified by link_id (LinkId).
| field | type | meaning |
|---|---|---|
architecture_id | ArchitectureId | |
from_part_id | PartId | |
to_part_id | PartId | |
carries | Carries | |
over_part_id | optional PartId | |
as_part_id | optional PartId | The principal part the link posts for, in whose name what it carries is sent. |
under_part_id | optional PartId | The authority part that decides each call the link carries; the link is one standing grant of it, and a call no such link allows is denied. |
action_class | optional ToolCategory | The class of actions the link's grant allows; without it, the category of the tool it calls. |
from_kind | PartKind | |
to_kind | PartKind |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
fromreferences Part (one, byfrom_part_id)toreferences Part (one, byto_part_id)overreferences Part (one, byover_part_id)asreferences Part (one, byas_part_id)underreferences Part (one, byunder_part_id)
Lifecycle: one state, Declared; a recorded Link does not change.
Part
A named instance of a building block inside one architecture.
Identified by part_id (PartId).
| field | type |
|---|---|
architecture_id | ArchitectureId |
name | Name |
kind | PartKind |
count | integer |
per_part_id | optional PartId |
acts_for_part_id | optional PartId |
settings | list of Setting |
on_border | boolean |
coordination | Coordination |
start_stagger | optional duration |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
perreferences Part (one, byper_part_id)acts_forreferences Part (one, byacts_for_part_id)
Always holds: count >= 1.
Lifecycle: one state, Declared; a recorded Part does not change.
Patch
An ordered list of selector and transform rules that changes an architecture as one revision.
Identified by patch_id (PatchId).
More columns: swipe horizontally, or focus the table and use the arrow keys.
Lifecycle: one state, Recorded; a recorded Patch does not change.
PatchApplication
One application of a patch to an architecture, applied as one revision or refused whole with the rule and its error.
Identified by application_id (PatchApplicationId).
| field | type |
|---|---|
architecture_id | ArchitectureId |
patch_id | PatchId |
dry_run | boolean |
revision_id | optional ArchitectureRevisionId |
changed_rows | optional integer |
rule_index | optional integer |
error | optional string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
patchreferences Patch (one, bypatch_id)revisionreferences ArchitectureRevision (one, byrevision_id)
Lifecycle of PatchApplication
Applied, Refused.Placement
Where one entity of a lower block sits in an architecture: the revision, the part's path, the copy of the part, and the entity's name and id. A row of a block view is in scope of a part when its own id, or an id field of its view one hop away, is placed to that part.
Identified by placement_id (PlacementId).
| field | type |
|---|---|
architecture_id | ArchitectureId |
revision_id | ArchitectureRevisionId |
part_id | PartId |
part_path | Name |
instance | optional integer |
entity_name | EntityName |
entity_id | uuid |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
architecturereferences Architecture (one, byarchitecture_id)revisionreferences ArchitectureRevision (one, byrevision_id)partreferences Part (one, bypart_id)
Lifecycle: one state, Recorded; a recorded Placement does not change.
Port
A leaf of the building blocks with effects outside them, which a runtime must implement.
Identified by port_id (PortId).
| field | type |
|---|---|
name | Name |
block | Name |
kind | PortKind |
intent_event | optional EventName |
waiting_state | optional StateName |
reports | list of CommandName |
protocol | Protocol |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Lifecycle: one state, Declared; a recorded Port does not change.
Commands
AddExport
Export an ingress over a protocol.
| field | type |
|---|---|
export_id | ExportId |
ingress_id | IngressId |
protocol | ExportProtocol |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-ingress refused | no Ingress for ingress_ | No: No ingress has this id, and nothing was added. |
exists refused | a Export with ingress_ | Export: The ingress already exports over this protocol, and nothing was added. |
added | otherwise | creates a Export in Declared; emits Export |
More columns: swipe horizontally, or focus the table and use the arrow keys.
AddIngress
Add an ingress.
| field | type |
|---|---|
ingress_id | IngressId |
architecture_id | ArchitectureId |
name | Name |
audience_part_id | optional PartId |
implied_audience | optional ImpliedAudience |
authenticated | boolean |
interface | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-audience refused | not (defined(audience_ | No: An ingress names its audience, a principal part or an implied audience, and this one names neither; nothing was added. |
two-audiences refused | defined(audience_ | Two: An ingress names one audience, and this one names both a part and an implied audience; nothing was added. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
no-such-audience refused | no Part for audience_ | No: A part this request names does not exist, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
foreign-audience refused | the Part of audience_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
audience-not-principal refused | the Part of audience_ has kind != Principal | Audience: The audience of an ingress is a principal part, and the part named is not one; nothing was added. |
name-taken refused | a Ingress with architecture_ | Ingress: The architecture already has an ingress of this name, and nothing was added. |
added | otherwise | creates a Ingress in Declared; emits Ingress |
More columns: swipe horizontally, or focus the table and use the arrow keys.
AddLink
Allow a link.
| field | type | meaning |
|---|---|---|
architecture_id | ArchitectureId | |
from_part_id | PartId | |
to_part_id | PartId | |
carries | Carries | |
over_part_id | optional PartId | |
as_part_id | optional PartId | The principal part the link posts for. |
under_part_id | optional PartId | The authority part that decides each call the link carries. |
action_class | optional ToolCategory | The class of actions the link's grant allows, only beside under_part_id. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
self-link refused | from_ | Self: A link, a per or an acts-for names the part itself, and nothing changed. |
grant-without-authority refused | defined(action_ | Grant: A link names the action class its grant allows, and no authority part it is under; nothing was added. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
no-such-from-part refused | no Part for from_ | No: A part this request names does not exist, and nothing changed. |
no-such-to-part refused | no Part for to_ | No: A part this request names does not exist, and nothing changed. |
no-such-channel-part refused | no Part for over_ | No: A part this request names does not exist, and nothing changed. |
no-such-as-part refused | no Part for as_ | No: A part this request names does not exist, and nothing changed. |
no-such-under-part refused | no Part for under_ | No: A part this request names does not exist, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
foreign-from-part refused | the Part of from_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
foreign-to-part refused | the Part of to_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
foreign-channel-part refused | the Part of over_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
foreign-as-part refused | the Part of as_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
foreign-under-part refused | the Part of under_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
not-a-channel refused | the Part of over_ has kind != Channel | Not: A link travels over a channel part, and the part named is not one; nothing was added. |
as-not-principal refused | the Part of as_ has kind != Principal | As: A link posts as a principal part, and the part named is not one; nothing was added. |
under-not-authority refused | the Part of under_ has kind != Authority | Under: A link's calls are decided by an authority part, and the part named is not one; nothing was added. |
trigger-source-not-trigger refused | the Part of from_ has input. | Trigger: A link carrying Trigger starts at a trigger or schedule part, and the part named is neither; nothing was added. |
trigger-target-not-agent refused | the Part of to_ has input. | Trigger: A link carrying Trigger wakes an agent, runtime or process part, and the part named is none of them; nothing was added. |
target-cannot-answer refused | the Part of to_ has input. | Target: A link carrying questions ends at a principal or an agent part, the only parts that answer; nothing was added. |
exists refused | a Link with from_ | Link: The architecture already has this link, and nothing was added. |
added | otherwise | creates a Link in Declared; emits Link |
More columns: swipe horizontally, or focus the table and use the arrow keys.
AddPart
Add a part.
| field | type |
|---|---|
part_id | PartId |
architecture_id | ArchitectureId |
name | Name |
kind | PartKind |
count | integer |
settings | list of Setting |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
invalid-count refused | count < 1 | Invalid: A part runs at least one copy, and nothing was added. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
name-taken refused | a Part with architecture_ | Part: The architecture already has a part of this name, and nothing was added. |
added | otherwise | creates a Part in Declared; emits Part |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ApplyPatch
Apply a patch.
| field | type |
|---|---|
architecture_id | ArchitectureId |
patch_id | PatchId |
dry_run | boolean |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
no-such-patch refused | no Patch for patch_ | No: No patch has this id, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
requested | otherwise | creates a PatchApplication in Requested; emits Patch |
More columns: swipe horizontally, or focus the table and use the arrow keys.
CommitRevision
Commit an architecture revision.
| field | type |
|---|---|
architecture_id | ArchitectureId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
empty refused | no Part with architecture_ | Empty: The architecture has no part, so no revision was recorded. |
agent-without-model refused | a Part with architecture_ | Agent: An agent part has no link carrying model calls to a model or gateway part, so no revision was recorded. |
question-without-answerer refused | a Link with architecture_ | Question: A link carries questions to an agent part that acts for no principal and forwards questions to none, in an architecture that has a principal part, so no party may answer and no revision was recorded. |
gateway-without-model refused | a Part with architecture_ | Gateway: A gateway part has no link carrying model calls to a model part, so the calls it passes reach no model and no revision was recorded. |
not-reached-by-principal refused | a Part with architecture_ | Not: The architecture has a principal part, and neither a link from one nor a link carrying Grant reaches this part, so it cannot be on the border; nothing changed. |
committed | otherwise | creates a ArchitectureRevision in Recorded; emits Revision |
More columns: swipe horizontally, or focus the table and use the arrow keys.
CreateArchitecture
Create an architecture.
| field | type |
|---|---|
name | Name |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
created | otherwise | creates a Architecture in Draft; emits Architecture |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DeclarePort
Declare a port.
| field | type |
|---|---|
name | Name |
block | Name |
kind | PortKind |
intent_event | optional EventName |
waiting_state | optional StateName |
reports | list of CommandName |
protocol | Protocol |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
name-taken refused | a Port with name == input. | Port: A port of this name is already declared, and nothing was declared. |
declared | otherwise | creates a Port in Declared; emits Port |
More columns: swipe horizontally, or focus the table and use the arrow keys.
PlaceEntity
Place an entity on a part.
| field | type |
|---|---|
architecture_id | ArchitectureId |
revision_id | ArchitectureRevisionId |
part_id | PartId |
instance | optional integer |
entity_name | EntityName |
entity_id | uuid |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
invalid-instance refused | defined(instance) and instance < 1 | Invalid: A copy of a part is counted from 1, and nothing was placed. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
no-such-revision refused | no ArchitectureRevision for revision_ | No: No architecture revision has this id, and nothing changed. |
no-such-part refused | no Part for part_ | No: A part this request names does not exist, and nothing changed. |
foreign-revision refused | the ArchitectureRevision of revision_ has architecture_ | Foreign: The revision belongs to another architecture, and nothing was placed. |
part-not-in-revision refused | the Part of part_ has architecture_ | Part: The part belongs to another architecture than the revision, so it is not in that revision; nothing was placed. |
instance-without-copies refused | the Part of part_ has defined(input. | Instance: The part runs one copy and is per no other part, so a placement names no copy of it; nothing was placed. |
instance-out-of-range refused | the Part of part_ has defined(input. | Instance: The part runs fewer copies than the copy named, and nothing was placed. |
exists refused | a Placement with revision_ | Placement: The entity is already placed to this part of this revision, and nothing was placed. |
placed | otherwise | creates a Placement in Recorded; emits Entity |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordContract
Record the contract of a revision.
| field | type |
|---|---|
revision_id | ArchitectureRevisionId |
ports | list of ContractPort |
invariants | list of RoutingInvariant |
border | list of PartId |
ingress | list of ContractIngress |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
empty refused | ports. | Empty: A contract names at least one port, and nothing was recorded. |
no-such-revision refused | no ArchitectureRevision for revision_ | No: No architecture revision has this id, and nothing changed. |
contract-exists refused | a Contract with revision_ | Contract: The revision already has a contract, and nothing was recorded. |
recorded | otherwise | creates a Contract in Recorded; emits Contract |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordDryRunApplied
Record an applied dry run.
| field | type |
|---|---|
application_id | PatchApplicationId |
changed_rows | integer |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-application refused | no such PatchApplication | No: No patch application has this id, and nothing changed. |
not-a-dry-run refused | dry_ | Applied: A patch applied outside a dry run names the revision it committed, and nothing changed. |
applied | otherwise | moves the PatchApplication Requested → Applied; emits Dry |
settled refused | the PatchApplication is in a state that does not allow it | Patch: The patch application was already applied or refused, and nothing changed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordPatch
Record a patch.
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
empty refused | rules. | Empty: A patch has at least one rule, and nothing was recorded. |
recorded | otherwise | creates a Patch in Recorded; emits Patch |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordPatchApplied
Record an applied patch.
| field | type |
|---|---|
application_id | PatchApplicationId |
revision_id | ArchitectureRevisionId |
changed_rows | integer |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-application refused | no such PatchApplication | No: No patch application has this id, and nothing changed. |
no-such-revision refused | no ArchitectureRevision for revision_ | No: No architecture revision has this id, and nothing changed. |
applied | otherwise | moves the PatchApplication Requested → Applied; emits Patch |
settled refused | the PatchApplication is in a state that does not allow it | Patch: The patch application was already applied or refused, and nothing changed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordPatchRefused
Record a refused patch.
| field | type |
|---|---|
application_id | PatchApplicationId |
rule_index | optional integer |
error | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
invalid-rule-index refused | rule_ | Invalid: A rule's position starts at 1, and nothing changed. |
no-such-application refused | no such PatchApplication | No: No patch application has this id, and nothing changed. |
refused | otherwise | moves the PatchApplication Requested → Refused; emits Patch |
settled refused | the PatchApplication is in a state that does not allow it | Patch: The patch application was already applied or refused, and nothing changed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RetireArchitecture
Retire an architecture.
Called by: Deployer.
| field | type |
|---|---|
architecture_id | ArchitectureId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-architecture refused | no such Architecture | No: No architecture has this id, and nothing changed. |
retired | otherwise | moves the Architecture Draft → Retired; emits Architecture |
wrong-state refused | the Architecture is in a state that does not allow it | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
SetActsFor
Let an agent part act for a principal part.
| field | type |
|---|---|
architecture_id | ArchitectureId |
part_id | PartId |
principal_part_id | PartId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
self-reference refused | part_ | Self: A link, a per or an acts-for names the part itself, and nothing changed. |
no-such-part refused | no such Part | No: A part this request names does not exist, and nothing changed. |
foreign-part refused | architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
not-an-agent refused | kind != Agent | Acts: Only an agent part acts for a principal, and nothing was added. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
no-such-principal-part refused | no Part for principal_ | No: A part this request names does not exist, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
foreign-principal-part refused | the Part of principal_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
not-a-principal refused | the Part of principal_ has kind != Principal | Acts: An agent part acts for a principal part, and the part named is not one; nothing was added. |
set | otherwise | updates the Part; emits Agent |
More columns: swipe horizontally, or focus the table and use the arrow keys.
SetBorder
Put a part on the border.
| field | type |
|---|---|
architecture_id | ArchitectureId |
part_id | PartId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-part refused | no such Part | No: A part this request names does not exist, and nothing changed. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
missing-part refused | no Part for part_ | No: A part this request names does not exist, and nothing changed. |
foreign-part refused | the Part of part_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
not-reached refused | a Part with part_ | Not: The architecture has a principal part, and neither a link from one nor a link carrying Grant reaches this part, so it cannot be on the border; nothing changed. |
bordered | otherwise | updates the Part; emits Part |
More columns: swipe horizontally, or focus the table and use the arrow keys.
SetPer
Run a part once per copy of another.
| field | type |
|---|---|
architecture_id | ArchitectureId |
part_id | PartId |
per_part_id | PartId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
self-reference refused | part_ | Self: A link, a per or an acts-for names the part itself, and nothing changed. |
no-such-part refused | no such Part | No: A part this request names does not exist, and nothing changed. |
foreign-part refused | architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
no-such-per-part refused | no Part for per_ | No: A part this request names does not exist, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
foreign-per-part refused | the Part of per_ has architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
set | otherwise | updates the Part; emits Part |
More columns: swipe horizontally, or focus the table and use the arrow keys.
SetSwarm
Make an agent part a swarm.
| field | type |
|---|---|
architecture_id | ArchitectureId |
part_id | PartId |
coordination | Coordination |
start_stagger | optional duration |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-part refused | no such Part | No: A part this request names does not exist, and nothing changed. |
foreign-part refused | architecture_ | Foreign: A part this request names belongs to another architecture, and nothing changed. |
not-an-agent refused | kind != Agent | Swarm: Only the copies of an agent part coordinate as a swarm, and nothing changed. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing changed. |
retired refused | the Architecture of architecture_ has state == Retired | Retired: The architecture is retired, so it takes no edit and no commit, and nothing changed. |
set | otherwise | updates the Part; emits Swarm |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
AgentActsFor | part_ PartId, principal_ PartId | Set |
ArchitectureCreated | architecture_ ArchitectureId, name Name | Create |
ArchitectureRetired | architecture_ ArchitectureId | Retire |
ContractRecorded | contract_ ContractId, revision_ ArchitectureRevisionId, digest Digest | Record |
DryRunApplied | application_ PatchApplicationId, changed_ integer | Record |
EntityPlaced | placement_ PlacementId, architecture_ ArchitectureId, revision_ ArchitectureRevisionId, part_ PartId, part_ Name, instance optional integer, entity_ EntityName, entity_ uuid | Place |
ExportAdded | export_ ExportId, ingress_ IngressId, protocol ExportProtocol | Add |
IngressAdded | ingress_ IngressId, architecture_ ArchitectureId, name Name, audience_ optional PartId, implied_ optional ImpliedAudience | Add |
LinkAdded | link_ LinkId, architecture_ ArchitectureId, from_ PartId, to_ PartId, carries Carries, under_ optional PartId, action_ optional ToolCategory | Add |
PartAdded | part_ PartId, architecture_ ArchitectureId, name Name, kind PartKind, count integer | Add |
PartBordered | part_ PartId, architecture_ ArchitectureId | Set |
PartPerSet | part_ PartId, per_ PartId | Set |
PatchApplied | application_ PatchApplicationId, revision_ ArchitectureRevisionId, changed_ integer | Record |
PatchRecorded | patch_ PatchId, digest Digest | Record |
PatchRefused | application_ PatchApplicationId, rule_ optional integer, error string | Record |
PatchRequested | application_ PatchApplicationId, architecture_ ArchitectureId, patch_ PatchId, dry_ boolean | Apply |
PortDeclared | port_ PortId, name Name, block Name | Declare |
RevisionCommitted | revision_ ArchitectureRevisionId, architecture_ ArchitectureId, number integer, digest Digest | Commit |
SwarmSet | part_ PartId, coordination Coordination, start_ optional duration | Set |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
Architectures | each Architecture | architecture_ ArchitectureId, name Name, state State |
Contracts | each Contract with revision_asked with revision_ ArchitectureRevisionId | contract_ ContractId, revision_ ArchitectureRevisionId, digest Digest, ports list of ContractPort, invariants list of RoutingInvariant, border list of PartId, ingress list of ContractIngress |
Ingresses | each Ingress with architecture_asked with architecture_ ArchitectureId | ingress_ IngressId, architecture_ ArchitectureId, name Name, audience_ optional PartId, audience_ optional Name, implied_ optional ImpliedAudience, authenticated boolean, interface string |
Parts | each Part | part_ PartId, architecture_ ArchitectureId, name Name, kind PartKind, count integer, per_ optional PartId, acts_ optional PartId, settings list of Setting, on_ boolean, coordination Coordination, start_ optional duration |
PatchApplications | each PatchApplication with architecture_asked with architecture_ ArchitectureId | application_ PatchApplicationId, architecture_ ArchitectureId, patch_ PatchId, dry_ boolean, revision_ optional ArchitectureRevisionId, changed_ optional integer, rule_ optional integer, error optional string, state State |
Patches | each Patch | patch_ PatchId, name optional Name, rules list of PatchRule, digest Digest |
Placements | each Placement with architecture_asked with architecture_ ArchitectureId, part_ optional Name, instance optional integer, entity_ optional EntityName | placement_ PlacementId, architecture_ ArchitectureId, revision_ ArchitectureRevisionId, part_ PartId, part_ Name, instance optional integer, entity_ EntityName, entity_ uuid |
Ports | each Port | port_ PortId, name Name, block Name, kind PortKind, intent_ optional EventName, waiting_ optional StateName, reports list of CommandName, protocol Protocol |
Reach | each Link with architecture_asked with architecture_ ArchitectureId | link_ LinkId, architecture_ ArchitectureId, from_ PartId, from_ optional Name, to_ PartId, to_ optional Name, carries Carries, over_ optional PartId, from_ PartKind, to_ PartKind |
Revisions | each ArchitectureRevision | revision_ ArchitectureRevisionId, architecture_ ArchitectureId, number integer, digest Digest |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
Carries | one of | Prompt, Order, Question, Answer, Model, Tool, Claim, Message, Trigger, Review, Handoff, Call, Context, Grant, Proposal, Spec, Checkout, Result, Report, Record, Read, Run, Event |
CommandNameThe full name of a command of the building blocks. | an identifier or value | string |
ContractIngress | a record | ingress_ IngressId, audience_ optional PartId, implied_ optional ImpliedAudience, authenticated boolean, protocols list of ExportProtocol, operations list of ContractOperation |
ContractOperation | a record | kind OperationKind, name string |
ContractPort | a record | port_ PortId, part_ PartId, settings list of Setting, instances integer |
Coordination | one of | Orchestrator, Board, Mesh, None |
DigestDigest of the canonical form of an architecture's parts, links and border. | an identifier or value | string |
EntityNameThe qualified name of an entity of a building block, such as agentic.harness.HarnessSession. | an identifier or value | string |
EventNameThe full name of an event of the building blocks. | an identifier or value | string |
ExportProtocol | one of | Http, Event, Cli, Tool, Agent, Metrics, Ui |
ImpliedAudience | one of | Operator, Monitor |
OperationKind | one of | Command, View, Feed, Metric |
PartKind | one of | Principal, Agent, Harness, Model, Gateway, Tool, Knowledge, Channel, Workspace, Sandbox, Runtime, Pool, Trigger, Schedule, Authority, Work, Experiment, Kpi, Question, Process, Delegation, Architecture, Store, Time |
PatchRule | a record | verb PatchVerb, text string |
PatchVerb | one of | Set, Add, Remove, Connect, Replicate, Wrap, Prepend, Append, Mark, Unmark |
PortKind | one of | Outbound, Clock, Principal, Interface |
ProtocolA regular expression over the short names of a port's commands, intent first. | an identifier or value | string |
RoutingInvariant | a record | link_ LinkId, port_ PortId, within_ optional PortId, predicate string |
Setting | a record | name string, value string |
StateNameA lifecycle state of an entity of the building blocks. | an identifier or value | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
54 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Correctness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
unknown_link_partsLinks whose from, to, over, as or under names no part. How: Count of links in the architecture document that name a part that does not exist. Must be 0. | count | lower | gate | simulated source: design |
per_without_partParts whose per names no part. How: Count of parts with a per that names a part that does not exist. Must be 0. | count | lower | gate | simulated source: design |
acts_for_without_partParts whose acts_for names no part. How: Count of parts with an acts_for that names a part that does not exist. Must be 0. | count | lower | gate | simulated source: design |
egress_without_partParts whose egress names no part and no endpoint. How: Count of parts with an egress that names neither a part nor an endpoint of the architecture's endpoints. Must be 0. | count | lower | gate | simulated source: design |
via_without_endpointTool and model parts whose via names no endpoint. How: Count of tool and model parts whose via names no key of the architecture's endpoints. Must be 0. | count | lower | gate | simulated source: design |
agent_without_model_pathAgent parts that reach no model part over model_call links. How: Agent parts with no path of model_call links to a model part. Must be 0. | count | lower | gate | simulated source: design |
question_without_answererQuestion links that end at a part that cannot answer. How: Links carrying questions whose target is not a principal or an agent part, or, in an architecture that has a principal part, an agent part that acts for no principal and has no link carrying questions to a principal part. Must be 0. | count | lower | gate | simulated source: design |
border_without_partBorder entries that name no part. How: Count of names in the border that are not parts. Must be 0. | count | lower | gate | simulated source: design |
not_reached_by_principalBorder parts that no principal part reaches. How: In an architecture that has a principal part, border parts with no link from a principal part and no link carrying grants. An architecture with no principal part is made to be nested and counts 0. Must be 0. | count | lower | gate | simulated source: design |
unreachable_partsParts that no link, per, acts_for, egress or border reaches. How: Parts with no incoming edge of any of those kinds. No link, no reach, so an unreachable part is dead weight or a missing link. Must be 0. | count | lower | gate | simulated source: design |
unknown_blocksParts whose block is neither a part kind of the architecture block nor a block of a pack. How: Count of parts in the architecture document whose block names no part kind and no pack block. Must be 0. | count | lower | gate | simulated source: design |
unknown_carriesLinks that carry a kind the architecture block does not declare. How: Count of links in the architecture document whose carries value is not one of the declared carries. Must be 0. | count | lower | gate | simulated source: design |
setting_unknownSettings a part names that its block does not have. How: Count of settings in the architecture document that are not a setting of the block of their part. Must be 0. | count | lower | gate | simulated source: design |
setting_invalidSettings whose value is not of the kind or in the range its block expects. How: Count of settings in the architecture document whose value fails the check of the block's setting table. Must be 0. | count | lower | gate | simulated source: design |
decision_kind_unknownQuestion parts whose decision kind the architecture does not declare. How: Count of question parts whose decision_kind names no key of the architecture's decision_kinds. Must be 0. | count | lower | gate | simulated source: design |
endpoint_invalidEndpoints of the architecture that are no endpoint. How: Count of entries of the architecture's endpoints whose name is no destination name or a part's name, with a key other than summary and ingress (an address among them), or whose ingress names no ingress in effect, and of names a nested architecture declares otherwise; one for an endpoints key that is no map. Must be 0. | count | lower | gate | simulated source: design |
review_without_reviewerReview links whose target is not an agent with the role reviewer. How: Count of links that carry a review to a part that is not an agent of role reviewer. Must be 0. | count | lower | gate | simulated source: design |
trigger_source_not_triggerTrigger links that start at a part that is neither a trigger nor a schedule. How: Count of links that carry a trigger from a part that is not a trigger or schedule. Must be 0. | count | lower | gate | simulated source: design |
trigger_target_not_agentTrigger links that end at a part that is not an agent, a runtime or a process. How: Count of links that carry a trigger to a part that is not an agent, a runtime or a process. Must be 0. | count | lower | gate | simulated source: design |
trigger_without_sourceTrigger parts that name no source they can fire on. How: Count of trigger parts of the architecture document that name no source to fire on. Must be 0. | count | lower | gate | simulated source: design |
invalid_concurrencyTriggers whose concurrency policy or parallel limit is not valid. How: Count of triggers whose policy is not skip, queue or parallel, or whose max_parallel is below 1 or above 1 under a policy other than parallel. Must be 0. | count | lower | gate | simulated source: design |
invalid_scheduleSchedules without a positive interval. How: Count of schedule parts whose every is missing or not positive. Must be 0. | count | lower | gate | simulated source: design |
swarm_needs_agentParts that set a coordination or a start stagger and are no agent. How: Count of parts that name coordination or start_stagger and whose block is not agent. Must be 0. | count | lower | gate | simulated source: design |
empty_architectureArchitectures with no part. How: 1 when the architecture document has no part, else 0. Must be 0. | count | lower | gate | simulated source: design |
self_referenceLinks from a part to itself, and per or acts_for that name the part itself. How: Count of links whose from and to are the same part, plus parts whose per or acts_for names themselves. Must be 0. | count | lower | gate | simulated source: design |
not_a_channelLinks that travel over a part that is not a channel. How: Count of links whose over names a part whose block is not channel. Must be 0. | count | lower | gate | simulated source: design |
link_existsLinks that repeat the from, to and carries of an earlier link. How: Count of links in the architecture document whose from, to and carries equal those of an earlier link. Must be 0. | count | lower | gate | simulated source: design |
acts_for_not_principalAgents that act for a part that is not a principal. How: Count of acts_for names in the architecture document that resolve to a part whose block is not principal. Must be 0. | count | lower | gate | simulated source: design |
as_not_principalLinks that post as a part that is not a principal. How: Count of links in the architecture document whose as names a part whose block is not principal. Must be 0. | count | lower | gate | simulated source: design |
under_not_authorityLinks under a part that is not an authority, or under a budget. How: Count of links in the architecture document whose under names a part whose block is not authority, or an authority whose kind is budget. Must be 0. | count | lower | gate | simulated source: design |
link_grant_invalidLinks whose grant cannot stand. How: Count of links in the architecture document with an action_class and no under, with under on a link that is not a call from an agent part to a tool part, under with no action class from the link or the tool's category, or an action_class that is no tool category or differs from the tool's category. Must be 0. | count | lower | gate | simulated source: design |
ungoverned_tool_callCall links to a tool under no authority from a part whose other calls are under one. How: Count of call links to a tool part without under, from a part that has a call link under an authority; the default deny would refuse every call on them. Must be 0. | count | lower | gate | simulated source: design |
gateway_without_modelGateways with no model_call link to a model. How: Count of gateway parts that have no link carrying model_call to a model. Must be 0. | count | lower | gate | simulated source: design |
store_reach_not_record_or_readLinks to a store part that carry neither record nor read. How: Count of links whose to is a store part and whose carries is neither record (a write) nor read. Must be 0. | count | lower | gate | simulated source: design |
bus_reach_not_eventLinks to, from or over an event channel that do not carry event. How: Count of links whose from, to or over is a channel part of kind event and whose carries is not event. Must be 0. | count | lower | gate | simulated source: design |
semantic_store_without_modelSemantic stores that make their vectors and reach no model part over model_call links. How: Count of store parts of kind semantic with vectors made and no path of model_call links to a model part. Must be 0. | count | lower | gate | simulated source: design |
external_store_not_in_egressExternal stores a part reaches that the egress of its sandbox does not name. How: Count of pairs of a sandbox part and an external store part (scope external) that a part the sandbox is per links to, where the sandbox's egress does not name the store. Must be 0. | count | lower | gate | simulated source: design |
via_not_in_egressEndpoints a part reaches through via that the egress of its sandbox does not name. How: Count of triples of a sandbox part, a tool or model part a part the sandbox is per links to, and the endpoint without an ingress that tool or model names as its via, where the sandbox's egress does not name the endpoint. Must be 0. | count | lower | gate | simulated source: design |
module_link_cyclesCycles of links that run through the borders of two or more nested architectures, under the policy module_link_cycles refuse. How: Under policies.module_link_cycles refuse, count of strongly connected sets of parts of the flattened document (over the links, from to to) that hold a part inside and a part outside each of at least two nested architectures. 0 without the policy. Must be 0. | count | lower | gate | simulated source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Completeness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
parts_with_link_shareShare of parts that have at least one link. How: Parts that are the from or to of a link divided by all parts of the revision. | share | higher | – | planned source: design |
agents_totalAgent copies: the sum of count over the agent parts. How: The sum of count over the parts with block agent, 1 for a part without count; a marked count at its value as built. Read from the architecture document by agenticspec sim check, before any simulation. | count | higher | – | simulated source: design |
principals_totalPrincipal parts. How: Parts with block principal in the architecture document, read by agenticspec sim check. By work mode: autonomous: lower, pairing: higher, review: higher | count | lower | – | simulated source: design |
model_call_pathsDistinct paths of model_call links from an agent part to a model part. How: Paths without a repeated part over model_call links that start at an agent part and end at the first model part they reach, summed over the agent parts. More than one per agent is a fallback. Read by agenticspec sim check. | count | higher | – | simulated source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
parts_secret_can_reachParts a secret granted to some part can reach over links. How: Parts reachable over links from any part that holds a secret grant. Fewer is a smaller blast radius. | count | lower | – | planned source: design |
coordination_callsModel calls agents spend coordinating rather than working, reading a board or the messages of a mesh. How: Model calls made for a board read or for reading mesh messages. The simulator counts one per board read and mesh_read_calls per message read. | count | lower | – | simulated source: design |
coordination_messagesMessages a copy of a mesh sends to the other started copies when it starts a task. How: MessageSent events between copies of one mesh part. The simulator counts one per other started copy at each task start. | count | lower | – | simulated source: design |
human_touchpointsLinks that end at a principal and carry a question or a proposal. How: Links whose to is a principal part and whose carries is question or proposal, the two kinds the architectures use to ask a human to decide. A prompt from a principal is not counted. Read by agenticspec sim check. By work mode: autonomous: lower, pairing: ignore, review: ignore | count | lower | – | simulated source: design |
autonomy_depthLinks in the longest chain of order and question links from agent to agent. How: The longest path without a repeated part over links that carry order or question and join two agent parts, counted in links; no principal is on such a chain. 0 when no agent passes work or a question to another. Read by agenticspec sim check. By work mode: autonomous: ignore, pairing: lower, review: lower | count | lower | – | simulated source: design |
ungated_model_callsPaths of model_call links from an agent to a model that pass no gateway part. How: Of the paths model_call_paths counts, those with no gateway part between the agent and the model. Such a call has no rate limit, budget or record of a gateway. Read by agenticspec sim check. | count | lower | – | simulated source: design |
single_pointsParts whose removal leaves some agent with no model_call path to a model. How: The cut vertices of the model_call graph between agents and models. A part counts when some other agent part that reaches a model reaches none once the part is removed; a lone gateway or a lone model counts. agenticspec sim check names them. | count | lower | – | simulated source: design |
border_partsParts named in the border, the parts that take input from outside. How: Distinct names in the border of the architecture document that are parts. Fewer is a smaller surface. Read by agenticspec sim check. | count | lower | – | simulated source: design |
egress_targetsDistinct parts and endpoints named in the egress of the sandbox parts. How: The union of the egress lists of every part with block sandbox, counting the names that are parts or endpoints once. Fewer is a smaller exposure. Read by agenticspec sim check. | count | lower | – | simulated source: design |
shared_workspacesWorkspace parts whose sharing is not exclusive. How: Parts with block workspace whose sharing is anything but exclusive, a workspace without sharing included. Read by agenticspec sim check. | count | lower | – | simulated source: design |
capacity_ratioAgent copies that claim a pool divided by its capacity, the largest over the pools. How: For each pool part with a capacity, the copies of the agent parts with a claim link to it divided by the capacity; the largest of these, 0 without a pool. A marked count or capacity at its value as built, as the simulator reads it. Above 1, copies wait for the pool. Read by agenticspec sim check. | ratio | lower | – | simulated source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Settings
The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.
A part architecture:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
ref | string | The path of the nested architecture document, relative to this one. | |||
digest | string | The digest of the nested document's bytes, sha256:. | |||
active | windows | When the nested architecture works: one window of the run, {from: 0s, until: 4h}, or a list of them, [{until: 4h}, {from: 8h}]. Outside its windows it is off: its parts take no task, and what they hold or have queued, and each task sent to them, goes to handback. Without it, it works the whole run. | |||
handback | part | Where the tasks of the nested architecture go while it is off, beside active: a part of the architecture that nests it, outside the nested one, or a border part of another nested architecture, <part>.. A shared channel gets them as posts, an agent that takes tasks over an order link as handed tasks, any other part through the backlog. | |||
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.