hunch: tag the project (@playhunchxyz + token) on every reply + sync partner-API upgrades#457
Open
rajkaria wants to merge 1 commit into
Open
Conversation
…ades Brings the hunch skill in sync with the live PlayHunch partner API. Additive + preserves the existing x402 security hardening (Security invariants, signingPolicy pin-check, untrusted-input handling are all kept — x402-registry.json unchanged). Headline change — **every reply now credits the project with @-tags**: - @playhunchxyz (Hunch) is always tagged, plus the market's token project when verified (e.g. a $LFI market → "@playhunchxyz @lienfiapp"). Handles are sourced from each token's own DexScreener listing socials, not guessed. - Built server-side and baked into the verbatim copy so it always renders: the `headline` (discover/trending) ends with the tags; `broadcast` + `digest` strings include them; the `quote` + `positions` responses gain a `tags` field. - New SKILL.md "Project attribution" section + reply-shape rule. Also folds in the rest of the current partner surface the merged copy predated: - Screenshot-ready `headline` (title · odds · social proof · close · @tags). - One-tap size chips ($1/$5/$10, defaultTicketUsd) instead of demanding a number. - Win-broadcast loop (/api/partner/resolved → references/resolved.md) — reply in the bet thread when a market settles, with proof + a rematch hook. - Funding a bet (422 insufficient_balance): lower the size, or swap a token → USDC on Base ONLY with the user's explicit per-swap consent (never auto-swap). - Trending headlines + digest, positions/quote `tags`, refreshed transcripts.
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.
Updates the hunch skill to match the live PlayHunch partner API. Additive, and the existing x402 security hardening is fully preserved — the Security invariants section,
signingPolicypin-check, and untrusted-input handling are all kept, andx402-registry.jsonis unchanged.Headline change — every reply now credits the project
Today a Hunch market reply tags no one. This adds server-built attribution to every reply:
@playhunchxyz(Hunch) is always tagged, plus the market's token project when there's a verified handle — e.g. a$LFImarket tags@playhunchxyz @lienfiapp, a$VVVmarket tags@playhunchxyz @AskVenice.@playhunchxyz; the replying bot's own handle (@bankrbot) is never self-tagged.headline(discover/trending) ends with the tags, thebroadcast+digeststrings include them, and thequote+positionsresponses gain atagsfield.Also syncs the rest of the partner surface this copy predated
headlineon every discover/trending match (title · odds · social proof · close · @tags).$1 / $5 / $10,defaultTicketUsd) — don't make the user type a number.GET /api/partner/resolved→references/resolved.md): reply in the original bet thread when a market settles, with on-chain proof + a rematch hook.422 insufficient_balance: lower the size, or swap a token → USDC on Base only with the user's explicit per-swap consent (never auto-swap).quote/positionstags, refreshed transcripts.Safety
x402-registry.jsonis byte-identical to the merged copy (verified) — no change to the pinnedallowedOrigins/signingPolicy.idemKey.The PlayHunch partner API serving these fields is already live in production.
🤖 Generated with Claude Code