docs(#5458): document full mintcore file lifecycle in AGENTS.md - #5459
Conversation
The mintcore sync section previously documented only the .embed copy step. Agents and humans repeatedly missed the embeddedMintFiles registration and gcfSkip exclusion steps when adding new files to internal/mintcore/, causing multiple fix iterations on PR #5447. Add the complete 3-step lifecycle: (1) create the .embed copy, (2) register in embeddedMintFiles for platform-agnostic files, or (3) add to gcfSkip for build-tagged files. References file_pem.go and pem_js.go as canonical examples. Closes #5458
|
🤖 Finished Review · ✅ Success · Started 11:10 AM UTC · Completed 11:22 AM UTC |
Site previewPreview: https://2b438c3c-site.fullsend-ai.workers.dev Commit: |
ReviewFindingsHigh
Medium
Low
Labels: PR modifies AGENTS.md documentation for the mintcore subsystem. |
|
/fs-fix review comments |
|
🤖 Finished Fix · ✅ Success · Started 11:27 AM UTC · Completed 11:33 AM UTC |
Fix logic error in AGENTS.md: `//go:build !js` files (e.g., sts_verifier.go, gcp_pem.go, wif.go) should be registered in embeddedMintFiles for GCF, not added to gcfSkip. Only Worker-only (`//go:build js`) and standalone-mint-only files belong in gcfSkip. List all three gcfSkip entries with distinct exclusion reasons. Apply bold heading and numbered-list formatting to match existing patterns. Addresses review feedback on #5459
🔧 Fix agent — iteration 1 (human-triggered)Addressed all 4 review findings. Fixed the high-severity logic error where !js files were incorrectly documented as belonging in gcfSkip (they should be in embeddedMintFiles for GCF). Listed all 3 gcfSkip entries with distinct exclusion reasons. Applied bold heading and numbered-list formatting to match existing patterns. Fixed (4):
Tests: passed Updated by fullsend fix agent |
rh-hemartin
left a comment
There was a problem hiding this comment.
LGTM, I do think at some point we need to split this AGENTS.md into docs/contributing/<topic>.md or docs/dev/<topic>.md to avoid having it full with instructions about how to touch code. Instead we could instruct the agents to search those docs and pick the one they believe is the appropriate. What do you think?
I think that is a greate idea (for a new issue....) |
|
🤖 Finished Retro · ✅ Success · Started 6:59 AM UTC · Completed 7:09 AM UTC |
Retro: PR #5459 — Document full mintcore file lifecycle in AGENTS.mdOverall assessment: This workflow demonstrates the full autonomous pipeline working well — retro agent identified a documentation gap from PR #5447, filed issue #5458, triage confirmed it, code agent implemented, review agent caught a critical error, fix agent corrected it in one iteration, and humans merged. Timeline
Positive signals
Evidence for existing issues
Proposal filed
Proposals filed
|
Summary
Document the full 3-step lifecycle for adding new files to
internal/mintcore/in AGENTS.md. The existing instruction only covered step 1 (creating the.embedcopy), which caused both agents and human reviewers to miss theembeddedMintFilesregistration andgcfSkipexclusion steps during PR #5447, resulting in multiple fix iterations.Related Issue
Fixes #5458
Changes
.embedcopy (enforced bylint-mint-embed-sync)embeddedMintFilesfor files without platform-specific build tagsgcfSkipinprovisioner_test.gofor files with build tags (e.g.,//go:build js)file_pem.go/pem_js.goas canonical examples of the build-tag exclusion patternTesting
Checklist
!for breaking changes)Closes #5458
Post-script verification
agent/5458-mintcore-lifecycle-docs)cb2bcd9f282952232249eca4a281a3392a617d41..HEAD)