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"