Problem: run cda38e26 (working issue #806) opened pull request #819 on ProAgentStore/platform, even though this repo's whole workflow is direct-push-to-main with no branches and no PRs. The objective text told the run not to do this, and it did anyway, apparently under pressure near its iteration limit.
Relying on the objective's prose to prevent this every single run is fragile - it already failed once. This should be enforced structurally.
Requested feature: a per-repo (or per-instance) flag, e.g. repo.disallowPullRequests, that when set causes the platform to reject/block the github_create_pull_request tool call outright (or intercept the underlying git push of a non-default branch intended for a PR) with a clear error the engine can read and recover from, rather than letting the PR get created and only catching it in a later cleanup run.
Acceptance criteria:
- A repo can be flagged as direct-push-only via console or MCP tool.
- When flagged, an attempt to create a pull request via the connector's github tool is refused with an explanit error rather than silently succeeding.
- The refusal message tells the engine what to do instead (push directly to the default branch once checks pass).
- Existing repos default to unflagged (no behavior change) unless explicitly set.
- Tests covering: flagged repo blocks PR creation, unflagged repo is unaffected.
Motivation: ProAgentStore/platform itself is direct-push-only, and this failure mode (a run opening a PR nobody asked for, requiring a manual cleanup pass) has already happened once and cost an extra continuation run to fix.
Problem: run cda38e26 (working issue #806) opened pull request #819 on ProAgentStore/platform, even though this repo's whole workflow is direct-push-to-main with no branches and no PRs. The objective text told the run not to do this, and it did anyway, apparently under pressure near its iteration limit.
Relying on the objective's prose to prevent this every single run is fragile - it already failed once. This should be enforced structurally.
Requested feature: a per-repo (or per-instance) flag, e.g. repo.disallowPullRequests, that when set causes the platform to reject/block the github_create_pull_request tool call outright (or intercept the underlying git push of a non-default branch intended for a PR) with a clear error the engine can read and recover from, rather than letting the PR get created and only catching it in a later cleanup run.
Acceptance criteria:
Motivation: ProAgentStore/platform itself is direct-push-only, and this failure mode (a run opening a PR nobody asked for, requiring a manual cleanup pass) has already happened once and cost an extra continuation run to fix.