Skip to content

Add a read-only operational value report for workflows - #79042

Merged
mnkiefer merged 9 commits into
mainfrom
feat/value-report-core
Nov 18, 2026
Merged

mnkiefer merged 9 commits into
mainfrom
feat/value-report-core

Conversation

@mnkiefer

@mnkiefer mnkiefer commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator
  • Adds experimental gh aw value WORKFLOW: a read-only report over native delivery/adoption, recorded primary grades, Git snapshots or caller-supplied typed measurements. Freeze the goal and window policy before seeing cohort outcomes. Missing evidence is unavailable, not zero; only verified direct PR windows can contribute to the subtotal.

Checks

  • make fmt BASE_REF=origin/main and go test ./pkg/cli -run '^TestOperationalValue' -count=1
  • go test -tags integration ./cmd/gh-aw -run '^TestCommandGroupAssignments$' -count=1
  • make check-instruction-prefixes, bash .github/skills/operational-value-designer/tests/test.sh, npm --prefix docs run test:titles
  • make agent-report-progress BASE_REF=origin/main (passed; 366 workflow locks in sync)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mnkiefer mnkiefer self-assigned this Nov 18, 2026
Comment thread pkg/cli/operational_value_graders.go Resolved
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@mnkiefer
mnkiefer marked this pull request as ready for review November 18, 2026 14:09
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 14:09
@github-actions

github-actions Bot commented Nov 18, 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.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~10 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 18, 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.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

Generated by PR Specification Reviewer for #79042 · copilot · gpt56 · ~7 AIC · ⌖ ~1 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 18, 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 · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 18, 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 by Ponytail Reviewer for #79042 · codex · routed: gpt61 medium · ~9 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Design Decision Gate: ADR required

This PR adds about 3,877 lines in business-logic directories (pkg/, cmd/) and has no linked ADR. I drafted one from the diff: docs/adr/79042-read-only-value-report-over-retained-evidence.md.

Decision captured: gh aw value is an experimental, read-only report over retained evidence. It uses named Go evaluators, a frozen recipe and window policy, and treats missing evidence as unavailable, not zero.

Next action: review the draft, fill the [TODO: verify] items such as Deciders, and edit the alternatives and consequences as needed. Then change the status from Draft to Accepted. Please reference the ADR in the PR body.

This builds on ADR-55155 and ADR-60682.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: sonnet55 high · ~14 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷
Comment /review to run again

@github-actions github-actions Bot 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.

Specification review

Reviewed PR head 82e841a747e9319c36e3a908dc4d99209ba63c14 against docs/src/content/docs/specs/graders-specification.md v0.8.0, docs/src/content/docs/specs/operational-value-specification.md v1.0.0, and the affected unified-agent-session contract.

No actionable contract regressions or eligible synchronization proposals found. The changes preserve the existing grader/session boundaries, keep reporting read-only and outcome-blind, retain unavailable/zero/error distinctions, and document the new report-side evidence and attribution limits. Review was static; no tests or conformance scripts were run.

Generated by PR Specification Reviewer for #79042 · copilot · gpt50 · ~7 AIC · ⌖ ~1 AIC · ⊞ 1.7K
Comment /review-specs to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-11442dc7-ca9b-4421-8a0c-d18622fc604e","parents":[],"payload":{"id":"ldg-8b6b9f3f-6e50-49c8-afb1-cbd174f16106","operation":"append","value":{"finding_count":0,"head_sha":"82e841a747e9319c36e3a908dc4d99209ba63c14","outcome":"aligned"}},"sha":"sha256:0f91e340605f58e7e4314bb095481a85622f4acf442d1b3c34c078193cef0092","timestamp":"2026-11-18T14:19:59.002Z","type":"ledger_append","version":1}
History

@github-actions github-actions Bot 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.

Found two actionable correctness issues in the new operational-value report path.

Blocking findings

  • sanitizeGraderReasonForDisplay passes an odd argument count to strings.NewReplacer, causing a runtime panic when rendering a non-empty grader reason.
  • Run identity validation occurs before status/window filtering, so unrelated malformed records can abort valid reports.

The existing sensitive-output concern is already covered by an earlier review comment; I did not duplicate it.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~10 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again

Comment thread pkg/cli/operational_value_graders.go Resolved
Comment thread pkg/cli/operational_value_graders.go Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-882df961-8eb7-41c0-8e0f-ac65e9088329","parents":[],"payload":{"id":"ldg-ea44068f-9d6d-4adc-adc6-db90addc6316","operation":"append","value":{"finding_count":2,"head_sha":"82e841a747e9319c36e3a908dc4d99209ba63c14","outcome":"findings"}},"sha":"sha256:e8fec5f6c9dc371786b7e399cf8bf400528f5e167983e3bd5ea1c8820c2ef69a","timestamp":"2026-11-18T14:22:06.974Z","type":"ledger_append","version":1}
History

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@github-actions github-actions Bot 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.

Skills-Based Review 🧠

Applied /diagnosing-bugs and /tdd. Requesting changes because the grader-reason redaction does not remove secret values.

📋 Key Themes and Highlights

Key Themes

  • Redaction leak (blocking): sanitizeGraderReasonForDisplay swaps the key name but keeps the value, so token=ghp_ABC123 becomes token=[REDACTED]ghp_ABC123. I confirmed this by calling the function directly. The inline comment includes a regex fix.
  • JSON bypass: --json serializes raw grader message and error fields, so the text-only sanitizer never runs on that path.
  • Test gap: no test covers the sanitizer, so the leak passed the suite.

