Conversation
Without an on_chain.request mapping the node cannot turn a job's OnChainData into an HTTP call, so it falls back to the first endpoint with no parameters. Every field name and query parameter is taken from this file's own output_schema and input_schema. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WRCg2ptKhTh362DukmeBCn
|
@PugarHuda is attempting to deploy a commit to the shreshthmishra333-9362's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Hi. I run the
amanat-weather-riskminer and a storm contract on Base Sepolia. Chasing why my contract's on-chain jobs kept coming back unanswerable, I audited every public registration YAML on the network. This one has the same one-block gap as most of the others, so here is the fix rather than just the finding.What happens today
ERC-8183 jobs are routed by rank, and nothing in that path checks whether the miner it lands on declares an
on_chain.requestmapping. Without one the node cannot turn the job'sOnChainDataarrays into an HTTP call, so it falls back to the first endpoint in the file with no parameters. Preflight serves ten intents and/ssl-checkis first, so a job for any of them arrives there with no domain.Nothing is wrong with the miner. It answers correctly over HTTP and through the Engine, and the tolerant input handling in your
input_schemais better than most. The node just cannot address it from a job.What this PR adds
One
on_chainblock. Nothing else changes.verdict,reason,confidenceandrisk_scoreare taken from this file's ownoutput_schema, anddomain,url,cve_query,address,hash,chainandassetfrom its owninput_schema, following the "Used by /x" notes there. The block shape is copied from the protocol's example miner attelegraphprotocol/telegraph-examples, which usesquery_paramsfor GET.I mapped six endpoints rather than all twelve, on the reasoning that the rest follow the same pattern and you will want to choose which ones matter. The file parses, and the audit I use flips it from closed to job-able.
Two things only you can confirm
OnChainDatapayload carries per intent, sostrings.0is the natural first slot rather than a standard one.requestlist by intent. The protocol's example declares one endpoint, so the list form is inferred from it being a list. If it turns out to be one entry per registration, keepssl-checkand drop the rest.Adjust or reject freely.
curl -s 'https://amanat-miner.vercel.app/api/jobable?intent=SSL_VERIFICATION'reports this per intent across the network. Write-up with the job ids is at https://github.com/PugarHuda/amanat/blob/main/docs/bug-report.md🤖 Generated with Claude Code
https://claude.ai/code/session_01WRCg2ptKhTh362DukmeBCn