@@ -62,7 +62,7 @@
diff --git a/site/layouts/partials/nav-label.html b/site/layouts/partials/nav-label.html
index 0337c68..f885e4d 100644
--- a/site/layouts/partials/nav-label.html
+++ b/site/layouts/partials/nav-label.html
@@ -1 +1 @@
-{{- return (index site.Data.navigation.labels (partial "page-key.html" .) | default (partial "page-title.html" .)) -}}
+{{- return (index hugo.Data.navigation.labels (partial "page-key.html" .) | default (partial "page-title.html" .)) -}}
diff --git a/site/layouts/partials/nav-section.html b/site/layouts/partials/nav-section.html
index 37e2ee6..65fc3cc 100644
--- a/site/layouts/partials/nav-section.html
+++ b/site/layouts/partials/nav-section.html
@@ -25,13 +25,13 @@
{{ range $items }}
{{ $p := site.GetPage . }}
{{ if $p }}
- {{ $label := index site.Data.navigation.labels (partial "page-key.html" $p) | default (partial "page-title.html" $p) }}
+ {{ $label := index hugo.Data.navigation.labels (partial "page-key.html" $p) | default (partial "page-title.html" $p) }}
{{ $label }}
{{ end }}
{{ end }}
{{ else if $page }}
{{ if $page.Content }}
- {{ $overviewLabels := site.Data.navigation.overview_labels | default dict }}
+ {{ $overviewLabels := hugo.Data.navigation.overview_labels | default dict }}
{{ $overviewLabel := index $overviewLabels (partial "page-key.html" $page) | default "Overview" }}
{{ $overviewLabel }}
{{ end }}
diff --git a/site/layouts/partials/ordered-pages.html b/site/layouts/partials/ordered-pages.html
index bad87af..aa2e489 100644
--- a/site/layouts/partials/ordered-pages.html
+++ b/site/layouts/partials/ordered-pages.html
@@ -1,5 +1,5 @@
{{- $parentKey := partial "page-key.html" . -}}
-{{- $order := index site.Data.navigation.order $parentKey | default slice -}}
+{{- $order := index hugo.Data.navigation.order $parentKey | default slice -}}
{{- $pages := .Pages -}}
{{- $result := slice -}}
{{- $included := slice -}}
diff --git a/site/layouts/partials/site-selectors.html b/site/layouts/partials/site-selectors.html
index 8310c66..8bd8400 100644
--- a/site/layouts/partials/site-selectors.html
+++ b/site/layouts/partials/site-selectors.html
@@ -20,12 +20,12 @@
- Page language: {{ .Site.Language.LanguageName }}
+ Page language: {{ .Site.Language.Label }}
diff --git a/specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md b/specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md
index d558bb4..967ccd0 100644
--- a/specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md
+++ b/specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md
@@ -24,13 +24,13 @@ Success is measured by:
- Eliminating text-field path smuggling and cutting [`scripts/prepare-self-upgrade.mjs`](../scripts/prepare-self-upgrade.mjs) down to thin domain-specific logic under [`.auto-sync/taskpack.yaml`](../.auto-sync/taskpack.yaml).
- Running interleaved `agent` -> `check` -> `review` -> `rejectTo` rework loops with per-role instructions, skills, and MCP isolation under raised bounded checkpoints (`<= 256`).
- Supporting multi-upstream lockstep groups, per-upstream `held_back`, directory-mounted `command.v1` scripts with shared helpers, explicit `/**` and `*`/`?` glob `scope`, built-in structural guards, and live `spec.decisions` routing.
-- Passing all repository build, typecheck, lint, test, closure, docs, and site gates with Taskpack 2.0 contracts and Phase 3 forward-compatible core schemas in place.
+- Passing all repository build, typecheck, lint, test, closure, docs, and site gates with Taskpack 2.0 contracts and forward-compatible quantitative verification core schemas in place.
### Non-Goals
- Preserving backward compatibility with legacy Taskpack v1 YAML fields when a cleaner Taskpack 2.0 schema replaces them.
-- Implementing multi-domain repository suite routing, cross-cycle stage promotion, Markdown heading compact handoff, or post-run `RunEval` recommendation reports (reserved for Phase 2).
-- Implementing remote outbound GPU/hardware benchmark runners (`benchmark-gate.v1`), `'hardware_execution'` check execution, or outer multi-generation MCTS / MAP-Elites campaign controllers (reserved for Phase 3).
+- Implementing multi-domain repository suite routing, cross-cycle stage promotion, Markdown heading compact handoff, or post-run `RunEval` recommendation reports (deferred to follow-up specification [`2026-11-21-multi-domain-suite-handoff-and-run-eval.md`](2026-11-21-multi-domain-suite-handoff-and-run-eval.md)).
+- Implementing remote outbound GPU/hardware benchmark runners (`benchmark-gate.v1`), `'hardware_execution'` check execution, or outer multi-generation MCTS / MAP-Elites campaign controllers (deferred to follow-up specifications; hardware execution and `benchmark-gate.v1` are covered in [`2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md`](2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md)).
- Adding a centralized web service, database server, or host Docker socket passthrough into untrusted agent sandboxes.
## Proposal
@@ -52,7 +52,7 @@ As a repository maintainer, I want `command.v1` to mount the check directory (pr
As an operator running Loopwright on a trusted repository or CI runner, I want an explicit opt-in `privileged` execution mode alongside the `strict` default (gated by operator host flags and separate high-risk agent switches) and automatic runtime digesting (with optional CLI lockfile syncing), so that changing one line in a script runs immediately without manual SHA-256 editing.
#### Story 5
-As a platform engineer preparing for long-horizon engineering governance and self-evolving inference kernel workflows, I want `spec.decisions` wired into live runs and `@loopwright/core` upgraded to support optional quantitative `metrics` on passing checks, extensible `ArtifactRef` pointers, and `target.matrix` metadata passthrough, so that Phase 3 hardware gates and multi-generation loops plug in additively.
+As a platform engineer preparing for long-horizon engineering governance and self-evolving inference kernel workflows, I want `spec.decisions` wired into live runs and `@loopwright/core` upgraded to support optional quantitative `metrics` on passing checks, extensible `ArtifactRef` pointers, and `target.matrix` metadata passthrough, so that future remote hardware gates and multi-generation optimization loops plug in additively.
### Core Features & Acceptance Criteria
@@ -152,7 +152,7 @@ As a platform engineer preparing for long-horizon engineering governance and sel
- `json-keys-guard.v1` and `line-section-guard.v1` fail deterministically on out-of-region edits and pass on in-region edits.
- A `spec.limits.overlay: { maxFiles: 512, maxBytes: 16_777_216 }` run succeeds through `candidate.ts`, `step submit`, and `json-artifact.v1` without hitting `OUTPUT_LIMIT`.
-#### 5. Live `spec.decisions` via `ControllerPorts.decisions` and Phase 3 Forward-Compatible Core Contracts (`@loopwright/core`, `@loopwright/controller`, `@loopwright/decisions`, `@loopwright/github-app`, `@loopwright/cli`)
+#### 5. Live `spec.decisions` via `ControllerPorts.decisions` and Forward-Compatible Quantitative Verification Contracts (`@loopwright/core`, `@loopwright/controller`, `@loopwright/decisions`, `@loopwright/github-app`, `@loopwright/cli`)
- Wire `spec.decisions` without circular package dependencies:
- Define zero-dependency `AdvisoryDecisionPort` on `ControllerPorts` in [`packages/controller/src/types.ts`](../packages/controller/src/types.ts) (preserving `@loopwright/controller`'s dependency set `{core, state, agent-pi}`).
- Add optional `triageRules` to `spec.decisions` in [`packages/github-app/src/schema.ts`](../packages/github-app/src/schema.ts) (skipping `triageCandidateDiff` cleanly when empty instead of throwing `DECISION_BATCH_SIZE_INVALID`).
@@ -162,11 +162,11 @@ As a platform engineer preparing for long-horizon engineering governance and sel
3. `advise_soft_compaction` prior to `pi.compact.v1` steps.
4. `triage_candidate_diff` after candidate capture as an advisory pre-publication signal when `triageRules` are configured.
- Enforce all six `DECISION_FORBIDDEN_AUTHORITY_INTENTS` strictly with deterministic fallback per `fallbackAction`.
-- Phase 3 forward-compatible upgrades in `@loopwright/core` and `@loopwright/controller`:
+- Forward-compatible quantitative verification upgrades in `@loopwright/core` and `@loopwright/controller`:
- **Finite float admission + quantitative `metrics` & `findings`**: relax `snapshot()` in [`packages/core/src/boundary.ts`](../packages/core/src/boundary.ts) to accept finite floats (normalizing `-0` to `0`, refusing `NaN`/`Infinity`) while preserving `integer()` strictness on all existing integer fields. Add optional `metrics?: Readonly>` (bounded entry count and string lengths), `findings?: readonly StructuredFinding[]`, and optional `detail` on `Evidence` ([`packages/core/src/evidence.ts`](../packages/core/src/evidence.ts)), `SubmittedCheck`, and `EvaluatedCheck` ([`packages/core/src/acceptance.ts`](../packages/core/src/acceptance.ts)), allowed even when `status === 'passed'` (keeping `Evidence.spec.reason === null` on `passed`).
- **Extensible `ArtifactRef`**: add optional `uri?: string | null` and `mediaType?: string | null` to `artifactRefSchema` in [`packages/core/src/contracts.ts`](../packages/core/src/contracts.ts), omitted from canonical serialization when unset so existing local CAS manifest digests stay identical.
- **Unblock `target.matrix` metadata**: accept optional `spec.target.matrix` in `Taskpack`, allow non-null `task.spec.target.matrix` in [`packages/controller/src/compile.ts`](../packages/controller/src/compile.ts) whenever no check requires `'hardware_execution'`, and forward single-cell matrix bindings to `MemoryFinalizerConfig.targetMatrix` for platform-scoped memory isolation. Keep refusing `'hardware_execution'` check handlers with `CAPABILITY_UNSUPPORTED` and preserve the 23-row closure split (`18` `closedLocal`, `5` `unprovisionedExternal`).
- - **Unified verification result envelope**: standardize local check and external HMAC `gate.v1` outcomes around `{ status, reason, detail, metrics, findings, artifacts, retryablePreemption? }`, preparing for preemptible remote hardware queues in Phase 3.
+ - **Unified verification result envelope**: standardize local check and external HMAC `gate.v1` outcomes around `{ status, reason, detail, metrics, findings, artifacts, retryablePreemption? }`, preparing for preemptible remote hardware benchmark queues.
- **Acceptance criteria**:
- Passing `Evidence` and `VerificationResult` records carrying `metrics: { latency_us: 42.5, speedup: 1.18, delta: -0 }` normalize `-0` to `0`, reject `NaN`/`Infinity` with `VALUE_RANGE`, and round-trip cleanly through `gate.v1` -> `reconcile.ts` -> `evaluateValidated` -> `constructRunResult`.
- A `Taskpack` declaring `spec.target.matrix` compiles cleanly when all checks use `local_execution` or `external_service`, forwards `targetMatrix` into memory finalization, and still refuses `'hardware_execution'` checks with `CAPABILITY_UNSUPPORTED`.
@@ -490,8 +490,8 @@ code solid enough prior to committing the changes necessary to implement this en
- *Rejected*: Coalescing pre/post checkpoints blurs crash-recovery boundaries around external effects and tool execution. Raising the numeric ceiling across `schema.ts`/`connection.ts`/`boundary.ts`/`checkpoint.ts` (`64 -> 256`) preserves crash-recovery granularity cleanly.
5. **Flat attempt-level retries without `rejectTo` targeted rework**:
- *Rejected*: Re-running the entire pipeline from the first role wastes tokens when a late review rejects an implementation step, and fails to deliver structured findings to the responsible role. Bounded subgraph resets via `onRework.rejectTo` give precise quality feedback with deterministic stopping bounds.
-6. **Adding Phase 3 `CampaignStore` SQLite tables and remote GPU runner stubs now**:
- - *Rejected*: Guessing remote queue schemas before hardware runner validation creates throwaway migration debt. Landing only stable data-plane contract extensions (`metrics`, `findings`, `ArtifactRef.uri`, `target.matrix`, unified verification envelope) now prepares Phase 3 cleanly with zero dead code.
+6. **Adding multi-generation `CampaignStore` SQLite tables and remote GPU runner stubs now**:
+ - *Rejected*: Guessing remote queue schemas before hardware runner validation creates throwaway migration debt. Landing only stable data-plane contract extensions (`metrics`, `findings`, `ArtifactRef.uri`, `target.matrix`, unified verification envelope) now prepares future hardware runners and multi-generation campaign controllers cleanly with zero dead code.
## Open Questions
diff --git a/specs/2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md b/specs/2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md
index 0ce1a6d..669e1a0 100644
--- a/specs/2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md
+++ b/specs/2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.md
@@ -29,7 +29,7 @@ Target users are kernel engineers, ML systems developers, verification owners, a
### Non-Goals
-- Multi-generation evolutionary search, lineage trees, MCTS, or MAP-Elites campaign stores (deferred to Phase 3.3).
+- Multi-generation evolutionary search, lineage trees, MCTS, or MAP-Elites campaign stores (deferred to a future multi-generation campaign orchestration specification).
- Benchmark suite manifests (`suite.yaml`), compact agent handoff formats, or local deterministic evaluation harnesses.
- Centralized external databases, multi-node consensus stores, or web dashboards.
- Built-in RFC 6455 WebSocket server framing or any new third-party runtime npm dependency.
@@ -389,13 +389,13 @@ Every added unit of code has unit-test coverage with the following per-package t
## Alternatives
1. **Place the runner worker and pull-lease relay inside `@loopwright/taskpack` or `@loopwright/controller` instead of `@loopwright/hardware-runner`**:
- - Rejected. `@loopwright/controller` cannot import `@loopwright/taskpack` (`SandboxReadOnlyBindMount`) without a package cycle. Adding worker modules to `controller` would also churn `installedHandlerDigests()` ([`handlers.ts`](../packages/controller/src/handlers.ts)) on every edit. Putting cluster daemons into `@loopwright/taskpack` (~18k LOC) would recreate the monolith split in [`2026-11-20-decouple-taskpack-and-cas-blob-pointers.md`](2026-11-20-decouple-taskpack-and-cas-blob-pointers.md) and force a breaking extraction in Phase 3.3.
+ - Rejected. `@loopwright/controller` cannot import `@loopwright/taskpack` (`SandboxReadOnlyBindMount`) without a package cycle. Adding worker modules to `controller` would also churn `installedHandlerDigests()` ([`handlers.ts`](../packages/controller/src/handlers.ts)) on every edit. Putting cluster daemons into `@loopwright/taskpack` (~18k LOC) would recreate the monolith split in [`2026-11-20-decouple-taskpack-and-cas-blob-pointers.md`](2026-11-20-decouple-taskpack-and-cas-blob-pointers.md) and force a breaking extraction when multi-generation campaign search is added later.
2. **Mint new controller `OperationIntent`s and `verify...` checkpoints across `resumeCycle` on preemption**:
- Rejected. Multiplying verifier slots by `(1 + maxPreemptions)` in [`compile.ts`](../packages/controller/src/compile.ts) overflows the `D <= 256` checkpoint limit on multi-step and `onRework` DAGs. It also requires rewriting [`progress.ts`](../packages/controller/src/progress.ts) and overturning the single-request crash rule in [`gate.ts`](../packages/controller/src/gate.ts). Relay-owned requeue (`leaseEpoch + 1`) covers worker eviction, while `loopwright reconcile` covers controller restarts.
3. **Require a built-in WebSocket (`wss://`) server control stream alongside HTTPS long-poll**:
- Rejected. Node `v26.13.1` lacks a built-in WebSocket server parser, and workspace rules forbid unapproved npm dependencies (`ws`). Hand-rolling an RFC 6455 server adds ~500 lines of framing code, doubles transport tests, and fails behind proxies that block `Upgrade: websocket`. Standard HTTPS long-poll + heartbeat (with optional `text/event-stream` watch) and `1 MiB` HTTP `GET`/`PUT` CAS streaming use built-in HTTP primitives with zero head-of-line blocking.
4. **Enforce `hardwareProvenance` and `metricThresholds` only in `@loopwright/controller` handler parameters**:
- - Rejected. Leaving `@loopwright/core` blind to hardware mismatch and threshold violations weakens `evaluateAcceptance` / `constructRunResult` anti-cheating guarantees. It also duplicates parsers across three packages and forces Phase 3.3 search to parse private `gate-output` blobs instead of typed `Evidence`.
+ - Rejected. Leaving `@loopwright/core` blind to hardware mismatch and threshold violations weakens `evaluateAcceptance` / `constructRunResult` anti-cheating guarantees. It also duplicates parsers across three packages and would force future multi-generation campaign search to parse private `gate-output` blobs instead of typed `Evidence`.
5. **Compile and benchmark candidate code inside one sandbox mount with `held_out_workloads` present**:
- Rejected. A single stage that both reads `held_out_workloads` and exports `.cubin`/`.sass` binaries lets malicious candidate code embed private test inputs or reference answers into returned artifacts. Two-stage isolation seals Stage A binaries before mounting `held_out_workloads` in Stage B with zero file exports.
diff --git a/specs/2026-11-21-phase2-suite-handoff-and-run-eval.md b/specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md
similarity index 98%
rename from specs/2026-11-21-phase2-suite-handoff-and-run-eval.md
rename to specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md
index 18ec1f7..79f9f08 100644
--- a/specs/2026-11-21-phase2-suite-handoff-and-run-eval.md
+++ b/specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md
@@ -1,11 +1,11 @@
-# Spec: Phase 2 multi-domain suites, compact handoffs, and deterministic run diagnostics
+# Spec: Multi-domain suites, compact handoffs, and deterministic run diagnostics
Status: Shipped
Type: Feature
## Summary
-Extend Loopwright with four deterministic Phase 2 capabilities across `@loopwright/core`, `@loopwright/agent-pi`, `@loopwright/controller`, `@loopwright/taskpack`, `@loopwright/github-app`, `@loopwright/cli`, and `@loopwright/memory`. Add a declarative `.loopwright/suite.yaml` manifest (`kind: TaskpackSuite`) for multi-domain matrix resolution, pull-request comment routing, and stateless cross-cycle staged promotion. Add zero-LLM section-level role handoffs and signal-driven conditional rule loading across `TaskContract`, Pi preflight, and controller execution. Add deterministic post-run health diagnostics (`RunEval`), optional isolated 3-way baseline conflict pre-alignment, and trailing-newline formatting on all `@loopwright/memory` JSON writes.
+Extend Loopwright with four deterministic workflow and diagnostics capabilities across `@loopwright/core`, `@loopwright/agent-pi`, `@loopwright/controller`, `@loopwright/taskpack`, `@loopwright/github-app`, `@loopwright/cli`, and `@loopwright/memory`. Add a declarative `.loopwright/suite.yaml` manifest (`kind: TaskpackSuite`) for multi-domain matrix resolution, pull-request comment routing, and stateless cross-cycle staged promotion. Add zero-LLM section-level role handoffs and signal-driven conditional rule loading across `TaskContract`, Pi preflight, and controller execution. Add deterministic post-run health diagnostics (`RunEval`), optional isolated 3-way baseline conflict pre-alignment, and trailing-newline formatting on all `@loopwright/memory` JSON writes.
## Motivation
@@ -446,7 +446,7 @@ Tasks are vertical tracer bullets across five waves. Tasks without a transitive
- [x] **T11 ยท Connected documentation, Hugo site sync, and workspace verification**
Blocked by: T9, T10
Owns: `docs/**`, `site/**`, `README.md`, `.agents/skills/**`, `packages/cli/test/check-docs-rules.test.ts`, `packages/cli/test/docs-and-site.test.ts`
- Acceptance: Owning `docs/configuration/**`, `docs/operations/**`, `docs/contribute/**`, `docs/README.md`, `README.md`, and `.agents/skills/**` pages document Phase 2 contracts within line and STE100 limits. `npm run lint:docs`, `npm run site`, `npm test`, `npm run typecheck`, and `npm run lint` pass cleanly.
+ Acceptance: Owning `docs/configuration/**`, `docs/operations/**`, `docs/contribute/**`, `docs/README.md`, `README.md`, and `.agents/skills/**` pages document the suite, handoff, conditional-rule, `RunEval`, and baseline-alignment contracts within line and STE100 limits. `npm run lint:docs`, `npm run site`, `npm test`, `npm run typecheck`, and `npm run lint` pass cleanly.
Verify: `npm run build && npm run typecheck && npm run lint && npm run lint:docs && npm run site && npm test && node packages/cli/dist/main.js closure --verify-failures --json`
### Test Plan