Skip to content

Add daily Responsible AI specification review with prepared background - #77468

Merged
pelikhan merged 3 commits into
mainfrom
pelikhan/daily-rai-review
Nov 13, 2026
Merged

pelikhan merged 3 commits into
mainfrom
pelikhan/daily-rai-review

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Why

Add a recurring, feature-scoped Responsible AI review of safe-output specifications and compiler threat rules, without making each run rediscover Microsoft's RAI framework.

Approach

  • Rotate through exactly one current safe-output type or compiler threat rule using a validated cache cursor. The current catalog contains 77 features.
  • Load a required, repository-local background reference covering Microsoft's six RAI principles, public source provenance, impact assessment, gh-aw-specific failure modes, and an evidence and risk rubric. Daily runs do not refresh or research the framework.
  • Preserve the analysis as an artifact and fix up to the three highest-ranked confirmed, nonduplicate issues in one draft PR. Bound writable paths, require focused regression evidence, retain human review, and exclude generated lock YAML from those remediation PRs.
  • Report blockers explicitly and use no-op outcomes rather than inventing findings or creating report-only PRs.

The new workflow's compiled lock is included so GitHub Actions can execute it after merge; exclude-lock-yml: true applies to the remediation PRs it creates. This is an engineering assessment framework, not a Microsoft compliance certification.

Validation

  • Strict compilation succeeds without warnings for the new workflow, and repeated compilation produces identical output.
  • make recompile successfully compiled all 367 workflows.
  • Checked feature discovery and round-robin cold-start, wraparound, removed-key, and full-cycle cases; verified the required background import, six principles, output limits, and lock exclusion.
  • Markdown formatting checks pass.
  • make agent-report-progress reached the repository-wide drift check; impacted Go tests were skipped because no Go files changed. The gate remains blocked by pre-existing drift in .github/workflows/ci-front-door-researcher.lock.yml. That unrelated file is unchanged in this PR.

No workflow was dispatched.

Prepare source-cited RAI background for recurring use and deliver the top three validated fixes through constrained draft pull requests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 13, 2026 14:30
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 14:30
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

Generated by PR Specification Reviewer for #77468

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.6K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from PR Code Quality Reviewer · gpt56 · ~4 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

🔎 Code quality review by PR Code Quality Reviewer

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 182 · ◷

Generated by Ponytail Reviewer for #77468

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan merged commit 7cde89c into main Nov 13, 2026
6 checks passed
@pelikhan
pelikhan deleted the pelikhan/daily-rai-review branch November 13, 2026 14:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Critical security gaps allow agent-modified setup code to execute with host credentials and secret-flagged output to be published before human review.

6 open issues
What changed in this PR

Adds a recurring Responsible AI review to gh-aw’s repository automation, examining one safe-output type or compiler threat rule per run using a prepared reference.

Changes:

  • Adds the daily review workflow and its compiled GitHub Actions lock.
  • Defines six-principle assessments, evidence requirements, analysis artifacts, and constrained draft-PR remediation.
  • Refreshes workflow inventory and model-alias documentation.
File Description
docs/​src/​content/​docs/​reference/​model-tables.md Updates detection and evaluation alias documentation.
docs/​src/​content/​docs/​agent-factory-status.mdx Refreshes workflow entries, names, and displayed schedules.
.github/​workflows/​daily-rai-spec-review.md Defines feature rotation, review criteria, reporting, and bounded remediation.
.github/​workflows/​daily-rai-spec-review.lock.yml Provides executable scheduling, sandbox, evaluation, and publication jobs.
.github/​aw/​responsible-ai.md Supplies prepared principles, source provenance, and an evidence-and-risk rubric.

Review effort: Max (dynamic)

Comment on lines +1 to +3
---
description: Prepared Microsoft Responsible AI background and gh-aw-specific assessment rubric for recurring specification reviews.
---
persist-credentials: false
- name: Setup Scripts
id: setup
uses: ./actions/setup
- name: Install locked JavaScript test dependencies
working-directory: actions/setup/js
run: npm ci --ignore-scripts --no-audit --no-fund
safe-outputs:

Read `/tmp/gh-aw/cache-memory/rai-spec-review/rotation.json`, whose only fields are `version` (exactly `1`) and `last_feature` (a key matching `^(safe-output:[a-z][a-z0-9_]*|compiler-threat:CTR-[0-9]{3})$`). Reject duplicate JSON keys, unknown fields, wrong types, oversized files (over 4 KiB), or invalid versions. A missing or invalid cache is a reported cold start, not a clean bill of health.

Select the first current key lexicographically greater than `last_feature`, wrapping to the first key when necessary. On a cold start, select the first key. This also handles a removed feature without relying on a stale index. Immediately persist the selected key in the same schema before investigation, including on later no-op, duplicate, or blocked outcomes. If cache persistence fails, report the error with `report_incomplete` and stop. Cache eviction may restart a cycle; do not claim uninterrupted coverage. If either source is missing, unreadable, or yields no features, use `report_incomplete` instead of silently narrowing the catalog.

## 5. Preserve the analysis and deliver

Write `/tmp/gh-aw/agent/rai-spec-review.md` and upload it with `upload_artifact` on every completed review, including a no-finding or duplicate result. Use the same report to preserve partial evidence on a blocked run, explicitly marked incomplete. If upload fails, report that failure rather than claiming the analysis was preserved.

When there are validated changes, commit only the intended allowed files locally and call `create_pull_request` once with `title`, `body`, and the local `branch`. Do not push or create a PR through git, gh, or GitHub write APIs. The PR must summarize the selected feature, deduplication key, top findings and their RAI principles, fixes, regression evidence, remaining risks, and any blocked selected fixes. Include the six-principle assessment in collapsible details and link the run's analysis artifact. Use `###` or lower for headings in generated PR bodies. The PR remains a draft for human review; never merge it.

After a complete review with no novel actionable findings or only already covered findings, call `noop` with the selected feature and reason. Do not create a report-only or empty PR. If missing data, tooling, failed validation, or policy uncertainty blocks the requested work, use `report_incomplete` with the exact blocker rather than a success-shaped no-op.
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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