Download skillforge/memory/build_log.jsonl from DetVape/Vape: direct link, hf CLI and curl.
- Browser
- Download file 37.5 kB
-
https://huggingface.co/spaces/DetVape/Vape/resolve/main/skillforge/memory/build_log.jsonl
- Command line
-
hf download hf://spaces/DetVape/Vape/skillforge/memory/build_log.jsonl
-
curl -L -o build_log.jsonl https://huggingface.co/spaces/DetVape/Vape/resolve/main/skillforge/memory/build_log.jsonl
37.5 kB
| {"id": "88fd33e3d4f4", "category": "build_log", "title": "Pattern: verified-source-only icon resolver (never guess a logo URL)", "content": "Problem: report/investigation cards need to show a or protocol's real logo, but constructing an image URL from a guess (e.g. templating a CDN path from a symbol string) risks showing the WRONG project's mark if the guess is off \u2014 worse than showing no icon at all.\n\nPattern (see docs/assets/icons.js): resolve in strict, ordered tiers, and stop as soon as one tier confirms a real match \u2014 never fall through to a guess.\n 1. A small hand-verified table for assets that appear in almost every report (BTC/ETH/USDC/Base/Uniswap/VAPE's own \u2014 sourced from a stable, official, publicly-used CDN (CoinGecko's asset CDN, a project's own brand-kit repo).\n 2. For anything with a real contract address: a per-chain CDN keyed by the address itself (DexScreener's dd.dexscreener.com pattern) \u2014 the address IS the identity, so this can't collide with another project.\n 3. For a named thing with no address (e.g. a DeFi protocol name string with no slug attached): only an EXACT, case-insensitive name match against a live, authoritative list (DefiLlama's /protocols) qualifies \u2014 never fuzzy-match a name, since a near-miss silently shows an unrelated project's logo.\nEvery <img> still gets onerror=\"this.remove()\" as a last-resort safety net \u2014 a missing icon degrades gracefully to no icon, never a broken-image glyph.\nReusable whenever VAPE needs to display a real-world identity (protocol, exchange, chain) without a paid data provider backing it.", "source": "docs/assets/icons.js", "tags": ["pattern", "frontend", "data-integrity", "icons"], "confidence": 0.9, "timestamp": "2026-07-05T05:40:59.292397", "metadata": {"files": ["docs/assets/icons.js", "docs/assets/report.js"]}} | |
| {"id": "287876ecce39", "category": "build_log", "title": "Gotcha: CSS containing blocks silently break `position:absolute` popovers", "content": "Symptom this session: a wallet-connect dropdown rendered fine right after page load, but opening it after scrolling down put it off-screen above the fold.\n\nRoot cause: the popover was appended to document.body (so it wouldn't be clipped by an ancestor's overflow/backdrop-filter) and positioned with Tailwind's `absolute top-16 right-5`. `position:absolute` resolves against the nearest *positioned* ancestor \u2014 with none, that's the INITIAL containing block, i.e. the very top of the whole document, not the current viewport. So `top-16` always meant \"16 units from the top of the page,\" not \"16 units below the button\" \u2014 invisible the moment the user had scrolled past that point.\n\nFix pattern: when an element must be appended to <body> (to escape a clipping ancestor), position it with `element.getBoundingClientRect()` on the real anchor and `position:fixed` with computed pixel top/right \u2014 fixed positioning is relative to the viewport regardless of scroll, which is what \"appears near this button\" actually needs. See docs/assets/wallet.js's `_placeNearAnchor()`.\n\nRelated gotcha fixed the same session: a mobile nav dropdown was implemented with normal-flow `hidden`/visible toggling, which pushed all page content down when opened instead of floating over it. Fix: make the parent `nav` (already `sticky`, which IS a valid positioned ancestor) the containing block, and give the panel `absolute top-full left-0 right-0` so it overlays instead of reflowing \u2014 plus swap opacity/scale/visibility classes instead of `hidden` so the open/close can actually transition (display:none can't be animated).", "source": "docs/assets/wallet.js", "tags": ["pattern", "frontend", "css", "gotcha"], "confidence": 0.9, "timestamp": "2026-07-05T05:40:59.292863", "metadata": {"files": ["docs/assets/wallet.js", "docs/index.html", "docs/assets/app.js"]}} | |
| {"id": "04905ce857f4", "category": "build_log", "title": "Pattern: overflow-safe cards \u2014 wrapping chips beat a single joined text line", "content": "Symptom this session: Investigation Archive cards risked horizontal overflow on narrow phones. Root cause: the meta line was built as one string joined with \" \u00b7 \" (address, date, offering name) inside a flex row alongside `shrink-0` badges \u2014 a single joined string has nowhere to wrap, so if it's long or the sibling badges are wide, the row (and sometimes the whole card) can overflow its container instead of reflowing.\n\nFix pattern: never join multiple independent facts into one un-wrappable string when they're going in a narrow card. Render each fact as its own small chip (`inline-block`, `whitespace-nowrap` is fine PER CHIP, not for the whole line) inside a `flex flex-wrap gap-1.5` container \u2014 now a long line just wraps onto a second row instead of forcing width. Combine with `overflow-hidden` on the card itself as a defensive backstop, `min-w-0` on any flex child that needs to shrink (a flex item's default min-width is `auto`, i.e. its content size \u2014 `min-w-0` is what actually lets `truncate` work inside a flex row), and `line-clamp-2` instead of a single truncated line for longer summary text. See App._metaChips() and App._iconChip() in docs/assets/app.js, used consistently across all four Investigation Archive tabs.", "source": "docs/assets/app.js", "tags": ["pattern", "frontend", "css", "responsive"], "confidence": 0.9, "timestamp": "2026-07-05T05:40:59.293067", "metadata": {"files": ["docs/assets/app.js"]}} | |
| {"id": "a264a594db4e", "category": "build_log", "title": "Pattern: synchronous render now, async enhancement after \u2014 for progressive icon fill-in", "content": "Constraint: Report.buildHtmlSummary() must stay synchronous (documented contract) \u2014 it renders a paid report's result immediately on payment completion, with no network round-trip, so it can never fail or stall waiting on a fetch. But some data (e.g. resolving a DeFi protocol NAME to its real logo) genuinely requires an async lookup (DefiLlama's /protocols list).\n\nPattern: render the synchronous HTML immediately with an icon-less placeholder chip carrying a `data-protocol=\"Name\"` attribute and a hidden <img>, then \u2014 AFTER the caller inserts that HTML into the DOM \u2014 call a separate async method (`Report.enhanceIcons(container)`) that resolves each placeholder's real logo and fills in `img.src` if (and only if) a real match is found. The report is never blocked on the network; the icon just \"arrives\" a moment later, or the chip quietly stays text-only if there's no exact match (see the icon-resolver pattern entry above \u2014 never guess). Both hire.js and profile.js call `Report.enhanceIcons(el)` right after setting `el.innerHTML`.", "source": "docs/assets/report.js", "tags": ["pattern", "frontend", "async", "architecture"], "confidence": 0.9, "timestamp": "2026-07-05T05:40:59.293230", "metadata": {"files": ["docs/assets/report.js", "docs/assets/hire.js", "docs/assets/profile.js"]}} | |
| {"id": "d4e2835fa134", "category": "build_log", "title": "Pattern: keyless multi-source live-market panel, rate-limit-safe by construction", "content": "Built this session: 'Base Movers' (Trending/Gainers/Losers/Volume) plus Global Market Cap and Fear & Greed tiles \u2014 all from free, unauthenticated public APIs, with zero risk of hitting a rate limit even at scale, by construction rather than by throttling logic:\n - Exactly ONE network call per data source per 5-minute refresh cycle (App.refresh()'s existing interval) \u2014 never per-interaction.\n - Tab switching (Trending/Gainers/Losers/Volume) re-sorts the ALREADY-fetched array client-side (Array.sort by priceChange.h24 or volume.h24) \u2014 zero extra requests no matter how many times a visitor clicks between tabs.\n - The list comes from one batched DexScreener call (`/latest/dex/up to ~30 comma-joined addresses) instead of one request per - Every fetch call site is a per-VISITOR browser call (not a shared backend hitting these APIs on everyone's behalf), so the effective request rate per API key/IP is naturally bounded by however often any single visitor's page is open \u2014 this only becomes a real rate-limit concern for endpoints that need a shared server-side key, which is exactly why the worker (worker/src) proxies the ones that do (CoinGecko with a Demo key for /prices) rather than exposing a key client-side.\nSame pattern applies to any future 'trending X' panel: fetch once per refresh cycle, derive every view (sort/filter/tab) from that one fetched array in memory.", "source": "docs/assets/app.js", "tags": ["pattern", "frontend", "rate-limits", "api-integration"], "confidence": 0.9, "timestamp": "2026-07-05T05:40:59.293429", "metadata": {"files": ["docs/assets/app.js", "docs/index.html"]}} | |
| {"id": "69d7d05fc6b0", "category": "build_log", "title": "Pattern: one shared letterhead + verdict-stamp helper across every report surface", "content": "Problem: VAPE publishes reports on at least three different surfaces \u2014 a jsPDF PDF (report.js), inline HTML on the site (report.js's buildHtmlSummary), and plain markdown files in the repo (agents/investigate.py, agents/broadcast.py, agents/run.py). Each had grown its own ad-hoc verdict formatting, and the markdown ones had drifted into colored-circle emoji (\ud83d\udfe2/\ud83d\udfe1/\ud83d\udd34) \u2014 fine for a chat message, wrong tone for a published security dossier, and inconsistent with the PDF/HTML paths which already used a clean colored badge with no emoji.\n\nFix: a tiny shared module, agents/report_format.py, with exactly two exports:\n - letterhead_md(title) \u2014 VAPE's real avatar image (same file used as the PDF letterhead and the site's own nav/footer mark) floated beside the title via GitHub-flavored markdown (<img align=\"left\"> + <br clear=\"left\"/>) \u2014 one consistent visual signature across every surface, not a different logo/style per generator.\n - verdict_stamp(verdict, extra) \u2014 a plain-text `> **VERDICT \u2014 PROCEED**` blockquote, no emoji, optional trailing detail after a middle dot.\nEvery markdown-generating script imports these instead of hand-rolling its own header block \u2014 the next new report generator should do the same rather than inventing another one-off format.", "source": "agents/report_format.py", "tags": ["pattern", "reporting", "consistency", "branding"], "confidence": 0.9, "timestamp": "2026-07-05T05:40:59.293603", "metadata": {"files": ["agents/report_format.py", "agents/investigate.py", "agents/broadcast.py", "agents/run.py"]}} | |
| {"id": "1ea6220f56e6", "category": "build_log", "title": "Gotcha: squash-merge makes a still-open branch look falsely 'conflicted'", "content": "Recurring issue this project: after a PR is squash-merged, GitHub sometimes reports `mergeable_state: \"dirty\"` for a DIFFERENT open PR/branch whose real diff against main is completely clean \u2014 because that branch's history still contains the pre-squash commit as an ancestor, and that commit has a different SHA than the now-squashed commit in main even though the CONTENT is byte-identical. Git sees two different commits touching the same lines and reports a conflict; the actual file contents never disagree.\n\nDiagnostic: `git diff <suspect_old_commit> <main_commit_with_same_title>` \u2014 if that diff is EMPTY, this is the false-conflict case, not a real conflict.\n\nFix pattern (used repeatedly this session):\n 1. `git diff <true_base>..<branch_head> --binary > /tmp/patch` \u2014 extract only the REAL new changes as a patch.\n 2. `git checkout -B <branch-name> origin/main` \u2014 rebuild the branch fresh on top of current main (throws away the stale pre-squash ancestry, not any work).\n 3. `git apply /tmp/patch` \u2014 reapply just the real diff.\n 4. Verify (`node --check` / structural checks), commit fresh, `git push --force-with-lease`.\nAny VAPE agent that opens PRs autonomously (agents/self_improve.py, agents/build_request.py, skillforge-synthesize) will eventually hit this if a long-lived branch survives across a squash-merge of a related PR \u2014 worth adding this exact check-and-rebuild as a guarded fallback before assuming a real conflict needs manual resolution.", "source": "session-operational", "tags": ["pattern", "git", "ci-cd", "gotcha"], "confidence": 0.9, "timestamp": "2026-07-05T05:40:59.293777", "metadata": {"files": []}} | |
| {"id": "6bc7904c3f0a", "category": "build_log", "title": "New: coding-education skill track (skillforge/skills/coding-*.md)", "content": "build_log.jsonl (this ledger) holds short, atomic patterns and gotchas. It's not a curriculum on its own. Added a complementary set of full how-to skill files under skillforge/skills/coding-*.md, in the same format as the existing security-recon skills (When to use / Procedure / Quality gates / Known limitations), but teaching software engineering itself: coding-python-agent.md (how to write a new agents/*.py script), coding-frontend-vanilla-js.md (how to build/modify the zero-build docs/ frontend), coding-git-workflow.md (branch -> verify -> commit -> PR -> merge, including squash-merge false-conflict recovery), and coding-verification.md (how to actually verify a change before calling it done). Registered in skillforge/memory/skills.jsonl under tier 'coding' so they show up alongside the security-tier skills in any future INDEX.md rollup. Every lesson in these files is grounded in a real pattern already used somewhere in this repo \u2014 not generic advice \u2014 so a future session (or VAPE itself) building something new has a concrete worked example to follow, not just an abstract principle.", "source": "skillforge/skills/", "tags": ["meta", "coding-education", "skills"], "confidence": 0.9, "timestamp": "2026-07-05T05:58:37.266714", "metadata": {"files": ["skillforge/skills/coding-python-agent.md", "skillforge/skills/coding-frontend-vanilla-js.md", "skillforge/skills/coding-git-workflow.md", "skillforge/skills/coding-verification.md", "skillforge/memory/skills.jsonl"]}} | |
| {"id": "de054196fd11", "category": "build_log", "title": "Repo-wide security review methodology: sink-first grep, trace-to-origin, validate-at-entry", "content": "How I ran a comprehensive security review of a large, already-fairly-hardened\nrepo (VAPE) without drowning in false positives, and what actually turned up\nreal, fixable bugs.\n\nMETHOD: sweep by sink pattern across the whole tree first (innerHTML/eval/\nsubprocess-shell=True/yaml.load/hardcoded-GitHub\nActions event interpolation), rather than reading files top to bottom. Each\ngrep hit is a candidate, not a finding -- the actual work is tracing each hit\nbackward to find out whether the value that reaches it can ever be\nattacker-chosen. Most hits in this repo turned out to be already-escaped\n(the codebase had strong prior discipline: report.js/hire.js/profile.js all\nalready had an escapeHtml() helper and comments explaining exactly why\non-chain metadata needs it) or protected by validation upstream\n(agents/investigate.py regex-validates addresses before they ever reach a\nfile-path-building function; agents/deep_dive_audit.py already has a\ndocumented, scoped SSRF guard on a buyer-supplied callback URL; GitHub\nActions workflows already route event-derived inputs through env: blocks\ninstead of inlining them into run: strings).\n\nWHAT ACTUALLY TURNED UP REAL BUGS: the one trust boundary in this repo that\nhadn't been through the same hardening pass as everything else was\ndocs/assets/wallet.js's EIP-6963 wallet-discovery code. EIP-6963 is a global\nwindow event (`eip6963:announceProvider`) that ANY installed browser\nextension can dispatch, not just real wallets -- so `info.name`/`info.icon`/\n`info.uuid` have to be treated exactly like on-chain metadata (attacker-\ncontrolled text), but they were going into innerHTML unescaped. Worse, the\nconnected \"account\" string returned by a provider's own eth_requestAccounts\ncall was trusted with zero format validation and then fanned out into\nmultiple unescaped render sites (aria-label, a Basescan href, popover text).\n\nKEY LESSON -- fix multiplicity at the source, not at each sink: rather than\nadding escapeHtml() calls to every place `this._account` was rendered, I\nvalidated its shape once, at the two points where it enters state\n(_bind() and the accountsChanged provider event handler), against\n/^0x[a-fA-F0-9]{40}$/, and refused to bind on a mismatch. One validation\npoint closed every downstream consumer permanently, including ones a future\nedit might add without remembering to escape.\n\nVERIFICATION -- don't just read the diff, fire the payload: headless\nChromium can dispatch a real `eip6963:announceProvider` CustomEvent carrying\nan actual XSS payload (`info.icon = '\"><img src=x onerror=\"window.__xss=1\">'`)\nand then assert `window.__xss` is still undefined after the popover renders.\nThis is a much stronger verification than \"the escaping function exists and\nlooks right\" -- it proves the exploit doesn't fire against the actual\nrendered DOM.\n\nRECORDING -- this run produced three artifacts, matching the repo's existing\nmemory taxonomy: a `finding` entry (what was found, in\nskillforge/memory/findings.jsonl), this `build_log` entry (how it was found\nand fixed, the reusable method), and a new skill file\n(skillforge/skills/coding-security-review.md) generalizing the procedure for\nnext time, added to skillforge/memory/skills.jsonl's coding tier alongside\nthe git-workflow/verification/python-agent/frontend skills already there.", "source": "security-review", "tags": ["security", "xss", "code-review", "coding-education"], "confidence": 0.9, "timestamp": "2026-07-05T15:29:59.406030", "metadata": {"files": ["docs/assets/wallet.js", "skillforge/skills/coding-security-review.md"]}} | |
| {"id": "604022c86427", "category": "build_log", "title": "Cloudflare Worker deploy: confirm liveness via CI smoke test, not manual URL checks", "content": "Real sequence from restoring Cloudflare as the primary worker/ deploy target (after Deno Deploy had been the only live path for a while):\n\n1. GITHUB ACTIONS GOTCHA: after adding CLOUDFLARE_API_as repo deploy-worker.yml's Deploy step still showed conclusion=skipped, not success/failure \u2014 meaning `!= ''` (routed through env.HAS_CF_since if: can't reference directly) still evaluated false. This happened twice before it actually worked. Root cause was never a problem \u2014 we never even reached a live Cloudflare API call. Always check FIRST: (a) exact name, case-sensitive, (b) Repository under Settings > and variables > Actions, not an Environment (which requires a workflow environment: key this workflow doesn't declare) or a Codespaces/Dependabot Don't debug scopes/permissions until the Deploy step actually runs.\n\n2. WORKERS.DEV SUBDOMAIN IS A REAL PREREQUISITE: a fresh/reset Cloudflare account must claim a workers.dev subdomain from the dashboard (Workers & Pages -> Overview) before wrangler deploy can publish \u2014 this can't be done non-interactively from CI. This exact gap previously caused every deploy to fail with the worker uploading fine but wrangler hard-exiting (this repo's whole prior Cloudflare-removal decision traced back to this). wrangler.toml now sets workers_dev = true explicitly so intent is declared rather than relying on a prompt CI can't answer.\n\n3. SANDBOX-BLOCKED URL -> USE CI'S OWN NETWORK INSTEAD: this dev environment's outbound proxy blocks Cloudflare hosts (and many others) with a 403 at the CONNECT-tunnel level, so a live *.workers.dev URL can't be curled from here to confirm a deploy actually answers requests (wrangler exiting 0 only proves upload succeeded, not reachability). Fix: add a smoke-test step to the deploy workflow itself, running on GitHub's own runner (real, unrestricted egress) \u2014 curl the deployed root route right after Deploy and fail the job if the expected JSON payload isn't there. This is a reusable pattern any time a deploy target is unreachable from the dev/build sandbox but reachable from CI: let CI be the verifier, don't rely on a human manually opening the URL.\n\n4. x402 BAZAAR / THIRD-PARTY DIRECTORY REGISTRATION STATUS: agents/x402_directory_register.py successfully registered all 6 auto-fulfilled offerings with 402index.io (HTTP 201 each) \u2014 but every response said 'pending review. Verify your domain for instant approval', meaning registration alone doesn't guarantee the listing is indexed/visible yet; a domain-verification step may be required on 402index.io's side. Also: this script and worker/src/index.ts's own x402 Bazaar discovery extension (declareDiscoveryExtension / registerExtension(bazaarResourceServerExtension) / withBazaar()) are two SEPARATE discovery mechanisms \u2014 one is a manual one-off POST to a third-party directory, the other is protocol-level metadata read by the facilitator on every request. Bazaar indexing itself has a known open bug (x402-foundation/x402#2112) even for correctly-implemented services. Neither affects real payment settlement \u2014 both are discovery-only.\n\n5. WORKER_BASE IS THE SINGLE SWITCH POINT: docs/assets/app.js's WORKER_BASE constant and agents/x402_directory_register.py's WORKER_BASE constant both need updating together whenever the live worker URL changes (Cloudflare <-> Deno) \u2014 profile.js needs no change since it reads window.WORKER_BASE, which app.js publishes. Confirmed via the CI smoke test above before flipping this, per the standing rule of never flipping a production URL without independent confirmation it actually answers.", "source": "session-operational", "tags": ["pattern", "ci-cd", "cloudflare", "x402", "gotcha"], "confidence": 0.9, "timestamp": "2026-07-05T19:32:25.447470", "metadata": {"files": [".github/workflows/deploy-worker.yml", "docs/assets/app.js", "agents/x402_directory_register.py"]}} | |
| {"id": "57cde091d8cc", "category": "build_log", "title": "x402 settlement facts (tx hash, payer) only exist inside onAfterSettle \u2014 capture them via c.set() before the route handler runs", "content": "Building the live x402 job ledger (worker/src/lib/jobLog.ts), I needed the real on-chain settlement tx hash + payer address to log alongside each job. The obvious place to grab them looks like the /scan/:offering route handler (after fulfill() returns) \u2014 but the x402 payment middleware settles BEFORE that handler ever runs, and @x402/hono's paymentMiddleware(routes, resourceServer) gives no return value with settlement details at the call site.\n\nThe real hook: x402ResourceServer has .onBeforeSettle/.onAfterSettle/.onSettleFailure registration methods (see node_modules/@x402/core's exported AfterSettleHook type). onAfterSettle's context (SettleResultContext) carries result.payer, result.transaction (the tx hash), result.network, and result.amount straight from the facilitator's own response \u2014 DeepReadonly, not something the app fabricates.\n\nPATTERN: register the hook inside the same middleware closure where the resourceServer is built per-request (this repo builds it fresh in app.use('*', async (c, next) => {...}) since it needs c.env), and stash the result on the request via a typed Hono Variable: c.set('x402Settlement', {...}). The downstream route handler (which alone knows the job's actual output \u2014 offering result, latency) then reads c.get('x402Settlement') after calling fulfill(). Neither side has both halves of the picture alone; a per-request Variable is the bridge. Requires typing the Hono app as `new Hono<{ Bindings: Env; Variables: Variables }>()` for c.set/c.get to be typed instead of `any`.", "source": "worker/src/index.ts", "tags": ["pattern", "x402", "hono", "payment-hooks"], "confidence": 0.9, "timestamp": "2026-07-06T03:32:17.470276", "metadata": {"files": ["worker/src/index.ts", "worker/src/lib/jobLog.ts"]}} | |
| {"id": "3acf5bee70e7", "category": "build_log", "title": "Cloudflare KV binding can't ship as a static wrangler.toml id \u2014 inject it at deploy time from a repo and check Repository vs Environment when a step stays 'skipped'", "content": "Adding Cloudflare KV storage (VAPE_JOBS, for the live x402 ledger) to an existing, already-live Worker deploy pipeline: unlike a Worker (`wrangler put`), a KV namespace has to be declared as a [[kv_namespaces]] binding with a real id INSIDE wrangler.toml \u2014 there's no way to leave it optional. Committing a placeholder id would make `wrangler deploy` fail outright on every push until the real namespace exists, taking down every other already-working route with it.\n\nPATTERN: don't commit the binding at all. Add a step in the deploy workflow, gated on a new repo (VAPE_JOBS_KV_ID) via the same env: routing trick already used for CLOUDFLARE_API_(`env: HAS_JOBS_KV: ${{ != '' }}`, since `if:` can't reference `directly), that does `cat >> wrangler.toml <<EOF [[kv_namespaces]]... EOF` right before the Deploy step, only when the is set. Until then /scan/* deploys and works exactly as before; the new /x402/feed route just 503s with an honest 'not configured' instead of the whole deploy breaking.\n\nGOTCHA (confirmed live, not hypothetical): the first deploy after asking the human to add VAPE_JOBS_KV_ID showed the gating step as conclusion=skipped \u2014 meaning GitHub Actions still saw the as unset \u2014 even though the human had just added it. Root cause here was that a can be added under the wrong scope: GitHub's repo settings page has separate 'Repository vs 'Environment sections (environment need the workflow to declare `environment:`, which this one doesn't), plus Codespaces/Dependabot sections that look similar at a glance. A skipped gating step with the 'definitely added' means check: (1) exact name (case+underscores, no typo), (2) it's under Repository specifically, (3) it's on the right repo. Same failure class as an earlier CLOUDFLARE_API_gotcha already in this ledger \u2014 worth checking that one first before assuming a new bug.", "source": ".github/workflows/deploy-worker.yml", "tags": ["pattern", "gotcha", "ci-cd", "cloudflare", "kv", "secrets"], "confidence": 0.9, "timestamp": "2026-07-06T03:32:17.470752", "metadata": {"files": [".github/workflows/deploy-worker.yml", "worker/wrangler.toml"]}} | |
| {"id": "baa9949fcbc3", "category": "build_log", "title": "Sourcing real per-service directory URLs: pull them from a past CI job's actual logged API responses instead of guessing a URL pattern or re-hitting a rate-limited endpoint", "content": "Needed real, working per-offering links to VAPE's 402index.io listings (for the x402 offerings grid + new live ledger section). WebFetch to 402index.io itself returned 403 (bot protection) so the page structure/URL pattern couldn't be confirmed by browsing directly. Re-running the registration script (agents/x402_directory_register.py) to get fresh IDs was explicitly the wrong move: its own docstring already flags 'unknown dedup behavior risk creating duplicate listings' \u2014 hitting a real, rate-limited third-party API again just to inspect a response is not worth that risk when the response was already produced once for real.\n\nPATTERN: that registration script already ran for real in .github/workflows/x402-directory.yml, and its stdout (including the full {\"service\": {\"id\": \"...\"}} JSON from each 201 response) is sitting in that run's job logs. mcp__github__actions_list (list_workflow_runs -> list_workflow_jobs) plus get_job_logs(job_id, return_content=true) retrieves that historical log text directly \u2014 no new API call to the third party, no guessing, and the human independently confirmed one of the transcribed IDs was correct by pasting the exact same URL from the live site. This is the general technique for 'I need a real identifier/URL that a past automated run already obtained but didn't persist to the repo': check that run's own logs before re-running anything or fabricating a plausible-looking value.", "source": "agents/publish_reputation.py", "tags": ["pattern", "real-data-only", "github-actions", "investigation-technique"], "confidence": 0.9, "timestamp": "2026-07-06T03:32:17.470991", "metadata": {"files": ["agents/publish_reputation.py"]}} | |
| {"id": "f9b0bbffd8b9", "category": "build_log", "title": "Renaming a live priced offering across ACP+x402+docs: grep-verified checklist, not a single find/replace", "content": "Renamed safety_preflight -> dossier_check (a live, priced $0.10 offering reachable via both ACP and x402). A single sed in the 'obvious' handler file isn't enough \u2014 the same string lives in >10 independent places that don't reference each other: the Python HANDLERS dict key (agents/acp_fulfill.py), the TS HandlerName union + HANDLERS record (worker/src/handlers.ts), the x402 OFFERING_PRICES/OFFERING_DISCOVERY keys (worker/src/index.ts), the real ACP price dict used for live set-budget calls (scripts/acp-monitor/auto_fulfill.py \u2014 get this one wrong and real jobs mis-price), the generated data/reputation.json's source-of-truth OFFERINGS list + AUTO/ZERO_LLM set literals (agents/publish_reputation.py), plus prose references across docs/ACP_PROTOCOL.md, docs/ARCHITECTURE_ROADMAP.md, worker/README.md, worker/wrangler.toml comments, and scripts/acp-monitor/{HANDLER_BRIEF,README}.md.\n\nPATTERN: bulk `sed -i 's/old/new/g'` across the known file list, THEN `grep -rn 'old_name' agents/ worker/src/ scripts/ docs/*.md worker/README.md worker/wrangler.toml` and require zero hits before considering it done \u2014 grep is the actual verification step, not the sed. Afterwards, regenerate any derived file (data/reputation.json here) rather than hand-editing it, and re-check its set-difference/derived logic still reads correctly post-rename (e.g. `ZERO_LLM = AUTO - {\"dossier_check\"}` \u2014 sed renames the string INSIDE that expression too, but worth confirming by reading it back, not assuming).", "source": "agents/acp_fulfill.py", "tags": ["pattern", "rename", "acp", "x402", "checklist"], "confidence": 0.9, "timestamp": "2026-07-06T03:32:41.521585", "metadata": {"files": ["agents/acp_fulfill.py", "worker/src/handlers.ts", "worker/src/index.ts", "agents/publish_reputation.py"]}} | |
| {"id": "e701f7e79f74", "category": "build_log", "title": "Asymmetric retry budgets: only bump retries for a keyless data source that has NO fallback, not globally", "content": "started returning near-empty reports under load: GoPlus was 429-ing and the existing _get()/safeGet() only retried once. The naive fix (bump retries everywhere) would slow down every call including DexScreener, which already has a real fallback (GeckoTerminal) for its one failure mode (Cloudflare anti-bot block pages) \u2014 retrying DexScreener harder just delays a request that's going to fall back anyway.\n\nPATTERN: retry budget should match whether a source has a fallback, not be a single global constant. GoPlus is the SOLE source for security traits (mintable/honeypot/owner/taxes) with nothing else keyless that covers the same fields, so it got bumped from 1 retry to 3 with backoff in all three call sites that hit it independently (agents/worker/src/scan.ts, AND agents/investigate.py + worker/src/lib/investigateLite.ts's separate goplusRaw() used by dossier_check) \u2014 four call sites total, easy to fix three and miss the fourth since investigate.py's _get() has no retry param at all normally (used a dedicated _get_with_retries() there instead of changing the shared _get() other callers rely on, to avoid slowing down unrelated RPC/dexscreener calls in the same module).", "source": "agents/token_scan.py", "tags": ["pattern", "gotcha", "rate-limits", "goplus", "resilience"], "confidence": 0.9, "timestamp": "2026-07-06T03:32:41.521941", "metadata": {"files": ["agents/token_scan.py", "worker/src/scan.ts", "agents/investigate.py", "worker/src/lib/investigateLite.ts"]}} | |
| {"id": "c193801db7fd", "category": "build_log", "title": "Root-caused and fixed VAPE's repeated-investigation loop; opened auto-investigation to 7 EVM chains", "content": "Diagnosed a real, evidenced \"looping\" bug reported by the operator: investigation reports read as stuck retelling the same handful of targets. Root causes found by reading actual repo data (not guessing): (1) agents/run.py::_recent_investigations() fed the LLM the N most-recently-modified investigation files by mtime with no memory of what was already narrated \u2014 when auto_target() found nothing new for hours/days (common, since it only ever looked at Base via one GeckoTerminal page), the same 2-3 stale investigation files got re-narrated as \"recent\" every hourly cycle, producing near-identical prose despite an explicit anti-repetition system prompt. Fixed by tracking narrated report basenames in skillforge/memory/run_report_state.json (same pattern as self_improve.py's addressed_findings) so a cycle with nothing new correctly gets empty grounding instead of stale reruns. (2) build_market_context()'s mover-anomaly flag had no cooldown, so a thin pool stuck around a huge 24h % change (e.g. +99,000%, barely moving cycle to cycle) got re-flagged as \"this cycle's\" anomaly every single hourly run for days. Fixed with a relative-tolerance cooldown (5% drift, not absolute points \u2014 critical since huge percentages jitter by hundreds of points without meaning anything) in skillforge/memory/anomaly_state.json. (3) The real ledger showed 7 of 13 ever-investigated addresses were brand-impersonation copycat (\"OpenAI\"/\"Claude\"/\"CLAUDE\") sharing a deployer fingerprint (same CREATE2 vanity suffix), several scoring false PROCEEDs (78-92/100) because nothing checked for impersonation of real, unaffiliated companies. Added a deterministic brand-impersonation penalty and a ledger-derived deployer-repeat-offender check to score() so serial campaigns get connected instead of scored as fully independent unknowns. (4) auto_target() was hardcoded to Base only \u2014 generalized to rotate across 7 EVM chains (Base plurality via hour%3 rotation, 8453/1/42161/10/137/56/43114), with per-chain RPC/GeckoTerminal/DexScreener identifier tables and a chain-qualified ledger key (with legacy bare-address fallback so existing entries don't get silently re-investigated). Lesson: when an operator reports vague \"it feels stuck/looping\" behavior, read the actual committed artifacts (ledger.json, report files, timestamps) before touching code \u2014 the real repeated-narration mechanism and the real narrow-candidate-pool mechanism were both invisible from reading the pipeline code alone, only visible from the data it had actually produced over weeks.", "source": "agents/investigate.py + agents/run.py + agents/data_fetchers.py", "tags": ["investigation", "auto-target", "multi-chain", "anti-repetition", "scoring", "lesson"], "confidence": 0.9, "timestamp": "2026-07-06T18:17:14.362411", "metadata": {"files": ["agents/investigate.py", "agents/run.py", "agents/data_fetchers.py", "agents/deep_dive_audit.py", "agents/review_ledger.py"]}} | |
| {"id": "ee2fa5b0ea10", "category": "build_log", "title": "Fixed empty Base Movers widget (CoinGecko primary, DexScreener boosts fallback); added name to investigation cards; fixed multi-chain icon/explorer links", "content": "Base Movers had gone empty since it was built because its sole source, DexScreener is a paid-promotion feed (projects actively boosting a listing) not organic movers, and often returns no Base entries at all. Switched to CoinGecko coins/markets?category=base-ecosystem as the primary source (keyless, CORS-friendly, gives real logo/symbol/name/price in one call), normalized into the exact shape _renderMovers() already expected so that render function needed zero changes; kept the DexScreener boosts call as a fallback for resilience rather than deleting it. Separately, agents/build_intel_index.py never extracted the NAME into the JSON index at all \u2014 only the ticker (parsed from the report title) and address were ever surfaced, even though write_report() already emits a Symbol/Name line in the report body. Added extraction of that field (with a null-guard, since dex.get(name) being None literally stringifies to the text \"None\" in the report and would otherwise render as a fake name), and wired it into both the \"Case File\" hero investigation card and the full investigations archive list in docs/assets/app.js. While doing this, found and fixed a related latent bug: _chainSlug()/_explorerUrl() in app.js only ever distinguished arbitrum/ethereum/base \u2014 a leftover from when investigations were Base-only \u2014 so the 4 other chains added by the recent multi-chain auto_target() rotation (Optimism/Polygon/BNB Chain/Avalanche) would have silently shown a wrong-chain icon and linked to the wrong block explorer. Rewrote both to extract the numeric chain id robustly (regex on digits, not string-matching display text) and map all 7 supported chains to their real icon-CDN slug and explorer host. Lesson: a multi-chain backend change (this session's earlier investigate.py PR) has ripple effects into every downstream consumer that hardcoded assumptions about the old single-chain world \u2014 worth grepping the frontend for chain-slug/explorer logic whenever a backend gains new chains, not just checking the backend itself compiles.", "source": "docs/assets/app.js + agents/build_intel_index.py", "tags": ["frontend", "movers", "coingecko", "investigations", "multi-chain", "lesson"], "confidence": 0.9, "timestamp": "2026-07-06T20:01:46.317355", "metadata": {"files": ["docs/assets/app.js", "agents/build_intel_index.py"]}} | |