Add staged weekly reporting#113
Draft
juliamuiruri4 wants to merge 2 commits into
Draft
Conversation
Fan out read-only quest discovery into validated report artifacts and assemble deterministic parent and child issue previews without enabling schedules or repository writes.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Record the URL-segment and repository-path normalization guards enforced before report artifacts are accepted. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a Phase 2A, manual-only “weekly refresh” reporting layer that turns five quest discovery runs into deterministic, staged artifacts (validated per-quest JSON reports plus digest + issue-preview Markdown) without enabling repository writes or schedules.
Changes:
- Introduces
scripts/weekly-refresh-report.mjsto validate/materialize per-quest report artifacts, compute deterministic keys/markers, and assemble digest + issue-preview artifacts. - Adds a manual orchestrator workflow plus a reusable digest workflow to fan out quest runs and aggregate staged outputs.
- Updates validation/governance docs and config checks to enforce the staged reporting contract and pinned actions.
Show a summary per file
| File | Description |
|---|---|
| scripts/weekly-refresh-report.mjs | Implements week context, report schema validation/materialization, deterministic keys, and digest/preview generation. |
| scripts/validate-refresh-config.mjs | Extends repo policy validation to cover the new reporting/digest/orchestrator workflow contracts and action pins. |
| .github/workflows/weekly-refresh-orchestrator.yml | Manual-only orchestrator that computes week context, fans out to 5 quest workflows, then runs digest. |
| .github/workflows/weekly-refresh-digest.md | Reusable workflow to download staged quest artifacts and build/upload deterministic digest + previews. |
| .github/workflows/validate-content.yml | Broadens path filters to scripts/** and runs the weekly refresh reporting self-test in CI. |
| .github/workflows/validate-agentic-workflows.yml | Broadens path filters to scripts/** for workflow validation triggers. |
| .github/workflows/shared/report-output.md | Shared safe-output job definition to materialize and upload one validated quest report artifact. |
| .github/workflows/shared/discovery-policy.md | Updates shared policy to require structured emit_weekly_report output alongside a concise summary. |
| .github/workflows/discover-microsoft-foundry.md | Adds workflow_call inputs (week/prior), imports report-output, and updates Phase 2A reporting instructions. |
| .github/workflows/discover-foundry-toolkit.md | Adds workflow_call inputs (week/prior), imports report-output, and updates Phase 2A reporting instructions. |
| .github/workflows/discover-foundry-local.md | Adds workflow_call inputs (week/prior), imports report-output, and updates Phase 2A reporting instructions. |
| .github/workflows/discover-context-engineering.md | Adds workflow_call inputs (week/prior), imports report-output, and updates Phase 2A reporting instructions. |
| .github/workflows/discover-agentic-rag.md | Adds workflow_call inputs (week/prior), imports report-output, and updates Phase 2A reporting instructions. |
| .github/workflows/discover-microsoft-foundry.lock.yml | Recompiled locked workflow to include the new staged report output job and reusable inputs. |
| .github/workflows/discover-foundry-toolkit.lock.yml | Recompiled locked workflow to include the new staged report output job and reusable inputs. |
| .github/workflows/discover-foundry-local.lock.yml | Recompiled locked workflow to include the new staged report output job and reusable inputs. |
| .github/workflows/discover-context-engineering.lock.yml | Recompiled locked workflow to include the new staged report output job and reusable inputs. |
| .github/workflows/discover-agentic-rag.lock.yml | Recompiled locked workflow to include the new staged report output job and reusable inputs. |
| .github/agentic-refresh/tooling.json | Adds pinned download/upload-artifact action SHAs used by staged reporting workflows. |
| .github/agentic-refresh/report-contract.md | Documents the Phase 2A report artifact contract, outputs, and no-write boundary. |
| .github/agentic-refresh/README.md | Updates refresh overview and local validation commands for Phase 2A reporting. |
| .github/agentic-refresh/governance.md | Adds Phase 2A staged reporting guardrails and non-mutation constraints. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 23/23 changed files
- Comments generated: 7
- Review effort level: Low
Comment on lines
+662
to
+673
| function validateArtifact(report, quest, expected) { | ||
| const core = Object.fromEntries(coreKeys.map((key) => [key, report[key]])); | ||
| const errors = validateCoreReport(core, quest, expected); | ||
| const derived = addDerivedFields(core, quest); | ||
| if (stableJson(report.deduplication) !== stableJson(derived.deduplication)) { | ||
| errors.push("deduplication fields do not match deterministic values"); | ||
| } | ||
| if (stableJson(report.childIssuePreview) !== stableJson(derived.childIssuePreview)) { | ||
| errors.push("childIssuePreview does not match the deterministic preview"); | ||
| } | ||
| return errors; | ||
| } |
Comment on lines
+21
to
+26
| tools: | ||
| bash: | ||
| - "cat /tmp/gh-aw/agent/weekly-refresh-preview/*" | ||
| - "find /tmp/gh-aw/agent/weekly-refresh-preview *" | ||
| - "jq * /tmp/gh-aw/agent/weekly-refresh-preview/*" | ||
| - "wc * /tmp/gh-aw/agent/weekly-refresh-preview/*" |
Comment on lines
+1246
to
+1248
| needs: | ||
| - agent | ||
| - agent |
Comment on lines
+1246
to
+1248
| needs: | ||
| - agent | ||
| - agent |
Comment on lines
+1246
to
+1248
| needs: | ||
| - agent | ||
| - agent |
Comment on lines
+1246
to
+1248
| needs: | ||
| - agent | ||
| - agent |
Comment on lines
+1246
to
+1248
| needs: | ||
| - agent | ||
| - agent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Safety
0 8 * * 1cron remains documented for Phase 2B onlyStack
Validation
gh aw compile --strict --validate --no-check-update --purgenode scripts/weekly-refresh-report.mjs self-testnode scripts/validate-refresh-config.mjsnode scripts/validate-content-links.mjsmkdocs build --strict