Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
48191d0
feat(evolution): scaffold 12th workspace package and sync workspace t…
thxCode Nov 23, 2026
92e055a
feat(decisions): add evolutionary novelty, strategy routing, and casc…
thxCode Nov 23, 2026
7f9200f
feat(memory): add hardwareScope isolation and hardware_execution veri…
thxCode Nov 23, 2026
dcf7ba1
feat(core): add Stage A audit contracts, bucketScope, bucketMetrics, …
thxCode Nov 23, 2026
9e1ce8a
feat(evolution): add schemas, fenced campaign.sqlite store, Pareto en…
thxCode Nov 23, 2026
74a75b1
feat(controller): add evolve-block-guard.v1 verifier and benchmark-ga…
thxCode Nov 23, 2026
a3ebfa1
feat(hardware-runner): add Stage A static audits, Stage B Roofline pa…
thxCode Nov 23, 2026
06991f7
feat(evolution): add deterministic evolution-bundle.v1 exporter for d…
thxCode Nov 23, 2026
d862c37
feat(taskpack): add evolve-block-guard.v1 compilation, Stage A audit …
thxCode Nov 23, 2026
c8ee352
feat(evolution): add plateau team-supervisor, specialist-then-portfol…
thxCode Nov 23, 2026
de89f41
feat(cli): add lazy-loaded evolve subcommands, runner parity, and clo…
thxCode Nov 23, 2026
c8f0722
docs: document evolutionary campaigns, Pareto archive, and bundle export
thxCode Nov 23, 2026
da3a2d3
fix: gate memory hardwareScope by evidence and isolate turnkey env lo…
thxCode Nov 24, 2026
211a06f
fix(evolution): harden team-patch, HMAC export, novelty gate, and resume
thxCode Nov 24, 2026
8693e3e
fix(cli,docs): wire read-only supervisor, novelty gate, and relay top…
thxCode Nov 24, 2026
f5119b5
fix(evolution): harden 64-bucket export, cross-provider roles, and su…
thxCode Nov 24, 2026
14a19d6
fix(evolution): isolate cross-provider credentials and enforce worklo…
thxCode Nov 24, 2026
b13c73c
docs(specs): mark evolutionary campaigns spec as shipped
thxCode Nov 24, 2026
c7ddc17
fixup! feat(cli): add lazy-loaded evolve subcommands, runner parity, …
thxCode Nov 24, 2026
afd1e91
fixup! docs: document evolutionary campaigns, Pareto archive, and bun…
thxCode Nov 24, 2026
782d21d
fixup! fix: gate memory hardwareScope by evidence and isolate turnkey…
thxCode Nov 24, 2026
db43335
fixup! feat(controller): add evolve-block-guard.v1 verifier and bench…
thxCode Nov 24, 2026
7e8d268
fixup! feat(decisions): add evolutionary novelty, strategy routing, a…
thxCode Nov 24, 2026
97ccb69
fixup! feat(evolution): add deterministic evolution-bundle.v1 exporte…
thxCode Nov 24, 2026
fbb084e
fixup! feat(evolution): add plateau team-supervisor, specialist-then-…
thxCode Nov 24, 2026
94868bf
fixup! feat(hardware-runner): add Stage A static audits, Stage B Roof…
thxCode Nov 24, 2026
b260f75
fixup! feat(memory): add hardwareScope isolation and hardware_executi…
thxCode Nov 24, 2026
5b71d42
fixup! feat(taskpack): add evolve-block-guard.v1 compilation, Stage A…
thxCode Nov 24, 2026
9d0fabf
fixup! feat(cli): add lazy-loaded evolve subcommands, runner parity, …
thxCode Nov 24, 2026
08cfae2
test(cli): raise runner-cli help subprocess timeout for loaded CI run…
thxCode Nov 24, 2026
591402c
fixup! feat(cli): add lazy-loaded evolve subcommands, runner parity, …
thxCode Nov 24, 2026
559e827
fixup! feat(controller): add evolve-block-guard.v1 verifier and bench…
thxCode Nov 24, 2026
8893432
fixup! feat(decisions): add evolutionary novelty, strategy routing, a…
thxCode Nov 24, 2026
18f9fd2
fixup! feat(evolution): add deterministic evolution-bundle.v1 exporte…
thxCode Nov 24, 2026
9d172a5
fixup! feat(evolution): add plateau team-supervisor, specialist-then-…
thxCode Nov 24, 2026
4ccb251
fixup! feat(hardware-runner): add Stage A static audits, Stage B Roof…
thxCode Nov 24, 2026
5f407a7
fixup! feat(memory): add hardwareScope isolation and hardware_executi…
thxCode Nov 24, 2026
f34c2c4
fixup! feat(taskpack): add evolve-block-guard.v1 compilation, Stage A…
thxCode Nov 24, 2026
baf4f93
fixup! feat(cli): add lazy-loaded evolve subcommands, runner parity, …
thxCode Nov 24, 2026
d08f7bb
fixup! feat(hardware-runner): add Stage A static audits, Stage B Roof…
thxCode Nov 24, 2026
65199b5
fixup! feat(cli): add lazy-loaded evolve subcommands, runner parity, …
thxCode Nov 24, 2026
13372b8
fixup! feat(hardware-runner): add Stage A static audits, Stage B Roof…
thxCode Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .agents/skills/loopwright-overview/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Read [Architecture](../../../docs/getting-started/architecture.md) for the four-
| `@loopwright/taskpack` | [packages/taskpack](../../../packages/taskpack/) | Generic declarative `Taskpack` and `TaskpackSuite` parser/router, compiler, isolated 3-way `baselineAlignment`, OS sandbox backends, preflight/upstream staging, local `command.v1` gate, and turnkey execution (`local` and `github` policy profiles) |
| `@loopwright/github-app` | [packages/github-app](../../../packages/github-app/) | GitHub webhook intake, suite PR ownership lookup, multi-domain fan-out routing, collaborator permission checks, `InstallationTokenBroker`, `TenantAdmissionQueue`, streamed 3-way CAS PR publisher, `github-app.yaml` loader, and Action entrypoint |
| `@loopwright/hardware-runner` | [packages/hardware-runner](../../../packages/hardware-runner/) | Outbound pull-lease benchmark relay, two-stage blind GPU/NPU evaluator (`native_os`/`docker`), `1 MiB` CAS streaming, and trusted hardware provenance probes |
| `@loopwright/cli` | [packages/cli](../../../packages/cli/) | Local operator CLI (`init`, `check`, `digest sync`, `suite check|resolve`, `run --taskpack`, `run`, `resume`, `step`, `status`, `inspect`, `reconcile`, `closure`, `app-serve`, `runner relay\|worker`), `--baseline-alignment`, `--role-model` routing, and YAML draft generator |
| `@loopwright/evolution` | [packages/evolution](../../../packages/evolution/) | Isolated `campaign.sqlite` island/MAP-Elites archive, NSGA-II Pareto ranking, UCB1 model bandit, plateau `team-patch.v1` supervisor, CAS scratchpads, and deterministic `evolution-bundle.v1` export |
| `@loopwright/cli` | [packages/cli](../../../packages/cli/) | Local operator CLI (`init`, `check`, `digest sync`, `suite check|resolve`, `run --taskpack`, `run`, `resume`, `step`, `status`, `inspect`, `reconcile`, `closure`, `app-serve`, `runner relay\|worker`, `evolve check\|run\|resume\|status\|inspect\|export`), `--baseline-alignment`, `--role-model` routing, and YAML draft generator |

