Conversation
Add a daily agentic workflow (schema-sync) that monitors commits for changes to source files that affect AWF schemas and specs, then opens PRs to keep documentation in sync with implementation. Uses cache-memory to track the last processed commit SHA so that only new commits are analyzed on subsequent runs (first run processes the last 7 days). Also adds links to audit.schema.json, token-usage.schema.json, and schemas/README.md in the main README's Explore the docs section. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
🔥 Smoke Test: Copilot BYOK (Offline Mode)
Running in BYOK offline mode ( Overall: PASS — PR by @lpcox, reviewers:
|
|
Smoke Test Results ✅ GitHub MCP: Retrieved last 2 merged PRs Overall: PASS
|
🤖 Smoke Test Results
Overall: PARTIAL — MCP connectivity confirmed. Pre-computed step outputs ( PR: feat: add daily schema-sync workflow by @lpcox (reviewers:
|
|
Smoke Codex: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL —
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
There was a problem hiding this comment.
Pull request overview
Adds a new scheduled agentic workflow to keep published schema/spec documents aligned with implementation changes, and updates the README to surface the schema resources.
Changes:
- Added a new agentic workflow definition (
schema-sync.md) plus its compiled lock workflow (schema-sync.lock.yml) to review relevant source changes and open doc/schema update PRs. - Updated
README.mdto link to the audit/token-usage JSON schemas and the schemas README.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds “Explore the docs” links to schema artifacts under schemas/. |
| .github/workflows/schema-sync.md | Defines the new daily schema/spec sync agent workflow (prompt, tool config, safe outputs). |
| .github/workflows/schema-sync.lock.yml | Generated compiled workflow for GitHub Actions execution. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 5
| mode: gh-proxy | ||
| toolsets: [default, pull_requests] | ||
| cache-memory: true | ||
| bash: ["*"] |
| engine: copilot | ||
| strict: true | ||
| timeout-minutes: 20 | ||
| network: | ||
| allowed: | ||
| - defaults | ||
| - node | ||
| - github |
| ### 1. Load last-processed commit | ||
|
|
||
| Read `/tmp/gh-aw/cache-memory/schema-sync-state.json`. It stores: | ||
| ```json | ||
| { "last_commit_sha": "<sha>", "updated": "YYYY-MM-DD-HH-MM-SS" } | ||
| ``` | ||
|
|
||
| - If the file exists, use `last_commit_sha` as the starting point. | ||
| - If the file does NOT exist (first run), use commits from the **last 7 days**. | ||
|
|
| on: | ||
| schedule: daily on weekdays | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| issues: read |
| create-pull-request: | ||
| max: 1 | ||
| labels: [automation, schemas] | ||
| title-prefix: "docs: " |
Summary
Adds a daily agentic workflow (
schema-sync) that keeps AWF schemas and spec documents in sync with source code changes.What it does
src/config-file.ts,src/squid-config.ts,containers/api-proxy/token-tracker.js, etc.)cache-memory)Files affected
src/config-file.ts,src/types.ts,src/cli.tsdocs/awf-config.schema.json,docs/awf-config-spec.mdsrc/squid-config.ts,src/logs/log-parser.tsschemas/audit.schema.jsoncontainers/api-proxy/token-tracker.jsschemas/token-usage.schema.jsonREADME update
Added links to
schemas/audit.schema.json,schemas/token-usage.schema.json, andschemas/README.mdin the "Explore the docs" section.