diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 69e4161..4c3be78 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -20,7 +20,7 @@ { "name": "agentic-engineering", "description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md", - "version": "7.9.0", + "version": "7.9.1", "source": "./plugins/agentic-engineering" }, { diff --git a/plugins/agentic-engineering/.claude-plugin/plugin.json b/plugins/agentic-engineering/.claude-plugin/plugin.json index 0696822..5183c48 100644 --- a/plugins/agentic-engineering/.claude-plugin/plugin.json +++ b/plugins/agentic-engineering/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "agentic-engineering", "description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md", - "version": "7.9.0", + "version": "7.9.1", "author": { "name": "devantler-tech", "url": "https://github.com/devantler-tech" diff --git a/plugins/agentic-engineering/.codex-plugin/plugin.json b/plugins/agentic-engineering/.codex-plugin/plugin.json index 080fe9c..d9d51cd 100644 --- a/plugins/agentic-engineering/.codex-plugin/plugin.json +++ b/plugins/agentic-engineering/.codex-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "agentic-engineering", "description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md", - "version": "7.9.0", + "version": "7.9.1", "author": { "name": "devantler-tech", "url": "https://github.com/devantler-tech" diff --git a/plugins/agentic-engineering/CHANGELOG.md b/plugins/agentic-engineering/CHANGELOG.md index a334e25..2019ceb 100644 --- a/plugins/agentic-engineering/CHANGELOG.md +++ b/plugins/agentic-engineering/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog — `agentic-engineering` +## 7.9.1 — 2026-11-23 + +**Fixed** — the `portfolio-surveyor` call-shape rule now says that `--jq` runs once per page. A +result that needs every page at once pipes `--paginate --slurp` into the allowlisted `jq`, because +`gh` refuses `--slurp` together with `--jq`. The rule told runs to reduce in-band with `--paginate` +and `--jq` but never mentioned this, and runs that wanted one cross-page result kept sending the +rejected combination: 98 failed calls in 33 of 54 sessions on 2026-11-22 alone. + ## 7.9.0 — 2026-11-22 **Added** — a checkout of a PR's repository becomes one of the session's folders before the PR is diff --git a/plugins/agentic-engineering/agents/portfolio-surveyor.agent.md b/plugins/agentic-engineering/agents/portfolio-surveyor.agent.md index ca7dcab..44c2ab0 100644 --- a/plugins/agentic-engineering/agents/portfolio-surveyor.agent.md +++ b/plugins/agentic-engineering/agents/portfolio-surveyor.agent.md @@ -70,7 +70,9 @@ dimension** — report the gap, never guess a login, a prefix, a marker literal, leading program that is neither a forge command nor a reviewed helper this definition names are all denied, so an ordinary shell idiom silently costs the read. Emit exactly one forge command per call and reduce it in-band with `--paginate` and `--jq`, or a pipe into the allowlisted read-only - filters; never redirect to a scratch file. Sweep repositories with one call per repository or one + filters; never redirect to a scratch file. `--jq` runs once per page, so a result that needs every + page at once pipes `--paginate --slurp` into the allowlisted `jq` instead. `gh` refuses `--slurp` + together with `--jq`. Sweep repositories with one call per repository or one org-wide search, never a `for` loop. Take every timestamp from a payload you already read, never from `date`. Select with `--jq` rather than `grep -oE` or `xargs`. A shape denial is a lost read that reads exactly like no evidence: mark the affected evidence `QUERY-UNKNOWN` and reissue in the diff --git a/plugins/agentic-engineering/resources/provider-neutral.desired-state.json b/plugins/agentic-engineering/resources/provider-neutral.desired-state.json index 929c728..61c0eb3 100644 --- a/plugins/agentic-engineering/resources/provider-neutral.desired-state.json +++ b/plugins/agentic-engineering/resources/provider-neutral.desired-state.json @@ -76,7 +76,7 @@ "portfolio-surveyor": { "enabled": true, "mode": "delegated-read-only", - "definitionSha256": "e3cf20337a2a1e3d1378e40e880a19cf279fcbd7cd419134d26b9e0f3f573c33" + "definitionSha256": "6e34f00c1eb198df7b63ebbc7c74b80c459ea89a6bec23cb3346cd12f28b3d12" }, "agent-improver": { "enabledWhen": "Both optional consumer contract sections are present", diff --git a/scripts/validate-manifests.sh b/scripts/validate-manifests.sh index 239a7ad..3f63535 100755 --- a/scripts/validate-manifests.sh +++ b/scripts/validate-manifests.sh @@ -781,7 +781,7 @@ validate_desired_state_resources() { # Pinned separately from the ownership row above: a bare-token search passes while the # merged-PR channel silently loses the field, since the two rows carry the same token. local portfolio_survey_comment_disclosure_row="CANDIDATE-MAINTAINER-COMMENT # (draft?, merged?) — disclosure=" - local portfolio_survey_call_shape_contract="**Every forge read is one command in one call.** The read-only guard refuses on shape before it ever inspects intent: output redirection, \`;\`, \`&\`, \`&&\`, a newline, command substitution, and any leading program that is neither a forge command nor a reviewed helper this definition names are all denied, so an ordinary shell idiom silently costs the read. Emit exactly one forge command per call and reduce it in-band with \`--paginate\` and \`--jq\`, or a pipe into the allowlisted read-only filters; never redirect to a scratch file. Sweep repositories with one call per repository or one org-wide search, never a \`for\` loop. Take every timestamp from a payload you already read, never from \`date\`. Select with \`--jq\` rather than \`grep -oE\` or \`xargs\`. A shape denial is a lost read that reads exactly like no evidence: mark the affected evidence \`QUERY-UNKNOWN\` and reissue in the admitted shape — never work around the guard." + local portfolio_survey_call_shape_contract="**Every forge read is one command in one call.** The read-only guard refuses on shape before it ever inspects intent: output redirection, \`;\`, \`&\`, \`&&\`, a newline, command substitution, and any leading program that is neither a forge command nor a reviewed helper this definition names are all denied, so an ordinary shell idiom silently costs the read. Emit exactly one forge command per call and reduce it in-band with \`--paginate\` and \`--jq\`, or a pipe into the allowlisted read-only filters; never redirect to a scratch file. \`--jq\` runs once per page, so a result that needs every page at once pipes \`--paginate --slurp\` into the allowlisted \`jq\` instead. \`gh\` refuses \`--slurp\` together with \`--jq\`. Sweep repositories with one call per repository or one org-wide search, never a \`for\` loop. Take every timestamp from a payload you already read, never from \`date\`. Select with \`--jq\` rather than \`grep -oE\` or \`xargs\`. A shape denial is a lost read that reads exactly like no evidence: mark the affected evidence \`QUERY-UNKNOWN\` and reissue in the admitted shape — never work around the guard." local portfolio_survey_classifier_argv_contract="**Invoke the classifier only in its flag form, by its resolved installed path:** \`/scripts/classify-default-branch-ci-runs.sh --repo OWNER/REPO --branch BRANCH --head-sha FULL_SHA\`. The helper and the read-only guard accept nothing else: the guard admits only that exact installed sibling path — never a bare basename, a \`PATH\` lookup, or a relative \`../scripts/\` form — and a positional \`OWNER/REPO BRANCH SHA\` is denied as \`not the guarded remote-mode shape\` while the helper itself exits 2 on it, so every executable invocation must carry the resolved path and all three flags." if [ -d plugins/agentic-engineering ]; then diff --git a/scripts/validate-manifests.test.sh b/scripts/validate-manifests.test.sh index aa22339..974cde5 100755 --- a/scripts/validate-manifests.test.sh +++ b/scripts/validate-manifests.test.sh @@ -784,7 +784,7 @@ Authenticated maintainer controls are mandatory evidence, not optional enrichmen An incomplete candidate can never be classified clean: no `CLEAR`, `MERGE-READY`, `REVIEW-READY`, or "no signal". -**Every forge read is one command in one call.** The read-only guard refuses on shape before it ever inspects intent: output redirection, `;`, `&`, `&&`, a newline, command substitution, and any leading program that is neither a forge command nor a reviewed helper this definition names are all denied, so an ordinary shell idiom silently costs the read. Emit exactly one forge command per call and reduce it in-band with `--paginate` and `--jq`, or a pipe into the allowlisted read-only filters; never redirect to a scratch file. Sweep repositories with one call per repository or one org-wide search, never a `for` loop. Take every timestamp from a payload you already read, never from `date`. Select with `--jq` rather than `grep -oE` or `xargs`. A shape denial is a lost read that reads exactly like no evidence: mark the affected evidence `QUERY-UNKNOWN` and reissue in the admitted shape — never work around the guard. +**Every forge read is one command in one call.** The read-only guard refuses on shape before it ever inspects intent: output redirection, `;`, `&`, `&&`, a newline, command substitution, and any leading program that is neither a forge command nor a reviewed helper this definition names are all denied, so an ordinary shell idiom silently costs the read. Emit exactly one forge command per call and reduce it in-band with `--paginate` and `--jq`, or a pipe into the allowlisted read-only filters; never redirect to a scratch file. `--jq` runs once per page, so a result that needs every page at once pipes `--paginate --slurp` into the allowlisted `jq` instead. `gh` refuses `--slurp` together with `--jq`. Sweep repositories with one call per repository or one org-wide search, never a `for` loop. Take every timestamp from a payload you already read, never from `date`. Select with `--jq` rather than `grep -oE` or `xargs`. A shape denial is a lost read that reads exactly like no evidence: mark the affected evidence `QUERY-UNKNOWN` and reissue in the admitted shape — never work around the guard. **Invoke the classifier only in its flag form, by its resolved installed path:** `/scripts/classify-default-branch-ci-runs.sh --repo OWNER/REPO --branch BRANCH --head-sha FULL_SHA`. The helper and the read-only guard accept nothing else: the guard admits only that exact installed sibling path — never a bare basename, a `PATH` lookup, or a relative `../scripts/` form — and a positional `OWNER/REPO BRANCH SHA` is denied as `not the guarded remote-mode shape` while the helper itself exits 2 on it, so every executable invocation must carry the resolved path and all three flags. EOF @@ -1190,6 +1190,13 @@ sed 's/no .CLEAR., .MERGE-READY./no MERGE-READY/' \ check_fail "portfolio surveyor must fail closed for incomplete ownership-unverified PRs" \ "portfolio-surveyor must preserve candidate-scoped fail-closed dispositions" "$d" +d=$(fresh); make_desired_state "$d" alpha +sed 's/ .gh. refuses .--slurp. together with .--jq.\.//' \ + "$d/plugins/alpha/agents/portfolio-surveyor.agent.md" > "$d/tmp" \ + && mv "$d/tmp" "$d/plugins/alpha/agents/portfolio-surveyor.agent.md" +check_fail "portfolio surveyor must say gh refuses --slurp with --jq" \ + "portfolio-surveyor must state the guard's admitted call shape" "$d" + d=$(fresh); make_desired_state "$d" alpha printf '\nSuccessful batches may be discarded and rerun.\n' \ >> "$d/plugins/alpha/agents/portfolio-surveyor.agent.md"