## YAML-First Configuration Surfaces

Expand All @@ -47,6 +48,7 @@ Loopwright uses deterministic two-space Pretty YAML (YAML 1.2 core schema, rejec
| `.loopwright/suite.yaml` | `kind: TaskpackSuite` (`metadata.name` + `spec.domains[]`, `spec.stages[]` readiness probes) | `@loopwright/taskpack`, `@loopwright/github-app`, `@loopwright/cli` — [Taskpack](../../../docs/configuration/taskpack.md#taskpacksuite), [GitHub Action](../../../docs/operations/github-action.md), [CLI](../../../docs/operations/cli.md#suite-commands) |
| `github-app.yaml` | `kind: GitHubAppConfig` (`apiVersion`, `kind`, `spec`; `loadGitHubAppConfig`) | `@loopwright/github-app` — [GitHub App](../../../docs/operations/github-app.md) |
| `decisions.yaml` | `kind: DecisionPolicy` (`apiVersion`, `kind`, `spec`; `loadDecisionPolicyFile`) | `@loopwright/decisions` — [Decision Routing](../../../docs/configuration/decision-routing.md) |
| `campaign.yaml` | `kind: EvolutionCampaign` (`metadata.name` + `spec.taskpack`, `spec.targetCellId`, `spec.stages`, `spec.population`, `spec.sampling`, `spec.teamEvolution?`, `spec.objectives`, `spec.budgets`, `spec.export?`) | `@loopwright/evolution`, `@loopwright/cli` — [Task Contract](../../../docs/configuration/task-contract.md#evolutioncampaign), [CLI](../../../docs/operations/cli.md#evolution-campaigns) |
| `examples/task.yaml` | `kind: TaskContract` (`apiVersion`, `kind`, `spec`; `loopwright check` / `loopwright run`) | `@loopwright/core`, `@loopwright/cli` — [Task Contract](../../../docs/configuration/task-contract.md) |

## Module Map & Skill Routing
Expand Down
2 changes: 2 additions & 0 deletions .auto-sync/checks/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ UNMANAGED_WORKSPACES = [
"packages/memory",
"packages/taskpack-runner",
"packages/hardware-runner",
"packages/evolution",
]
ALL_WORKSPACES = sorted(["packages/agent-pi", *YAML_WORKSPACES, *UNMANAGED_WORKSPACES])
ALLOWED_WORKSPACE_LINKS = {
Expand Down Expand Up @@ -307,6 +308,7 @@ PROTECTED_TREE_PREFIXES = [
"packages/memory",
"packages/taskpack-runner",
"packages/hardware-runner",
"packages/evolution",
"packages/agent-pi/qualification",
"packages/controller/qualification",
"docs/contribute",
Expand Down
4 changes: 2 additions & 2 deletions .auto-sync/digests.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"path": ".auto-sync/checks",
"kind": "directory",
"sha256": "b24e311a2845a0a9e40b5ed673f928a3f569656ed72ebee047296877bfd98aff"
"sha256": "bc0085a2f3df69d371aa0b3b819d0b854be6d9e7c0d69ea0b9ef655cacbd59c0"
},
{
"path": ".auto-sync/instructions.md",
Expand All @@ -15,7 +15,7 @@
{
"path": "scripts/prepare-self-upgrade.mjs",
"kind": "file",
"sha256": "743fa0372866f9288161b2789b6ad037126475275afa36b638c069048c0d51e2"
"sha256": "879ba4c35f1b7765a999a66fd2f730e6229bdce0b24102b1151153e38c494688"
}
]
}
5 changes: 5 additions & 0 deletions .opencodereview/rule.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
"merge_system_rule": true,
"rule": "Flag violations of lease fencing, stage-A/stage-B isolation, CAS bounds and secret containment; cite concrete scenarios and preserve package boundaries."
},
{
"path": "packages/evolution/**/*.ts",
"merge_system_rule": true,
"rule": "Flag violations of campaign.sqlite isolation, archetype capability envelopes, CAS bounds and secret containment; cite concrete scenarios and preserve package boundaries."
},
{
"path": "packages/cli/**/*.ts",
"merge_system_rule": true,
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Loopwright is a TypeScript harness and GitHub Action/App control plane for bound
- `packages/core`: contracts, identity, evidence; `packages/state`: fenced SQLite state.
- `packages/agent-pi`: isolated runtime; `packages/controller`: orchestration and verification.
- `packages/taskpack-runner`: runner parity; `packages/memory`: reviewed memory.
- `packages/decisions`: advisory routing; `packages/taskpack`: declarative taskpacks; `packages/github-app`: intake and App; `packages/hardware-runner`: outbound benchmark relay and worker; `packages/cli`: local operations.
- `packages/decisions`: advisory routing; `packages/taskpack`: declarative taskpacks; `packages/github-app`: intake and App; `packages/hardware-runner`: outbound benchmark relay and worker; `packages/evolution`: evolutionary campaigns, Pareto archive, and bundle export; `packages/cli`: local operations.
- `action.yml`: reusable Action; `docs/`: usage contracts; `site/`: generated documentation site; `specs/`: rationale; `scripts/`: automation.

## Architecture
Expand All @@ -24,7 +24,7 @@ Run `npm run build`, `npm run typecheck`, `npm run lint`, `npm run lint:docs`, a

- `core`, `decisions`, `memory`, `controller`, `hardware-runner`, `cli`: `node scripts/run-tests.mjs --pkg <pkg>`
- `github-app`, `taskpack`, `taskpack-runner`: target `.test-build/packages/<pkg>/test/<file>.test.js` with `--test-name-pattern` during iteration, then `node scripts/run-tests.mjs --pkg <pkg>`
- `state`, `agent-pi`: `node scripts/run-tests.mjs --pkg <pkg>` (use `--concurrency 1` for sandbox, child-kill, or SQLite lock contention)
- `state`, `agent-pi`, `evolution`: `node scripts/run-tests.mjs --pkg <pkg>` (use `--concurrency 1` for sandbox, child-kill, or SQLite lock contention)

Use `loopwright-overview` for architecture routing, `loopwright-docs` for documentation changes, `loopwright-code-review` for reviews, `loopwright-issue-pr` for issue or PR preparation, and `loopwright-release` for releases.

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Read the [architecture overview](./docs/getting-started/architecture.md) and [do
- **Declarative taskpacks & suites**: Define repository scope, triggers, compact step handoffs, conditional rules, baseline alignment (`baselineAlignment`), and multi-domain `TaskpackSuite` manifests (`.loopwright/suite.yaml`) in YAML. See [Declarative Taskpack](./docs/walkthroughs/declarative-taskpack.md) and [Taskpack](./docs/configuration/taskpack.md).
- **Run diagnostics (`RunEval`)**: Export deterministic tool-repeat, ping-pong, repair-convergence, and per-role/per-step breakdowns via `loopwright inspect` and `Run Health` step summaries. See [CLI](./docs/operations/cli.md).
- **Hardware benchmark gates**: Bind hardware `target.matrix` cells to host-owned `benchmark-gate.v1` slots and run outbound-only `@loopwright/hardware-runner` workers (`loopwright runner relay|worker`). See [Task Contract](./docs/configuration/task-contract.md) and [CLI](./docs/operations/cli.md).
- **Evolutionary campaigns**: Run bounded island and MAP-Elites optimization (`@loopwright/evolution`, `loopwright evolve`) with `evolve-block-guard.v1`, plateau `teamEvolution`, and signed `evolution-bundle.v1` exports. See [Task Contract](./docs/configuration/task-contract.md#evolutioncampaign) and [CLI](./docs/operations/cli.md#evolution-campaigns).
- **Reviewed memory**: Content-addressed proposals apply separately after review. See [memory](./docs/contribute/memory.md).
- **Capability closure**: Inspect local evidence and external prerequisites with the [closure matrix](./docs/contribute/closure-matrix.md).

Expand Down
5 changes: 3 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
- Use for: compile trusted configuration and coordinate bounded runs
- Aliases: controller
- Guides: [getting-started/installation.md](getting-started/installation.md), [walkthroughs/managed-controller.md](walkthroughs/managed-controller.md), [configuration/controller-and-registry.md](configuration/controller-and-registry.md), [operations/cli.md](operations/cli.md), [operations/coding-agents.md](operations/coding-agents.md), [contribute/closure-matrix.md](contribute/closure-matrix.md)
- Specs: [Specification](../specs/2026-11-06-bounded-controller-and-trusted-config.md), [Delegated Stepping](../specs/2026-11-14-delegated-role-stepping-and-multi-model-routing.md), [Multi-Domain Suites, Handoffs, and RunEval](../specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md), [Hardware Execution and Remote Runner](../specs/2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md)
- Code: [controller](../packages/controller/), [hardware-runner](../packages/hardware-runner/), [cli](../packages/cli/)
- Specs: [Specification](../specs/2026-11-06-bounded-controller-and-trusted-config.md), [Delegated Stepping](../specs/2026-11-14-delegated-role-stepping-and-multi-model-routing.md), [Multi-Domain Suites, Handoffs, and RunEval](../specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md), [Hardware Execution and Remote Runner](../specs/2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md), [Evolutionary Campaigns, Pareto Archive, and Bundle Export](../specs/2026-11-23-evolutionary-campaigns-pareto-archive-and-bundle-export.md)
- Code: [controller](../packages/controller/), [hardware-runner](../packages/hardware-runner/), [evolution](../packages/evolution/), [cli](../packages/cli/)
- Related: [contracts](#contracts-and-evidence), [state](#persistent-state-store)
- Skills: [overview](../.agents/skills/loopwright-overview/SKILL.md), [step](../.agents/skills/loopwright-step/SKILL.md)

Expand Down Expand Up @@ -137,6 +137,7 @@
| [2026-11-20-decouple-taskpack-and-cas-blob-pointers.md](../specs/2026-11-20-decouple-taskpack-and-cas-blob-pointers.md) | Decoupled `@loopwright/taskpack` package, policy profiles, and CAS blob pointers |
| [2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md](../specs/2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md) | Hardware execution, benchmark-gate.v1, and outbound remote runner |
| [2026-11-21-multi-domain-suite-handoff-and-run-eval.md](../specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md) | Multi-domain `TaskpackSuite`, compact handoffs, conditional rules, `RunEval`, and baseline alignment |
| [2026-11-23-evolutionary-campaigns-pareto-archive-and-bundle-export.md](../specs/2026-11-23-evolutionary-campaigns-pareto-archive-and-bundle-export.md) | Evolutionary campaigns (`@loopwright/evolution`), `evolve-block-guard.v1`, plateau `teamEvolution`, `hardwareScope`, and `evolution-bundle.v1` |

## All pages

Expand Down
75 changes: 75 additions & 0 deletions docs/assets/diagrams/hardware-relay-flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions docs/configuration/decision-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,13 @@ Programmatic `@loopwright/decisions` callers compose structured requests from fo
| `evaluateCycleAlignment` | Before repair or `rejectTo` rework | Advisory route (`continue`, `revise`, `needs_review`, `blocked`) |
| `adviseSoftCompaction` | Prior to `pi.compact.v1` steps | Cannot veto active hard-compaction triggers |
| `triageCandidateDiff` | Post-capture pre-publication | Skips cleanly when `triageRules` is empty; sets `verificationCertified: false` |
| `advise_mutation_novelty` | Pre-compile evolution mutation | Rejects `Jaccard === 1.0` clones offline (`0` network calls); queries Jev `noul` in soft band |
| `route_evolution_strategy` | Pre-mutation evolution track choice | Routes `(trackId, mutationKind)` from declared tracks with deterministic Roofline fallback |
| `advise_cascade_escalation` | Post-smoke benchmark triage | Returns `prune`, `confirm`, or `escalate`; never bypasses full multi-bucket verification |

- **Deterministic fallback**: Missing provider credentials, timeouts, or unreachable endpoints fall back deterministically (`source: 'deterministic_fallback'`) without blocking or certifying runs.
- **Non-delegable authority**: All six `DECISION_FORBIDDEN_AUTHORITY_INTENTS` (such as certifying verification receipts, bypassing required gates, overriding pinned models, expanding `writable` scope, or granting execution authority) are permanently refused and never sent to a decision model. Recorded entries appear in run observations (`advisoryDecisions`) with `verificationCertified: false`.
- **Advisory stamps**: Every decision result stamps `advisoryOnly: true` and `verificationCertified: false`.
- **Deterministic fallback**: Missing provider credentials, timeouts, or unreachable endpoints fall back deterministically (`source: 'deterministic_fallback'` or `'deterministic_heuristic'`) without blocking or certifying runs.
- **Non-delegable authority**: All six `DECISION_FORBIDDEN_AUTHORITY_INTENTS` (`grant_execution_authority`, `certify_verification_evidence`, `skip_adversarial_review`, `approve_external_gate`, `override_pinned_model`, `veto_hard_compaction`) throw `DecisionError('DECISION_AUTHORITY_VIOLATION')` with `authorityViolation: true`. Recorded entries appear in run observations (`advisoryDecisions`) with `verificationCertified: false`.

---

Expand Down
Loading
Loading