Conversation
- Remove last_diagram from architecture-state.json cache - Add check for scratchpad/architecture.md existence with content as part of noop condition - Recompile lock file Agent-Logs-Url: https://github.com/github/gh-aw/sessions/6211b5ec-785b-4942-800b-e7903d989608 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix caching issue in daily architecture diagram workflow
fix: use scratchpad/architecture.md as cache source of truth for architecture diagram
Apr 25, 2026
pelikhan
approved these changes
Apr 25, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the daily architecture diagram generator workflow spec so the cache no-op behavior depends on the presence of a valid diagram in scratchpad/architecture.md, rather than relying on a cached last_diagram field.
Changes:
- Remove
last_diagramfrom the documentedarchitecture-state.jsonschema (cache now storeslast_commitandpackage_maponly). - Update the no-op gate to require
scratchpad/architecture.mdto exist and contain diagram content. - Update the documented cache write example to match the new schema.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/daily-architecture-diagram.md | Aligns the workflow spec’s cache schema and no-op logic with scratchpad/architecture.md as the diagram source of truth. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
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.
The architecture diagram workflow could incorrectly noop even when
scratchpad/architecture.mdwas empty or stale, because the noop gate only checkedlast_commitin the cache — not whether the diagram file actually existed with content.Changes
last_diagramfromarchitecture-state.json— cache now stores onlylast_commitandpackage_map; the diagram lives inscratchpad/architecture.mdscratchpad/architecture.md— requires the file to exist with diagram content in addition to no Go file changes sincelast_commitarchitecture-state.jsonno longer includeslast_diagramfieldBefore
{ "last_commit": "<sha>", "last_diagram": "<full ASCII diagram>", "package_map": { ... } }After
{ "last_commit": "<sha>", "package_map": { ... } }The noop path now skips only when: no
.gochanges sincelast_commitANDscratchpad/architecture.mdexists with diagram content.