Infrastructure · Data Structures

Parallel

Concurrent flow

Definition

Mechanism

Concurrent execution of two or more branches under no ordering guarantee: a caller may not assume which branch runs, finishes, or observes state first. Genuine simultaneity and interleaving both satisfy it — the pattern is the contract, not the substrate.

Invariants

  1. No result may depend on the order branches were entered or completed. A branch set with an order requirement is a Chain.
  2. Each declared branch is attempted. How outcomes combine is `join_semantics` and varies.

Risks

Failure modes

None stated.

Relationships

Builds on

References

Chain

Sequential data container (linked list)

Used by

References

Mind

Parallelize

Run subtasks simultaneously and aggregate

Reference

Data schema

{
  "type": "object",
  "description": "A parallel topology — independent branches executed concurrently with a join point.",
  "properties": {
    "branches": {
      "type": "array",
      "description": "Independent execution branches"
    },
    "join_semantics": {
      "type": "string",
      "enum": [
        "all",
        "any",
        "quorum"
      ],
      "description": "How branch results combine"
    }
  },
  "required": [
    "branches"
  ]
}

Identity

Ref
Parallel#d58d
Sema ID
sema:Parallel#mh:SHA-256:d58d6696be11be09651e71307f0ea6f42bb45fac137ed985a61e475144f687a5
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:Parallel#mh:SHA-256:6272e213685ff8b1c909c783ae0859f93c55d3423c4278661a4b601ddf07d7a3
  • sema:Parallel#mh:SHA-256:e799c1986d62c4a052090842aabe144193587f8a4d8dd23617d027b2e9b85098