Skip to content

Publish dispatched validation status - #3

Merged
adambenhassen merged 2 commits into
mainfrom
agent/devops/refresh-dispatch-base
Oct 3, 2026
Merged

adambenhassen merged 2 commits into
mainfrom
agent/devops/refresh-dispatch-base

Conversation

@adambenhassen

@adambenhassen adambenhassen commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

The workflow resolves and pins the live target tip, requires the requested PR head SHA, and validates the merge tree. A separate publisher attaches the PR validation / dispatched-merge commit status to that exact head for default-branch manual dispatches.

The candidate-running validation job keeps read-only permissions. The isolated publisher has only contents: read, pull-requests: read, and statuses: write; it has no checkout, artifacts, cache, or action steps. It independently verifies the live PR repository, open state, head, base branch, and current target tip before writing. It reports success only when content validation and head verification succeed, and failure when they fail while revision binding remains valid. Cancelled, skipped, stale, invalid, API-error, non-default-branch, and non-dispatch runs cannot publish success. Publication is serialized per PR, and the status links the trusted run attempt.

Accepted residual risks: repository writers can forge statuses in their own workflows; the default branch can advance between the currency check and status write; and candidate code can change its own validator and fixtures. Rollback by reverting the publisher job. An erroneous immutable status can be superseded with error in the same context. This change does not alter branch protection.

Verification:

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -v (20 passed)
  • actionlint .github/workflows/pr-validation.yml
  • PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate_brand_assets.py
  • git diff --check

Closes MAIN-1209

@adambenhassen
adambenhassen marked this pull request as draft October 3, 2026 21:39
@adambenhassen adambenhassen changed the title MAIN-1209: resolve current PR target SHA Publish dispatched validation status Oct 3, 2026
@adambenhassen
adambenhassen marked this pull request as ready for review October 3, 2026 21:54
@adambenhassen
adambenhassen merged commit 6ce8d30 into main Oct 3, 2026
6 checks passed
@adambenhassen
adambenhassen deleted the agent/devops/refresh-dispatch-base branch October 3, 2026 22:00
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.

1 participant