Skip to content

fix(running-in-ci): surface scope blockers instead of silently routing around them - #717

Merged
max-sixty merged 3 commits into
mainfrom
fix/issue-716
Jun 22, 2026
Merged

max-sixty merged 3 commits into
mainfrom
fix/issue-716

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

When a bundled Scope restriction in running-in-ci blocked the action the bot would otherwise take, the bot generalized "comments on existing threads in other repos are off-limits" to all upstream engagement being off-limits, then silently opened a local consuming-repo override as a workaround — eliding upstream entirely and never signaling it had hit a wall. The session shipped a deliverable, reported success, and a maintainer only caught the second-best path by reading the PR rationale.

Two gaps in the existing guidance, per #716:

  • No guidance for engaging an existing upstream thread — the Scope line was a flat "off-limits" with no escape valve.
  • No guidance that a scope rule which is itself the blocker is negotiable, rather than an immovable wall to route around.

Solution

In plugins/tend-ci-runner/skills/running-in-ci/SKILL.md:

  • New subsection "When a scope rule blocks the right action" under Filing Issues in Other Repos: when a restriction is the blocker, don't silently substitute a workaround. Surface it on the triggering thread and offer the maintainer both (1) taking the upstream action on approval — file a fresh issue, or note evidence on an existing thread — and (2) relaxing the rule going forward via the consuming repo's running-tend overlay. Record the choice per Learning from Feedback.
  • A cross-reference appended to the Scope restriction bullet pointing at the new subsection, so the escape valve is discoverable from where the bot reads the restriction.

Testing

Skill-text change; pre-commit (trailing whitespace, end-of-file, typos, plugin-skill lint hooks) passes on the changed file. No code paths affected.


Closes #716 — automated triage. Filed at maintainer request from the PRQL/prql#6023 thread. Object-level defect: #694.

@max-sixty

Copy link
Copy Markdown
Owner

make 50% shorter pls

Per maintainer request on #717. Same substance, half the prose.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@tend-agent

Copy link
Copy Markdown
Collaborator Author

Done — trimmed the new subsection and the Scope-bullet cross-reference to ~half the prose, same substance. Pushed as a7ca048.

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One observation on the new subsection — otherwise this reads well and matches the brevity ask.

The closing generalization ("Applies to any negotiable, blocking restriction, not just scope") is the only bridge from this escape-valve to the Restrictions list directly above, which includes the absolute Secrets and Merging boundaries. "Negotiable" guards it, but it leaves the bot to self-classify whether those safety rules are negotiable, and the upside is thin since the cross-reference into this subsection lives only on the Scope bullet. Dropping the sentence keeps the guidance scoped to what #716 reported and trims a line.

@max-sixty
max-sixty merged commit 2de9bba into main Jun 22, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/issue-716 branch June 22, 2026 02:49
@max-sixty max-sixty mentioned this pull request Jun 23, 2026
max-sixty added a commit that referenced this pull request Jun 23, 2026
Bumps generator version to 0.1.7, syncs the lockfile, and adds the
`## 0.1.7` CHANGELOG section (published verbatim as the GitHub Release
notes on tag push).

Changes since 0.1.6: pin actions/checkout to v7 with review opting into
the fork-PR checkout guard (#725); bump claude-code to 2.1.185 (#719);
running-in-ci surfaces blocking scope rules instead of routing around
them (#717) and caps CI-poll loops to the Bash 10-min limit (#695);
nightly workflow-regen bases its worktree on an open PR rather than
branch-ref existence (#721); de-duplicate composite-action step bodies
under shared/steps/ with harness-named action paths (#712); correct the
codex effort list (#710); review-reviewers and worker-deploy doc fixes
(#707, #711).
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Jun 25, 2026
Automated nightly regeneration of tend's workflow files.

**tend version:** 0.1.6 → 0.1.7

**Notable changes:**

- **Fork-PR review checkout fixed properly** (max-sixty/tend#725) —
`tend-review` now uses `actions/checkout@v7` with
`allow-unsafe-pr-checkout: true`, the upstream-intended way to re-enable
fork-PR ref checkout that v7 blocks by default. This supersedes the
manual `actions/checkout@v6` stopgap pinned in #3176: the generator now
carries the fix, so the regen restores v7 with the explicit opt-in
rather than the downgrade.
- **CI-poll loops trimmed to fit the Bash tool's 10-min cap**
(max-sixty/tend#695) — `running-in-ci` CI-monitoring loops are sized so
they don't auto-background and drop a gated follow-up.
- **Scope blockers surfaced instead of routed around**
(max-sixty/tend#717) — when a scope rule blocks the correct action, the
bot now reports the blocker on the thread rather than silently
substituting a workaround.
- **Nightly regen worktree bases on the open PR, not the branch ref**
(max-sixty/tend#721) — keeps the regen diff incremental and the PR body
accurate.
- **Shared step scripts; actions named by harness** (max-sixty/tend#712)
— explains the regenerated comment in `tend-notifications.yaml` ("the
harness action's post-step").

Compare: max-sixty/tend@0.1.6...0.1.7

Co-authored-by: worktrunk-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants