Skip to content

lane-line: report success with a notice for bot-authored PRs instead of skipping (ruling D-7 a) - #814

Merged
brettheap merged 1 commit into
mainfrom
fix/lane-line-bot-authors-report-success
Sep 8, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/lane-line-bot-authors-report-success

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Refs #656

Ruling D-7 (a) (2026-09-08, oxF #656 comment ~13:4xZ): the required check
lane-line currently SKIPS pull requests authored by bots (e.g. custody PR
#176, authored by openxfactory[bot]). The merge-approval envelope's
require_all_checks: true reads a skipped check-run conclusion as not
green, so every bot-authored candidate parks with
required_check_not_green: check-run 'lane-line' concluded 'skipped'
(approval runs 34227891490, 34229369636).

This PR keeps the check-run NAME byte-identical (lane-line) and moves the
existing bot-author exemption from the job-level if: into a first step
that detects the bot author with the exact same predicate
(github.event.pull_request.user.type == 'Bot') already in use. When the
predicate matches, that step reports success and emits an
::notice::lane-line: bot-authored pull request (<login>) — exempt from the Lane: line requirement; reporting success so the merge-approval envelope's all-checks rule can read it, and the real lane-line check step is skipped
via that step's output. Human- and App-authored PRs keep the exact same
lane-line regex check and failure messages they have today — nothing about
their behaviour changed.

No other workflow, envelope, or ruleset touched. grep -rn lane-line tests/ found no test pinning this workflow, so no test file needed
updating.

PR author steps that run check-run conclusion
Human Detect bot-authored PRs (exempt=false) -> The first non-empty body line names the lane (regex check) success if the body opens with Lane: <name>, else failure (same messages as today)
GitHub App (user.type != Bot) same as Human — the exemption predicate is unchanged, so any author whose user.type is not Bot is treated exactly as before same as Human
Bot (user.type == Bot, e.g. openxfactory[bot]) Detect bot-authored PRs only (exempt=true, emits the ::notice:: above); The first non-empty body line names the lane step is skipped via if: steps.author.outputs.exempt != 'true' success (was skipped before this change)

Verification:

  • actionlint .github/workflows/lane-line.yml — clean.
  • python3 -m pytest -q tests/ideation-dashboard tests/doc-health
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict

Asking for Brett's word before this lands — not merging or enabling
auto-merge here.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yt7feEjmZ3SPeU2wsBDDJ

…of skipping

Ruling D-7 (a), oxF #656 (2026-09-08): the required check `lane-line`
skipped bot-authored pull requests via a job-level `if:`, and the
merge-approval envelope's `require_all_checks: true` reads a `skipped`
check-run conclusion as not green — parking every bot-authored candidate
(custody PR #176; approval runs 34227891490, 34229369636). Move the same
bot-author exemption predicate into a first step that reports success
with a `::notice::` and gates the real lane-line check on that step's
output, so the check-run always concludes instead of being skipped. The
check-run name and the human/App-authored behaviour are unchanged.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_018Yt7feEjmZ3SPeU2wsBDDJ
Copilot AI lite review requested due to automatic review settings September 8, 2026 14:44

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is narrowly scoped to workflow control flow, preserves the existing lane-line validation behavior for non-bot PRs, and fixes a concrete required-check/ruleset interaction.

Pull request overview

This PR updates the lane-line required check workflow so it no longer concludes as skipped for bot-authored pull requests, which previously blocked the merge-approval envelope’s require_all_checks: true rule from treating those candidates as green.

Changes:

  • Removes the job-level bot exemption (if:) so the lane-line job always runs and always produces a conclusion.
  • Adds an initial step that detects bot authors via the existing predicate (github.event.pull_request.user.type == 'Bot'), emits a ::notice::, and sets an exempt output.
  • Gates the existing lane-line regex validation step on steps.author.outputs.exempt != 'true', preserving unchanged behavior for non-bot PRs.
File summaries
File Description
.github/workflows/lane-line.yml Ensures the required lane-line check reports success (with a notice) for bot-authored PRs instead of concluding skipped, while keeping the existing lane regex enforcement unchanged for others.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@brettheap
brettheap merged commit c991c0f into main Sep 8, 2026
10 checks passed
brettheap added a commit that referenced this pull request Sep 9, 2026
…1/5.2 ticked on the D-2 evidence) (#832)

Path A PR-5, the last of the 2026-09-06 plan memo's sequence, on Brett Heap's word "merge pr-5 when green" (2026-09-09). Authority: his ruling of 2026-09-05T23:38Z "rule path A, 4.5 is a deferred successor" (#656) and ruling D-2 (the live exercise).

- tasks.md: § 4.4 / § 5.1 / § 5.2 ticked on the D-2 evidence (three `- [ ]` heads removed, every ratified sentence kept byte-identical); § 4.5 untouched as a DEFERRED SUCCESSOR (#714 → 3d1b8cc).
- Archived WITH promotion via `scripts/proposal-support.py . archive --date 2026-09-09` under the pinned @fission-ai/[email protected] (never a bare `openspec archive`); origin retained (declaration unchanged since da1b0e9); six frozen files R100.
- Promoted: `openspec/specs/ideation-intent-plane/spec.md` NEW (7 requirements / 11 scenarios, every block byte-identical to the archived delta) and `openspec/specs/document-lifecycle/spec.md` 18 → 19 requirements ("Gates happen on main"); the new capability's `## Purpose` written by this act (no SHALL; replaces the CLI's TBD stub). openspec/specs 60 → 61; floor regeneration OWED (GRACED covered-pending 1, `created_by_candidate`), `contracts/review-lane-floor-snapshot.yaml` deliberately not edited here.
- README OpenSpec Records row → archived; sweep-ledger row re-seeded with the tool (`--seed-ledger --moved-by '#832'`, one line moved); no thirteenth archive-date disposition.
- Evidence (merged + green): #718 d179cc0, #727 07624d5, #735 6d3237e, xFactory #304 b2db7e47, #313 ddd19650, #345 90435875, #781 450bb60, #808 2ef7d8c, #814 c991c0f, #816 8924230, xFactory #362 119280a8, #830 202c170, xFactory #369 c2313277; D-2 live exercise: act B refusal 36d07ec, act A apply e970dfe, first autonomous merge #176 → 7681e40 (codexfactory[bot] APPROVED 2026-09-09T06:37:22Z).
- Copilot round 1: one factual finding taken (a missing "where" in Purpose); two wording findings answered and resolved.

Refs #656 (stays OPEN). Rule 6 LANDING window observed.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012LiNG5Ume1boEfxSNeCmpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants