Automate manuals extraction in ABI fanout cycle#356
Merged
matheus1lva merged 1 commit intomainfrom Mar 11, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Adds
extract manualsto the ABI fanout cycle so vaults defined inconfig/manuals.yamlare automatically picked up every 15 minutes. Previously, adding manual entries required SSHing into the ingest shell and triggering extraction by hand — this removes that operational burden.How to review
Two small changes:
packages/ingest/fanout/abis.ts— single line added before the ABI loop to enqueuemq.job.extract.manuals. Review that it runs before the source/thing loop (manuals create things that the loop may need).docs/manuals.md— updated to reflect the new automatic flow, with manual trigger preserved as fallback.Test plan
config/manuals.local.yamlwith a test entry (automatically preferred overmanuals.yaml)Trigger
ingest→fanout abisfrom the terminal UIVerify the test entry was inserted into the database
Expected: one row with
label = 'test manual'and defaults containingtoken,apiVersion,inceptBlockfanout abisagain and verify idempotency — no duplicate rowsExpected:
1Verify manual fallback still works: trigger
ingest→extract manualsindependently from the terminal UIClean up:
rm config/manuals.local.yamlandmake down(or kill the tmux session)Risk / impact
Minimal risk.
upsertThingis idempotent (ON CONFLICT ... DO UPDATEwith defaults merging), so repeated extraction every 15 minutes is safe. The manual terminal trigger remains available as a fallback. No schema changes, no new dependencies.🤖 Generated with Claude Code