Positive Highlights

  • ✅ Recorded grades are read without regrading, aggregation, or mutation. The test checks that summary.json is unchanged.
  • ✅ Run identity checks (repository, host, canonical URL, attempt, clock) reject conflicting records explicitly.
  • ✅ Missing grades are reported as unavailable rather than zero.

Review Scope

The pre-fetched diff was capped at 3000 lines and cuts off after operational_value_graders_test.go, so the later JSON-number and evidence files were not reviewed. The gosec alert on operational_value_graders.go:196 is already covered by an existing thread and is not repeated here.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

Comment thread pkg/cli/operational_value_graders.go Resolved
Comment thread pkg/cli/operational_value_command.go Resolved
Comment thread pkg/cli/operational_value_graders.go Resolved
Comment thread pkg/cli/operational_value_graders.go Resolved
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@mnkiefer

Copy link
Copy Markdown
Collaborator Author

@copilot Resolve merge conflicts, address all open review comments and fix failing checks.

Comment thread pkg/cli/operational_value_graders.go Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Visual Regression Check

Captured the built docs at /gh-aw/ in three viewports. No authorized baseline is provisioned, so visual comparison is unavailable for every page, which is not the same as unchanged.

Page Viewport Capture Comparison
/gh-aw/ Mobile 375x812 captured unavailable
/gh-aw/ Tablet 768x1024 captured unavailable
/gh-aw/ Desktop 1440x900 captured unavailable

Accessibility

Partial snapshot review, not an exhaustive compliance check:

  • Heading hierarchy has one h1 and h2/h3 sections.
  • Images in the snapshot carry descriptive alt text.
  • Icon buttons such as Search and Menu have accessible names.
  • No unlabeled buttons or links surfaced in the first 60 matches I reviewed.

Console

No errors. Three to four WebGL GPU performance warnings (ReadPixels stalls) were logged. These are not accessibility issues.

Artifacts

Screenshots were saved in the sandbox under /tmp/gh-aw/agent/ (screenshot-mobile.png, screenshot-tablet.png, screenshot-desktop.png). They were not uploaded.

Cleanup: Browser closed and preview server stopped.

Generated by 👁️ Visual Regression Checker for #79042 · copilot · routed: haiku55 high · ~2 AIC · ⌖ ~1 AIC · ⊞ 3.3K · ◷

This comment was marked as duplicate.

@github-actions

Copy link
Copy Markdown
Contributor

Visual regression check: docs homepage

Preview served on loopback (127.0.0.1:4321). Checked page: /gh-aw/.

Page Viewport Capture Comparison
/gh-aw/ Mobile 375x812 captured unavailable
/gh-aw/ Tablet 768x1024 captured unavailable
/gh-aw/ Desktop 1440x900 captured unavailable

Visual comparison is unavailable: no baseline is provisioned for this workflow, so no page is reported as unchanged.

Accessibility (desktop snapshot only; mobile and tablet were not snapshotted)

  • One h1 is present, followed by h2 and h3 headings.
  • Images carry alt text, and the buttons and links I checked have names.
  • Four links (snapshot refs e396, e553, e588, e597) showed no inline name. I could not verify their accessible names because a follow-up inspection was denied.
  • Browser console: 0 errors, 4 warnings (not reviewed).

Screenshots were saved to /tmp/gh-aw/agent/ on the runner.

Generated by 👁️ Visual Regression Checker for #79042 · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~1 AIC · ⊞ 3.3K · ◷

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@copilot Resolve merge conflicts, address all open review comments and fix failing checks.

Updated the branch from main and pushed the review fixes in a79a8c56. gh aw value now omits free-form grader diagnostics from both text and JSON, removes the unused sanitizer that failed CGO lint, and filters out unfinished and known out-of-window runs before validating identity. The Go build, linters, and targeted and impacted tests passed. npm DNS failures blocked local docs and workflow-lock validation, and CodeQL timed out. Please re-trigger CI on the new head before merging.

…tion

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Visual regression check (partial)

Page Viewport Capture status Comparison status
/gh-aw/ Mobile 375x812 captured unavailable
/gh-aw/ Tablet 768x1024 captured unavailable
/gh-aw/ Desktop 1440x900 captured unavailable

Comparison: No authorized baseline is provisioned for this run, so no visual comparison was performed. Results are unavailable, not unchanged.

Accessibility: A snapshot was captured (page title GitHub Agentic Workflows, 0 console errors, 4 warnings). Analysis of the snapshot was blocked by a workflow tool permission denial, so no accessibility findings are reported.

Cleanup: Browser closed. Preview server stopped and no longer listed as active.

Generated by 👁️ Visual Regression Checker for #79042 · copilot · routed: haiku55 high · ~2 AIC · ⌖ ~1 AIC · ⊞ 3.3K · ◷

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check conclusion (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "2fef5f87b9bcd746583a5828be47b743bdf8aaf5",
  "kind": "requested",
  "schema_version": "1",
  "state": "09f8b34c3c6bccdc954b19af4438c85eea61639a46849e366ab71943c0c739b4",
  "work": [
    "51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mnkiefer
mnkiefer merged commit ad97a3d into main Nov 18, 2026
76 checks passed
@mnkiefer
mnkiefer deleted the feat/value-report-core branch November 18, 2026 16:42

Copilot AI commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged latest main in e8960f7; make merge-main and the final validation gate passed. The Visual Regression Checker ended via report_incomplete: no authorized baseline was provisioned, and accessibility-snapshot inspection was denied. No code-level regression was identified, so I did not make unrelated workflow changes or trigger CI.

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.

5 participants