From 8ad7b8ef7da1e6dd55f51250585eee01f2778914 Mon Sep 17 00:00:00 2001 From: thxCode Date: Mon, 23 Nov 2026 19:29:22 +0800 Subject: [PATCH 1/2] docs(specs): remove unexplained internal phase labels from specs - Rename phase2 suite handoff spec to multi-domain-suite-handoff-and-run-eval.md - Replace Phase 2, Phase 3, and Phase 3.3 labels with self-contained descriptions - Update docs/README.md module map and spec index links to match Signed-off-by: thxCode --- docs/README.md | 14 +++++++------- ...2-orchestration-and-extensible-contracts.md | 18 +++++++++--------- ...ecution-benchmark-gate-and-remote-runner.md | 6 +++--- ...multi-domain-suite-handoff-and-run-eval.md} | 6 +++--- 4 files changed, 22 insertions(+), 22 deletions(-) rename specs/{2026-11-21-phase2-suite-handoff-and-run-eval.md => 2026-11-21-multi-domain-suite-handoff-and-run-eval.md} (98%) diff --git a/docs/README.md b/docs/README.md index 6f6e105..d2c0324 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,7 +18,7 @@ - Use for: author task contracts and bind verification evidence - Aliases: contracts - Guides: [configuration/task-contract.md](configuration/task-contract.md), [contribute/identity.md](contribute/identity.md), [contribute/evidence.md](contribute/evidence.md) -- Specs: [Specification](../specs/2026-11-05-task-contracts-and-evidence.md), [Phase 2 Suites, Handoffs, and RunEval](../specs/2026-11-21-phase2-suite-handoff-and-run-eval.md) +- Specs: [Specification](../specs/2026-11-05-task-contracts-and-evidence.md), [Multi-Domain Suites, Handoffs, and RunEval](../specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md) - Code: [core](../packages/core/) - Related: [state](#persistent-state-store), [controller](#bounded-controller-and-cli) - Skills: [overview](../.agents/skills/loopwright-overview/SKILL.md) @@ -40,7 +40,7 @@ - Use for: run admitted Pi roles under isolation - Aliases: pi-adapter - Guides: [configuration/sandbox-backends.md](configuration/sandbox-backends.md), [contribute/pi-adapter.md](contribute/pi-adapter.md) -- Specs: [Specification](../specs/2026-11-05-isolated-pi-adapter.md), [Phase 2 Suites, Handoffs, and RunEval](../specs/2026-11-21-phase2-suite-handoff-and-run-eval.md) +- Specs: [Specification](../specs/2026-11-05-isolated-pi-adapter.md), [Multi-Domain Suites, Handoffs, and RunEval](../specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md) - Code: [agent-pi](../packages/agent-pi/) - Related: [state](#persistent-state-store), [controller](#bounded-controller-and-cli) - Skills: [overview](../.agents/skills/loopwright-overview/SKILL.md) @@ -51,7 +51,7 @@ - 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), [Phase 2 Suites, Handoffs, and RunEval](../specs/2026-11-21-phase2-suite-handoff-and-run-eval.md), [Hardware Execution and Remote Runner](../specs/2026-11-21-hardware-execution-benchmark-gate-and-remote-runner.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/) - Related: [contracts](#contracts-and-evidence), [state](#persistent-state-store) - Skills: [overview](../.agents/skills/loopwright-overview/SKILL.md), [step](../.agents/skills/loopwright-step/SKILL.md) @@ -62,7 +62,7 @@ - Use for: author taskpacks, run local taskpacks, and assess offline runner parity - Aliases: taskpacks - Guides: [walkthroughs/declarative-taskpack.md](walkthroughs/declarative-taskpack.md), [configuration/taskpack.md](configuration/taskpack.md), [operations/coding-agents.md](operations/coding-agents.md), [contribute/runner-taskpack.md](contribute/runner-taskpack.md) -- Specs: [Specification](../specs/2026-11-10-runner-taskpack-and-offline-parity.md), [Delegated Stepping](../specs/2026-11-14-delegated-role-stepping-and-multi-model-routing.md), [Self-Upgrade Dogfooding](../specs/2026-11-15-self-upgrade-dogfooding.md), [Taskpack 2.0](../specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md), [Decouple Taskpack and CAS Blob Pointers](../specs/2026-11-20-decouple-taskpack-and-cas-blob-pointers.md), [Phase 2 Suites, Handoffs, and RunEval](../specs/2026-11-21-phase2-suite-handoff-and-run-eval.md) +- Specs: [Specification](../specs/2026-11-10-runner-taskpack-and-offline-parity.md), [Delegated Stepping](../specs/2026-11-14-delegated-role-stepping-and-multi-model-routing.md), [Self-Upgrade Dogfooding](../specs/2026-11-15-self-upgrade-dogfooding.md), [Taskpack 2.0](../specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md), [Decouple Taskpack and CAS Blob Pointers](../specs/2026-11-20-decouple-taskpack-and-cas-blob-pointers.md), [Multi-Domain Suites, Handoffs, and RunEval](../specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md) - Code: [taskpack](../packages/taskpack/), [taskpack-runner](../packages/taskpack-runner/), [github-app](../packages/github-app/) - Related: [github-app](#github-app-and-action-control-plane), [controller](#bounded-controller-and-cli) - Skills: [overview](../.agents/skills/loopwright-overview/SKILL.md), [step](../.agents/skills/loopwright-step/SKILL.md) @@ -73,7 +73,7 @@ - Use for: review memory proposals and compact retained context - Aliases: memory - Guides: [contribute/memory.md](contribute/memory.md) -- Specs: [Specification](../specs/2026-11-11-reviewed-memory-and-cas-compaction.md), [Lightweight Lifecycle and GC](../specs/2026-11-19-lightweight-memory-lifecycle-and-gc.md), [Phase 2 Suites, Handoffs, and RunEval](../specs/2026-11-21-phase2-suite-handoff-and-run-eval.md) +- Specs: [Specification](../specs/2026-11-11-reviewed-memory-and-cas-compaction.md), [Lightweight Lifecycle and GC](../specs/2026-11-19-lightweight-memory-lifecycle-and-gc.md), [Multi-Domain Suites, Handoffs, and RunEval](../specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md) - Code: [memory](../packages/memory/) - Related: [controller](#bounded-controller-and-cli), [decisions](#system-one-decision-routing) - Skills: [overview](../.agents/skills/loopwright-overview/SKILL.md) @@ -84,7 +84,7 @@ - Use for: configure App intake, Action execution, and sandboxes - Aliases: github-app - Guides: [operations/github-action.md](operations/github-action.md), [operations/github-app.md](operations/github-app.md), [contribute/github-app-internals.md](contribute/github-app-internals.md) -- Specs: [Specification](../specs/2026-11-11-github-app-control-plane-and-declarative-taskpack.md), [OS Sandbox Backends](../specs/2026-11-11-native-os-sandbox-execution-backends.md), [Turnkey Execution](../specs/2026-11-13-turnkey-taskpack-execution-scope-and-output-modes.md), [Self-Upgrade Dogfooding](../specs/2026-11-15-self-upgrade-dogfooding.md), [Taskpack 2.0](../specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md), [Phase 2 Suites, Handoffs, and RunEval](../specs/2026-11-21-phase2-suite-handoff-and-run-eval.md) +- Specs: [Specification](../specs/2026-11-11-github-app-control-plane-and-declarative-taskpack.md), [OS Sandbox Backends](../specs/2026-11-11-native-os-sandbox-execution-backends.md), [Turnkey Execution](../specs/2026-11-13-turnkey-taskpack-execution-scope-and-output-modes.md), [Self-Upgrade Dogfooding](../specs/2026-11-15-self-upgrade-dogfooding.md), [Taskpack 2.0](../specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md), [Multi-Domain Suites, Handoffs, and RunEval](../specs/2026-11-21-multi-domain-suite-handoff-and-run-eval.md) - Code: [github-app](../packages/github-app/) - Related: [taskpacks](#declarative-taskpacks-and-runner-parity), [controller](#bounded-controller-and-cli) - Skills: [overview](../.agents/skills/loopwright-overview/SKILL.md) @@ -135,8 +135,8 @@ | [2026-11-19-lightweight-memory-lifecycle-and-gc.md](../specs/2026-11-19-lightweight-memory-lifecycle-and-gc.md) | Lightweight memory lifecycle, eager cleanup, and configurable GC | | [2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md](../specs/2026-11-19-taskpack-v2-orchestration-and-extensible-contracts.md) | Taskpack 2.0 orchestration, trust modes, preflight, and extensible contracts | | [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-phase2-suite-handoff-and-run-eval.md](../specs/2026-11-21-phase2-suite-handoff-and-run-eval.md) | Multi-domain `TaskpackSuite`, compact handoffs, conditional rules, `RunEval`, and baseline alignment | | [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 | ## All pages 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 From 5bac79dc5dd7d02b6ecc49a5ce0085f2351f7963 Mon Sep 17 00:00:00 2001 From: thxCode Date: Mon, 23 Nov 2026 19:29:22 +0800 Subject: [PATCH 2/2] ci(site): upgrade Hugo to 0.170.1 and remove deprecated syntax - Bump hugo-version from 0.152.2 to 0.170.1 in docs, site, and auto-sync workflows - Migrate site/hugo.toml mounts to files syntax and language keys to locale and label - Replace deprecated .Site.Data and LanguageCode/LanguageName calls across site templates - Update architecture baseline tool note to Hugo extended 0.170.1+ Signed-off-by: thxCode --- .github/workflows/auto-sync.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/site.yml | 2 +- docs/getting-started/architecture.md | 2 +- site/hugo.toml | 8 ++++---- site/layouts/_default/baseof.html | 4 ++-- site/layouts/partials/nav-label.html | 2 +- site/layouts/partials/nav-section.html | 4 ++-- site/layouts/partials/ordered-pages.html | 2 +- site/layouts/partials/site-selectors.html | 4 ++-- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/auto-sync.yml b/.github/workflows/auto-sync.yml index 14540c0..10fdfae 100644 --- a/.github/workflows/auto-sync.yml +++ b/.github/workflows/auto-sync.yml @@ -123,7 +123,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0 with: - hugo-version: '0.152.2' + hugo-version: '0.170.1' extended: true # Required by verify.sh runtime gates (packages/taskpack-runner python-bridge tests and Linux bwrap isolation). diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 273fb5b..b593b7c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -53,7 +53,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.152.2' + hugo-version: '0.170.1' extended: true - name: Install dependencies run: npm ci diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index ce54afd..1ebfb3a 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -60,7 +60,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.152.2' + hugo-version: '0.170.1' extended: true - name: Install dependencies run: npm ci diff --git a/docs/getting-started/architecture.md b/docs/getting-started/architecture.md index 312f55f..fe62edc 100644 --- a/docs/getting-started/architecture.md +++ b/docs/getting-started/architecture.md @@ -62,7 +62,7 @@ Deployment host qualification (`qualifyDeploymentHostProfile`) enforces these ba | Host platform | `darwin/arm64`, `linux/arm64`, `linux/x64` | Unlisted OS or architecture targets fail closed | | Storage and clock | Local POSIX filesystem; `<= 1000 ms` clock drift | Network mounts (`nfs`, `smb`, `fuse`, `sshfs`) and clock jumps fail closed | | Sandbox backend | Seatbelt, bubblewrap, Landlock, or Docker | Negotiated against taskpack `spec.sandbox` policy | -| Optional tools | Python `3.11+` (runner bridge); Hugo extended `0.152.2+` (docs site) | Needed only when exercising runner helpers or building `site/` | +| Optional tools | Python `3.11+` (runner bridge); Hugo extended `0.170.1+` (docs site) | Needed only when exercising runner helpers or building `site/` | ## Trust boundaries diff --git a/site/hugo.toml b/site/hugo.toml index 2ce28f6..c02bf49 100644 --- a/site/hugo.toml +++ b/site/hugo.toml @@ -6,8 +6,8 @@ defaultContentLanguage = "en" defaultContentLanguageInSubdir = false [languages.en] - languageCode = "en" - languageName = "English" + locale = "en" + label = "English" weight = 1 [params] @@ -65,7 +65,7 @@ defaultContentLanguageInSubdir = false [[module.mounts]] source = "../docs" target = "content/docs" - excludeFiles = ["README.md", "assets/**", "development.md", "contribute/**", "references/**"] + files = ["! README.md", "! assets/**", "! development.md", "! contribute/**", "! references/**"] [[module.mounts]] source = "../docs/assets" target = "static/docs/assets" @@ -84,4 +84,4 @@ defaultContentLanguageInSubdir = false [[module.mounts]] source = "../docs" target = "assets/doc-index" - includeFiles = ["README.md"] + files = ["README.md"] diff --git a/site/layouts/_default/baseof.html b/site/layouts/_default/baseof.html index 514b5b6..781053e 100644 --- a/site/layouts/_default/baseof.html +++ b/site/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + @@ -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 }}