From 50c07b850c2228358d23237d9545450cc7d9d3c7 Mon Sep 17 00:00:00 2001 From: Paul O'Reilly Date: Mon, 15 Jun 2026 00:18:43 +1200 Subject: [PATCH] feat(harness): add code-sonnet-direct composite + direct-push context Copies code-sonnet-direct/v1 (composite) and direct-push/v1 (context) from agent-runtimes local harnesses to the CRS-served framework repo. These are required by the sonnet-integrator task template used in the ralph coding loop. Without them, all integrator dispatches fail with "harness not found in any concepts repo: code-sonnet-direct/v1". --- .../composites/code-sonnet-direct/v1/harness.yaml | 11 +++++++++++ harnesses/contexts/direct-push/v1/harness.yaml | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 harnesses/composites/code-sonnet-direct/v1/harness.yaml create mode 100644 harnesses/contexts/direct-push/v1/harness.yaml diff --git a/harnesses/composites/code-sonnet-direct/v1/harness.yaml b/harnesses/composites/code-sonnet-direct/v1/harness.yaml new file mode 100644 index 0000000..b5b29d2 --- /dev/null +++ b/harnesses/composites/code-sonnet-direct/v1/harness.yaml @@ -0,0 +1,11 @@ +kind: composite +name: code-sonnet-direct +version: 1 +description: "Sonnet code agent — direct git operations to origin. No fork persistence. For integrators that push to origin main directly." + +layers: + - context: code-methodology/v1 + - context: anthropic-cloud-paul-oauth/v1 + - context: gitea-ssh/v1 + - context: agent-repo/v1 + - context: direct-push/v1 diff --git a/harnesses/contexts/direct-push/v1/harness.yaml b/harnesses/contexts/direct-push/v1/harness.yaml new file mode 100644 index 0000000..455954c --- /dev/null +++ b/harnesses/contexts/direct-push/v1/harness.yaml @@ -0,0 +1,14 @@ +kind: context +name: direct-push +version: 1 +description: "Direct-push mode: agent pushes to origin itself. Suppresses task-branch creation and empty-deliverable false-positives." +requires: [] +provides: [] + +env: + # Tell agent-repo finalize.sh to skip the task-branch push — the agent + # is responsible for pushing directly (e.g. git push origin main). + AGENT_SKIP_BRANCH_PUSH: "true" + # Suppress the empty-deliverable false-positive that fires when the agent's + # cherry-pick commit is already staged and git status --porcelain is clean. + AGENT_EMPTY_DELIVERABLE_CHECK: "false"