-
Notifications
You must be signed in to change notification settings - Fork 0
Branch main Algo execution step lifecycle
github-actions[bot] edited this page Jun 20, 2026
·
75 revisions
| Field | Value |
|---|---|
| Branch | main |
| Source | specs/algorithms/execution_step_lifecycle.pseudo.md |
| Commit | 5b2aac39fcf8 |
| Synced (UTC) | 2026-06-20T05:49:16Z |
Algorithm pages define deterministic platform-neutral behavior that downstream repos implement behind native adapters.
flowchart LR
Input["Input contract"] --> Preconditions["Preconditions"]
Preconditions --> Decision["Deterministic decision"]
Decision --> Output["Output contract"]
Decision --> Diagnostic["Diagnostic envelope"]
Diagnostic --> Audit["Audit chain"]
| Question | Where to look |
|---|---|
| What is deterministic? | Read the pseudocode branch table and preconditions. |
| What blocks unsafe behavior? | Look for blocked, ambiguous, policy, or precondition paths. |
| How is the decision reconstructable? | Trace diagnostic and audit requirements. |
FUNCTION execute_steps(context, steps) -> List[ExecutionStepResult]
REQUIRE context.policyDecision.decision == ALLOW
REQUIRE context.verificationPlan.generatedBeforeMutation == true
FOR step IN steps:
precondition = check all mutation preconditions
IF precondition blocked: record BLOCKED diagnostic and stop
execute platform-neutral step through adapter boundary
record ExecutionStepResult and audit event
RETURN results
END FUNCTION