DetVape commited on
Commit
6edbf17
·
verified ·
1 Parent(s): 6cdef95

Sync from GitHub via hub-sync

Browse files
README.md CHANGED
@@ -555,7 +555,8 @@ VAPE now runs **autonomous end-to-end investigations** and publishes them to a *
555
 
556
  | Component | What it does |
557
  |-----------|--------------|
558
- | **`agents/investigate.py`** | Deep-investigation engine (zero-LLM, real data). Auto-selects the highest-signal live Base target (violent movers / low-liquidity pools), runs GoPlus token-security + DexScreener liquidity + Base-RPC code presence + Etherscan V2 verification + recent-hack technique correlation, computes a CertiK-style 0–100 safety score — risk is the default state, not the exception: ownership-renouncement, holder concentration, tiered pair-age, and known meme-factory-template detection (e.g. Clanker) all factor in, and a clean red-flag sweep alone is capped below PROCEED tier without real positive legitimacy signals (deep liquidity, real holder base, track record, custom verified code) — and files a verdict report to `intel/investigations/`, logs a `finding` to Memory, and appends the catalog. Run `--auto` or `--address 0x…`. |
 
559
  | **`agents/build_intel_index.py`** | Zero-LLM parser that turns every produced artifact (reports, broadcasts, investigations, catalog, tools, skills) into a machine-readable, **linkable** `data/intel-index.json` — each entry deep-links to its exact source file on GitHub. |
560
  | **Live dashboard** | [`juxtaposition1.github.io/V.A.P.E`](https://juxtaposition1.github.io/V.A.P.E/) now leads with a **Latest Investigation** hero (verdict + score + rationale) and an **Intel Explorer** — tabbed, filterable, fully linkable sections for Investigations / Reports (by domain) / Broadcasts / Tools. Refreshes every cycle. |
561
  | **Cycle wiring** | Both the hourly CI (`bounty-cycle.yml`) and the local 4h sweep (`scripts/intel_sync.sh`) now run the investigation + rebuild the index before committing — so the site stays current with zero extra compute. |
 
555
 
556
  | Component | What it does |
557
  |-----------|--------------|
558
+ | **`agents/investigate.py`** | Deep-investigation engine (zero-LLM, real data). Auto-selects the highest-signal live Base target (violent movers / low-liquidity pools), runs GoPlus token-security + DexScreener liquidity + Base-RPC code presence + Etherscan V2 verification + recent-hack technique correlation, computes a CertiK-style 0–100 safety score — risk is the default state, not the exception: ownership-renouncement, holder concentration, tiered pair-age, and known meme-factory-template detection (e.g. Clanker) all factor in, and a clean red-flag sweep alone is capped below PROCEED tier without real positive legitimacy signals (deep liquidity, real holder base, track record, custom verified code) — and files a verdict report to `intel/investigations/`, logs a `finding` to Memory, and appends the catalog. Every real verdict is permanently recorded in `intel/investigations/ledger.json`, keyed by address — auto mode (`--auto`) never re-investigates an address already on record (no more repeat reports on the same token); `--address` always forces a fresh check, the documented exception for a hired job or a deliberate deep-dive. `fail-list.md` / `caution-list.md` / `pass-list.md` are regenerated from the ledger every run. `agents/review_ledger.py` periodically re-checks the oldest-reviewed addresses in each list against fresh data (pass/caution weekly, fail monthly) and logs a real finding whenever a past verdict no longer holds — VAPE checking its own accuracy over time. |
559
+ | **`agents/token_scan.py`** | The free Hunt console + paid x402 quick-check tier (also ported field-for-field to `worker/src/scan.ts` and `docs/assets/app.js`, kept in sync by `.github/workflows/scan-parity.yml`). Same real GoPlus+DexScreener data as the deep investigation, with the checks that don't need an optional Etherscan key: holder count, LP-holder concentration, pair age, and GoPlus's own blacklist/selfdestruct/airdrop-scam flags (hard-reject tier, same as honeypot) — plus a DexScreener self-declared socials/website presence check. Contract-verification-based checks (e.g. meme-factory-template detection) stay investigate.py-only since the browser path can't hold an Etherscan key safely. |
560
  | **`agents/build_intel_index.py`** | Zero-LLM parser that turns every produced artifact (reports, broadcasts, investigations, catalog, tools, skills) into a machine-readable, **linkable** `data/intel-index.json` — each entry deep-links to its exact source file on GitHub. |
561
  | **Live dashboard** | [`juxtaposition1.github.io/V.A.P.E`](https://juxtaposition1.github.io/V.A.P.E/) now leads with a **Latest Investigation** hero (verdict + score + rationale) and an **Intel Explorer** — tabbed, filterable, fully linkable sections for Investigations / Reports (by domain) / Broadcasts / Tools. Refreshes every cycle. |
562
  | **Cycle wiring** | Both the hourly CI (`bounty-cycle.yml`) and the local 4h sweep (`scripts/intel_sync.sh`) now run the investigation + rebuild the index before committing — so the site stays current with zero extra compute. |
agents/acp_fulfill.py CHANGED
@@ -72,7 +72,8 @@ def _rug_pull(req):
72
  if "error" in r:
73
  return r
74
  rug = [f for f in r.get("flags", []) if f in
75
- ("HONEYPOT", "mintable", "owner_not_renounced", "cannot_sell_all", "transfer_pausable")]
 
76
  return {"address": a, "rug_risk": "HIGH" if (r.get("is_honeypot") == "1" or len(rug) >= 2) else "LOW",
77
  "owner_powers": rug, "verdict": r.get("verdict")}
78
 
 
72
  if "error" in r:
73
  return r
74
  rug = [f for f in r.get("flags", []) if f in
75
+ ("HONEYPOT", "mintable", "owner_not_renounced", "cannot_sell_all", "transfer_pausable",
76
+ "is_blacklisted", "selfdestruct", "is_airdrop_scam", "lp_concentrated")]
77
  return {"address": a, "rug_risk": "HIGH" if (r.get("is_honeypot") == "1" or len(rug) >= 2) else "LOW",
78
  "owner_powers": rug, "verdict": r.get("verdict")}
79
 
agents/build_intel_index.py CHANGED
@@ -188,8 +188,13 @@ def scan_investigations():
188
  """Structured investigation records from intel/investigations/*.md (new deep
189
  investigations) + the legacy catalog table rows."""
190
  out = []
191
- # 1) dedicated investigation reports
192
- for fp in sorted(glob.glob(os.path.join(ROOT, "intel/investigations/*.md")), reverse=True):
 
 
 
 
 
193
  name = os.path.basename(fp)
194
  txt = _read(fp)
195
  verdict_raw = _field(txt, "Verdict") or ""
 
188
  """Structured investigation records from intel/investigations/*.md (new deep
189
  investigations) + the legacy catalog table rows."""
190
  out = []
191
+ # 1) dedicated investigation reports — matches write_report()'s exact
192
+ # naming convention (investigation-<stamp>-<short>.md). Deliberately NOT
193
+ # the broader "*.md" glob: intel/investigations/ also holds
194
+ # fail-list.md/caution-list.md/pass-list.md (regenerated summary views,
195
+ # not individual reports — different structure, no Verdict:/Target:
196
+ # fields, would otherwise get misparsed into garbage null entries here).
197
+ for fp in sorted(glob.glob(os.path.join(ROOT, "intel/investigations/investigation-*.md")), reverse=True):
198
  name = os.path.basename(fp)
199
  txt = _read(fp)
200
  verdict_raw = _field(txt, "Verdict") or ""
agents/investigate.py CHANGED
@@ -42,6 +42,12 @@ if ROOT not in sys.path:
42
 
43
  INVEST_DIR = os.path.join(ROOT, "intel", "investigations")
44
  CATALOG = os.path.join(ROOT, "intel", "catalog", "investigation-catalog.md")
 
 
 
 
 
 
45
  BASE_RPC = os.getenv("BASE_RPC_URL", "https://mainnet.base.org")
46
  UA = {"User-Agent": "VAPE-PrivateEye/1.0"}
47
 
@@ -321,9 +327,13 @@ def score(gp, dex, onchain, verif):
321
 
322
  # ── target selection ──────────────────────────────────────────────────────────
323
  def auto_target():
324
- """Pick the highest-signal Base target from live data (violent/low-liq movers)."""
 
 
 
325
  if not DF:
326
  return None
 
327
  movers = DF.get_base_movers(limit=10)
328
  cands = movers.get("biggest_movers") or []
329
  # prefer big movers with a resolvable token; fall back to top volume pools
@@ -337,7 +347,7 @@ def auto_target():
337
  for p in (d.get("pairs") or []) if isinstance(d, dict) else []:
338
  if str(p.get("chainId", "")).lower() == "base":
339
  addr = (p.get("baseToken") or {}).get("address")
340
- if addr:
341
  return {"address": addr, "hint": f"auto: mover {m.get('name')} {m.get('change_24h_pct')}%"}
342
  return None
343
 
@@ -466,21 +476,74 @@ def update_catalog(target, sym, verdict, s, reasons, report_rel):
466
  f.write("\n" + row + "\n")
467
 
468
 
469
- def _recently_investigated(address, hours=12):
470
- """Skip targets already investigated within the window (avoid re-hammering)."""
 
 
 
 
 
 
 
 
 
471
  try:
472
- cutoff = time.time() - hours * 3600
473
- for fp in glob_investigations():
474
- if address[:10].lower() in os.path.basename(fp).lower() and os.path.getmtime(fp) > cutoff:
475
- return True
476
  except Exception:
477
- pass
478
- return False
479
 
480
 
481
- def glob_investigations():
482
- import glob as _g
483
- return _g.glob(os.path.join(INVEST_DIR, "*.md"))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
484
 
485
 
486
  def investigate(address, chain="8453", hint="", force=False):
@@ -488,9 +551,14 @@ def investigate(address, chain="8453", hint="", force=False):
488
  if not re.match(r"^0x[a-fA-F0-9]{40}$", address):
489
  return {"error": f"invalid address: {address}"}
490
 
491
- if not force and _recently_investigated(address):
492
- print(f"[investigate] skip {address} — investigated within last 12h")
493
- return {"target": address, "skipped": "recently_investigated"}
 
 
 
 
 
494
 
495
  print(f"[investigate] target {address} ({hint})")
496
  gp = goplus_security(address, chain)
@@ -504,6 +572,8 @@ def investigate(address, chain="8453", hint="", force=False):
504
  rel = os.path.relpath(path, ROOT).replace(os.sep, "/")
505
  log_memory(address, sym, verdict, s, reasons, rel)
506
  update_catalog(address, sym, verdict, s, reasons, rel)
 
 
507
 
508
  print(f"[investigate] {emoji} {verdict} {s}/100 — {sym} → {rel}")
509
  return {"target": address, "symbol": sym, "verdict": verdict, "score": s,
 
42
 
43
  INVEST_DIR = os.path.join(ROOT, "intel", "investigations")
44
  CATALOG = os.path.join(ROOT, "intel", "catalog", "investigation-catalog.md")
45
+ LEDGER_PATH = os.path.join(INVEST_DIR, "ledger.json")
46
+ LIST_PATHS = {
47
+ "REJECT": os.path.join(INVEST_DIR, "fail-list.md"),
48
+ "CAUTION": os.path.join(INVEST_DIR, "caution-list.md"),
49
+ "PROCEED": os.path.join(INVEST_DIR, "pass-list.md"),
50
+ }
51
  BASE_RPC = os.getenv("BASE_RPC_URL", "https://mainnet.base.org")
52
  UA = {"User-Agent": "VAPE-PrivateEye/1.0"}
53
 
 
327
 
328
  # ── target selection ──────────────────────────────────────────────────────────
329
  def auto_target():
330
+ """Pick the highest-signal Base target from live data (violent/low-liq movers)
331
+ that VAPE hasn't already reached a real verdict on — skip anything already
332
+ in the ledger so auto mode never wastes a cycle re-discovering a target
333
+ it's just going to turn around and skip anyway."""
334
  if not DF:
335
  return None
336
+ ledger = _load_ledger()
337
  movers = DF.get_base_movers(limit=10)
338
  cands = movers.get("biggest_movers") or []
339
  # prefer big movers with a resolvable token; fall back to top volume pools
 
347
  for p in (d.get("pairs") or []) if isinstance(d, dict) else []:
348
  if str(p.get("chainId", "")).lower() == "base":
349
  addr = (p.get("baseToken") or {}).get("address")
350
+ if addr and addr.lower() not in ledger:
351
  return {"address": addr, "hint": f"auto: mover {m.get('name')} {m.get('change_24h_pct')}%"}
352
  return None
353
 
 
476
  f.write("\n" + row + "\n")
477
 
478
 
479
+ # ── ledger: permanent record of every real verdict, keyed by address ────────
480
+ # The single database VAPE checks before ever auto-investigating a target
481
+ # again, and the source of truth for the fail/caution/pass lists below.
482
+ # Replaces the old _recently_investigated() 12-hour window, which only
483
+ # prevented re-hammering a target within half a day — it said nothing about
484
+ # a token VAPE had already reached a real verdict on a week ago, which is
485
+ # exactly the repeat-investigation loop this was built to stop. Auto mode
486
+ # checks this and skips permanently; --address (a human/paying-job-driven
487
+ # hire, or a deliberate deep-dive) always passes force=True and can still
488
+ # re-investigate on demand — the two documented, legitimate exceptions.
489
+ def _load_ledger():
490
  try:
491
+ with open(LEDGER_PATH) as f:
492
+ return json.load(f)
 
 
493
  except Exception:
494
+ return {}
 
495
 
496
 
497
+ def _save_ledger(ledger):
498
+ os.makedirs(os.path.dirname(LEDGER_PATH), exist_ok=True)
499
+ with open(LEDGER_PATH, "w") as f:
500
+ json.dump(ledger, f, indent=2, sort_keys=True)
501
+ f.write("\n")
502
+
503
+
504
+ def ledger_entry(address):
505
+ return _load_ledger().get(address.lower())
506
+
507
+
508
+ def _update_ledger(address, sym, verdict, s, report_rel):
509
+ ledger = _load_ledger()
510
+ key = address.lower()
511
+ entry = ledger.get(key, {"first_investigated": now_iso(), "times_investigated": 0, "history": []})
512
+ entry["address"] = address # original checksum/case, for display — key stays lowercase for lookup
513
+ entry["symbol"] = sym
514
+ entry["last_investigated"] = now_iso()
515
+ entry["times_investigated"] = entry.get("times_investigated", 0) + 1
516
+ entry["last_verdict"] = verdict
517
+ entry["last_score"] = s
518
+ entry.setdefault("history", []).append({"ts": now_iso(), "verdict": verdict, "score": s, "report": report_rel})
519
+ entry["history"] = entry["history"][-20:] # cap per-address history, this is a ledger not a full replay log
520
+ ledger[key] = entry
521
+ _save_ledger(ledger)
522
+ return ledger
523
+
524
+
525
+ def regenerate_lists(ledger):
526
+ """Real, regenerated-every-run views VAPE (and anyone else) can read
527
+ without touching the raw ledger: every address currently on record,
528
+ grouped by its LAST real verdict. This is the fail/caution/pass list."""
529
+ by_verdict = {"REJECT": [], "CAUTION": [], "PROCEED": []}
530
+ for addr, entry in ledger.items():
531
+ v = entry.get("last_verdict")
532
+ if v in by_verdict:
533
+ by_verdict[v].append((addr, entry))
534
+
535
+ titles = {"REJECT": "🔴 Fail List (REJECT)", "CAUTION": "���� Caution List", "PROCEED": "🟢 Pass List (PROCEED)"}
536
+ for verdict, path in LIST_PATHS.items():
537
+ rows = sorted(by_verdict[verdict], key=lambda kv: kv[1].get("last_investigated", ""), reverse=True)
538
+ lines = [f"# VAPE {titles[verdict]}", "",
539
+ f"_Regenerated {now_iso()} — {len(rows)} address(es) currently on record with a last verdict of {verdict}._",
540
+ "", "| Symbol | Address | Score | Times Checked | Last Investigated |",
541
+ "|--------|---------|-------|----------------|--------------------|"]
542
+ for addr, entry in rows:
543
+ lines.append(f"| {entry.get('symbol', '?')} | `{entry.get('address', addr)}` | {entry.get('last_score')}/100 | "
544
+ f"{entry.get('times_investigated', 1)} | {entry.get('last_investigated', '?')} |")
545
+ with open(path, "w") as f:
546
+ f.write("\n".join(lines) + "\n")
547
 
548
 
549
  def investigate(address, chain="8453", hint="", force=False):
 
551
  if not re.match(r"^0x[a-fA-F0-9]{40}$", address):
552
  return {"error": f"invalid address: {address}"}
553
 
554
+ existing = ledger_entry(address)
555
+ if not force and existing:
556
+ print(f"[investigate] skip {address} — already on record: {existing['last_verdict']} "
557
+ f"{existing['last_score']}/100 on {existing['last_investigated']} "
558
+ f"({existing.get('times_investigated', 1)}x checked). Use --address to force a re-check "
559
+ "(hire / deep-dive exception).")
560
+ return {"target": address, "skipped": "already_investigated",
561
+ "last_verdict": existing["last_verdict"], "last_score": existing["last_score"]}
562
 
563
  print(f"[investigate] target {address} ({hint})")
564
  gp = goplus_security(address, chain)
 
572
  rel = os.path.relpath(path, ROOT).replace(os.sep, "/")
573
  log_memory(address, sym, verdict, s, reasons, rel)
574
  update_catalog(address, sym, verdict, s, reasons, rel)
575
+ ledger = _update_ledger(address, sym, verdict, s, rel)
576
+ regenerate_lists(ledger)
577
 
578
  print(f"[investigate] {emoji} {verdict} {s}/100 — {sym} → {rel}")
579
  return {"target": address, "symbol": sym, "verdict": verdict, "score": s,
agents/review_ledger.py ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ VAPE ledger self-review — periodically re-checks its OWN past verdicts
3
+ against fresh real data, so it can tell where it was accurate and where it
4
+ wasn't. This is how the pass/caution/fail lists (agents/investigate.py's
5
+ ledger.json + fail/caution/pass-list.md) become a growing, self-correcting
6
+ database instead of a write-once log nobody ever looks at again.
7
+
8
+ Does not duplicate any recon/scoring logic: it picks WHICH addresses are
9
+ most overdue for a re-check (oldest-last-checked within a category first),
10
+ then calls the real agents/investigate.py::investigate(address, force=True)
11
+ for each — the exact same pipeline a hired/deep-dive re-check would use.
12
+ Drift (the verdict materially changed) is logged as a real Memory finding;
13
+ no drift just refreshes last_investigated so the sampling naturally rotates
14
+ through the whole list over repeated runs instead of hammering the same
15
+ handful of addresses.
16
+
17
+ Usage:
18
+ python agents/review_ledger.py --categories pass,caution --sample 5
19
+ python agents/review_ledger.py --categories fail --sample 5
20
+ """
21
+ import argparse
22
+ import os
23
+ import sys
24
+ from datetime import datetime, timezone
25
+
26
+ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
27
+ from agents import investigate as inv # noqa: E402
28
+
29
+ try:
30
+ from skillforge.memory.retriever import append_to_memory
31
+ except Exception:
32
+ append_to_memory = None
33
+
34
+ REVIEWS_DIR = os.path.join(inv.ROOT, "intel", "investigations", "reviews")
35
+
36
+ VERDICT_RANK = {"REJECT": 0, "CAUTION": 1, "PROCEED": 2}
37
+
38
+
39
+ def _sample(category, n):
40
+ ledger = inv._load_ledger()
41
+ candidates = [(addr, e) for addr, e in ledger.items() if e.get("last_verdict") == category]
42
+ candidates.sort(key=lambda kv: kv[1].get("last_investigated", "")) # oldest-checked first
43
+ return candidates[:n]
44
+
45
+
46
+ def _drift_severity(old_verdict, new_verdict):
47
+ old_rank, new_rank = VERDICT_RANK.get(old_verdict, 1), VERDICT_RANK.get(new_verdict, 1)
48
+ if new_rank == old_rank:
49
+ return None
50
+ # Verdict got WORSE (a past PROCEED/CAUTION is now riskier) is the more
51
+ # actionable direction — someone may still be relying on the old verdict.
52
+ return "worsened" if new_rank < old_rank else "improved"
53
+
54
+
55
+ def review_category(category, sample_size):
56
+ results = []
57
+ for addr, old_entry in _sample(category, sample_size):
58
+ old_verdict, old_score = old_entry.get("last_verdict"), old_entry.get("last_score")
59
+ r = inv.investigate(old_entry.get("address", addr), force=True)
60
+ if r.get("error") or r.get("skipped"):
61
+ continue
62
+ new_verdict, new_score = r["verdict"], r["score"]
63
+ drift = _drift_severity(old_verdict, new_verdict)
64
+ results.append({
65
+ "address": old_entry.get("address", addr), "symbol": r.get("symbol"),
66
+ "old_verdict": old_verdict, "old_score": old_score,
67
+ "new_verdict": new_verdict, "new_score": new_score,
68
+ "drift": drift, "report": r.get("report"),
69
+ })
70
+ if drift and append_to_memory:
71
+ try:
72
+ append_to_memory(
73
+ category="lesson",
74
+ title=f"Ledger review: {r.get('symbol')} drifted {old_verdict}→{new_verdict} "
75
+ f"({old_score}→{new_score}/100)",
76
+ content=f"Self-review of a past {old_verdict} verdict for {old_entry.get('address', addr)} "
77
+ f"found the current real data now scores {new_verdict} ({new_score}/100) — "
78
+ f"drift: {drift}. Original verdict stood since {old_entry.get('first_investigated')}.",
79
+ source="agents/review_ledger.py",
80
+ tags=["self-review", "ledger", category.lower(), drift],
81
+ confidence=0.85,
82
+ metadata={"address": old_entry.get("address", addr), "old_verdict": old_verdict,
83
+ "new_verdict": new_verdict, "old_score": old_score, "new_score": new_score},
84
+ )
85
+ except Exception as e:
86
+ print(f"[review_ledger] could not log drift lesson: {e}")
87
+ return results
88
+
89
+
90
+ def main():
91
+ ap = argparse.ArgumentParser(description="VAPE ledger self-review")
92
+ ap.add_argument("--categories", default="pass,caution",
93
+ help="comma list of pass,caution,fail (default: pass,caution)")
94
+ ap.add_argument("--sample", type=int, default=5, help="max addresses re-checked per category")
95
+ args = ap.parse_args()
96
+
97
+ name_to_verdict = {"pass": "PROCEED", "caution": "CAUTION", "fail": "REJECT"}
98
+ categories = [name_to_verdict[c.strip().lower()] for c in args.categories.split(",") if c.strip().lower() in name_to_verdict]
99
+
100
+ os.makedirs(REVIEWS_DIR, exist_ok=True)
101
+ stamp = datetime.now(timezone.utc).strftime("%Y%m%d_%H%M%S")
102
+ report_path = os.path.join(REVIEWS_DIR, f"review-{stamp}.md")
103
+
104
+ all_results = {}
105
+ for cat in categories:
106
+ all_results[cat] = review_category(cat, args.sample)
107
+
108
+ lines = [f"# VAPE Ledger Self-Review — {datetime.now(timezone.utc).isoformat()}", ""]
109
+ total_drift = 0
110
+ for cat, results in all_results.items():
111
+ lines.append(f"## {cat} ({len(results)} re-checked)")
112
+ if not results:
113
+ lines.append("- Nothing on record in this category yet.")
114
+ for r in results:
115
+ status = f"DRIFT ({r['drift']})" if r["drift"] else "held"
116
+ total_drift += 1 if r["drift"] else 0
117
+ lines.append(f"- **{r['symbol']}** `{r['address']}` — {r['old_verdict']} {r['old_score']} → "
118
+ f"{r['new_verdict']} {r['new_score']} — {status}")
119
+ lines.append("")
120
+ lines.append(f"## Verdict\n{'Real drift found in ' + str(total_drift) + ' case(s) — see skillforge/memory/lessons.jsonl.' if total_drift else 'No verdict drift this cycle across the sampled addresses.'}")
121
+
122
+ with open(report_path, "w") as f:
123
+ f.write("\n".join(lines) + "\n")
124
+ print(f"[review_ledger] cycle complete ({total_drift} drift). Report: {os.path.relpath(report_path, inv.ROOT)}")
125
+
126
+
127
+ if __name__ == "__main__":
128
+ main()
agents/token_scan.py CHANGED
@@ -16,6 +16,7 @@ import json
16
  import os
17
  import re
18
  import sys
 
19
  import urllib.request
20
  from datetime import datetime, timezone
21
 
@@ -35,8 +36,26 @@ def _get(url, timeout=15):
35
  return {"_error": str(e)}
36
 
37
 
 
 
 
 
 
 
 
38
  def scan(address, chain_id=8453):
39
- """Return a structured verdict dict from real GoPlus + DexScreener data."""
 
 
 
 
 
 
 
 
 
 
 
40
  address = address.strip()
41
  if not re.fullmatch(r"0x[a-fA-F0-9]{40}", address):
42
  return {"error": "invalid_address", "address": address}
@@ -52,6 +71,11 @@ def scan(address, chain_id=8453):
52
 
53
  pairs = ds_raw.get("pairs") or [] if isinstance(ds_raw, dict) else []
54
  liquidity_usd = round(sum((p.get("liquidity") or {}).get("usd", 0) for p in pairs), 2)
 
 
 
 
 
55
 
56
  def f(x):
57
  try:
@@ -79,8 +103,32 @@ def scan(address, chain_id=8453):
79
  flags.append("cannot_sell_all")
80
  if gp.get("transfer_pausable") == "1":
81
  flags.append("transfer_pausable")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
- if gp.get("is_honeypot") == "1":
 
84
  verdict = "REJECT"
85
  elif len(flags) >= 2:
86
  verdict = "CAUTION"
@@ -96,7 +144,10 @@ def scan(address, chain_id=8453):
96
  "verdict": verdict,
97
  "flags": flags,
98
  "holder_count": gp.get("holder_count"),
 
99
  "liquidity_usd": liquidity_usd,
 
 
100
  "is_honeypot": gp.get("is_honeypot"),
101
  "buy_tax": gp.get("buy_tax"),
102
  "sell_tax": gp.get("sell_tax"),
@@ -121,11 +172,12 @@ def log_scan(result):
121
  f.write(f"- **Verdict:** {result['verdict']}\n")
122
  f.write(f"- **Address:** `{result['address']}` (chain {result['chain_id']})\n")
123
  f.write(f"- **Scanned:** {result['ts']}\n")
124
- f.write(f"- **Holders:** {result.get('holder_count')}\n")
125
  f.write(f"- **Liquidity (USD):** {result.get('liquidity_usd')}\n")
126
  f.write(f"- **Honeypot:** {result.get('is_honeypot')}\n")
127
  f.write(f"- **Buy/Sell tax:** {result.get('buy_tax')} / {result.get('sell_tax')}\n")
128
  f.write(f"- **Owner:** {result.get('owner_address')}\n")
 
129
  f.write(f"- **Flags:** {', '.join(result['flags']) if result['flags'] else 'none'}\n\n")
130
  f.write("_Real data: GoPlus token_security + DexScreener. Not investment advice._\n")
131
  with open(os.path.join(SCAN_DIR, "scans.jsonl"), "a") as f:
 
16
  import os
17
  import re
18
  import sys
19
+ import time
20
  import urllib.request
21
  from datetime import datetime, timezone
22
 
 
36
  return {"_error": str(e)}
37
 
38
 
39
+ # Hard-reject GoPlus fields — same tier as honeypot, not just an advisory
40
+ # flag. All three: real, documented GoPlus token_security fields, flat
41
+ # "0"/"1" strings like their siblings (is_mintable, is_proxy, etc.) already
42
+ # used above. Kept in its own list so scan.ts/app.js port identically.
43
+ HARD_REJECT_FIELDS = ("is_blacklisted", "selfdestruct", "is_airdrop_scam")
44
+
45
+
46
  def scan(address, chain_id=8453):
47
+ """Return a structured verdict dict from real GoPlus + DexScreener data.
48
+
49
+ Same CertiK-style "risk is the default, not the exception" checks added
50
+ to agents/investigate.py's deep-investigation scoring, ported to this
51
+ quick-scan tier wherever they're keyless (GoPlus + DexScreener only) so
52
+ the free Hunt console, the paid x402 offerings, and deep investigations
53
+ never disagree on the checks they share. Contract-verification-based
54
+ checks (e.g. meme-factory-template detection) stay investigate.py-only:
55
+ that needs an optional Etherscan key server-side, which the pure
56
+ browser path (docs/assets/app.js) can't safely hold client-side —
57
+ porting it here would silently diverge the browser from the other two.
58
+ """
59
  address = address.strip()
60
  if not re.fullmatch(r"0x[a-fA-F0-9]{40}", address):
61
  return {"error": "invalid_address", "address": address}
 
71
 
72
  pairs = ds_raw.get("pairs") or [] if isinstance(ds_raw, dict) else []
73
  liquidity_usd = round(sum((p.get("liquidity") or {}).get("usd", 0) for p in pairs), 2)
74
+ # Oldest pair creation timestamp across all pairs — a token's real track
75
+ # record starts at its FIRST pair, not whichever pair happens to be
76
+ # deepest right now.
77
+ pair_created_ms = min((p.get("pairCreatedAt") for p in pairs if p.get("pairCreatedAt")), default=None)
78
+ has_socials = any((p.get("info") or {}).get("socials") or (p.get("info") or {}).get("websites") for p in pairs)
79
 
80
  def f(x):
81
  try:
 
103
  flags.append("cannot_sell_all")
104
  if gp.get("transfer_pausable") == "1":
105
  flags.append("transfer_pausable")
106
+ for field in HARD_REJECT_FIELDS:
107
+ if gp.get(field) == "1":
108
+ flags.append(field)
109
+ try:
110
+ lp_holders = int(gp.get("lp_holder_count")) if gp.get("lp_holder_count") not in (None, "") else None
111
+ except Exception:
112
+ lp_holders = None
113
+ if lp_holders is not None and lp_holders <= 1:
114
+ flags.append("lp_concentrated")
115
+ try:
116
+ holders = int(gp.get("holder_count")) if gp.get("holder_count") not in (None, "") else None
117
+ except Exception:
118
+ holders = None
119
+ if holders is not None and holders < 50:
120
+ flags.append("low_holder_count")
121
+ if pair_created_ms:
122
+ try:
123
+ if (time.time() * 1000 - float(pair_created_ms)) / 86400000 < 3:
124
+ flags.append("fresh_launch")
125
+ except Exception:
126
+ pass
127
+ if not has_socials:
128
+ flags.append("no_declared_socials")
129
 
130
+ hard_reject = gp.get("is_honeypot") == "1" or any(gp.get(field) == "1" for field in HARD_REJECT_FIELDS)
131
+ if hard_reject:
132
  verdict = "REJECT"
133
  elif len(flags) >= 2:
134
  verdict = "CAUTION"
 
144
  "verdict": verdict,
145
  "flags": flags,
146
  "holder_count": gp.get("holder_count"),
147
+ "lp_holder_count": gp.get("lp_holder_count"),
148
  "liquidity_usd": liquidity_usd,
149
+ "pair_created_ms": pair_created_ms,
150
+ "has_declared_socials": has_socials,
151
  "is_honeypot": gp.get("is_honeypot"),
152
  "buy_tax": gp.get("buy_tax"),
153
  "sell_tax": gp.get("sell_tax"),
 
172
  f.write(f"- **Verdict:** {result['verdict']}\n")
173
  f.write(f"- **Address:** `{result['address']}` (chain {result['chain_id']})\n")
174
  f.write(f"- **Scanned:** {result['ts']}\n")
175
+ f.write(f"- **Holders:** {result.get('holder_count')} (LP holders: {result.get('lp_holder_count')})\n")
176
  f.write(f"- **Liquidity (USD):** {result.get('liquidity_usd')}\n")
177
  f.write(f"- **Honeypot:** {result.get('is_honeypot')}\n")
178
  f.write(f"- **Buy/Sell tax:** {result.get('buy_tax')} / {result.get('sell_tax')}\n")
179
  f.write(f"- **Owner:** {result.get('owner_address')}\n")
180
+ f.write(f"- **Declared socials/website (self-reported, unverified):** {result.get('has_declared_socials')}\n")
181
  f.write(f"- **Flags:** {', '.join(result['flags']) if result['flags'] else 'none'}\n\n")
182
  f.write("_Real data: GoPlus token_security + DexScreener. Not investment advice._\n")
183
  with open(os.path.join(SCAN_DIR, "scans.jsonl"), "a") as f:
data/intel-index.json CHANGED
@@ -1,10 +1,10 @@
1
  {
2
- "generated": "2026-07-04T16:07:07Z",
3
  "repo": "jUXTAPOSITION1/V.A.P.E",
4
  "counts": {
5
- "reports": 303,
6
  "reports_by_type": {
7
- "bounty": 160,
8
  "security": 28,
9
  "sentiment": 27,
10
  "base": 28,
@@ -18,38 +18,51 @@
18
  "attack": 1
19
  },
20
  "broadcasts": 27,
21
- "investigations": 19,
22
  "tools": 15,
23
- "tools_verified": 14,
24
  "skills": 4
25
  },
26
  "latest_summary": {
27
  "investigation": {
28
  "source": "report",
29
- "file": "investigation-20260704-101133-0x044098A1.md",
30
- "title": "\ud83d\udd75\ufe0f VAPE Investigation \u2014 America250",
31
- "symbol": "America250",
32
- "date": "2026-07-04T10:11:33Z",
33
- "target": "0x044098A1b8B8e175035842952986bea0E2333B07",
34
  "chain": "8453 (Base)",
35
  "verdict": "PROCEED",
36
- "score": "90",
37
- "summary": "[-10] Low liquidity $34,531",
38
- "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/intel/investigations/investigation-20260704-101133-0x044098A1.md"
39
  },
40
  "report": {
41
  "kind": "bounty",
42
  "type": "bounty",
43
- "file": "bounty_report_20260704_160359.md",
44
  "title": "\ud83e\udd8d V.A.P.E. Intelligence Report",
45
- "date": "2026-07-04T16:03:59Z",
46
  "threat": null,
47
- "summary": "Cycle: 20260704160359 \u00b7 Data timestamp (UTC): 2026-07-04T16:04:02Z Coverage: Investigations \u00b7 Tool Gaps \u00b7 Security \u00b7 Base \u00b7 Macro \u00b7 Virtuals",
48
- "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/reports/bounty_report_20260704_160359.md",
49
- "bytes": 10351
50
  }
51
  },
52
  "investigations": [
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  {
54
  "source": "report",
55
  "file": "investigation-20260704-101133-0x044098A1.md",
@@ -276,9 +289,31 @@
276
  "verdict": "PROCEED (90/100)",
277
  "key_finding": "Low liquidity $34,531",
278
  "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/intel/catalog/investigation-catalog.md"
 
 
 
 
 
 
 
 
 
 
 
279
  }
280
  ],
281
  "reports": [
 
 
 
 
 
 
 
 
 
 
 
282
  {
283
  "kind": "bounty",
284
  "type": "bounty",
@@ -927,17 +962,6 @@
927
  "summary": "",
928
  "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/reports/bounty_report_20260629_173823.md",
929
  "bytes": 7146
930
- },
931
- {
932
- "kind": "bounty",
933
- "type": "bounty",
934
- "file": "bounty_report_20260629_140548.md",
935
- "title": "VAPE Report - 20260629_140548",
936
- "date": "2026-06-29T14:05:48Z",
937
- "threat": null,
938
- "summary": "",
939
- "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/reports/bounty_report_20260629_140548.md",
940
- "bytes": 6269
941
  }
942
  ],
943
  "broadcasts": [
@@ -1165,7 +1189,7 @@
1165
  {
1166
  "name": "echidna",
1167
  "tier": "fuzzing",
1168
- "status": "verified",
1169
  "version": "Echidna 2.3.2",
1170
  "purpose": "Property-based smart contract fuzzer.",
1171
  "repo": "crytic/echidna",
@@ -1175,7 +1199,7 @@
1175
  {
1176
  "name": "foundry",
1177
  "tier": "fuzzing",
1178
- "status": "verified",
1179
  "version": "forge Version: 1.7.1",
1180
  "purpose": "Forge fuzz + invariant testing, Anvil mainnet-fork PoC.",
1181
  "repo": "foundry-rs/foundry",
@@ -1216,7 +1240,7 @@
1216
  "name": "base_rpc",
1217
  "tier": "recon",
1218
  "status": "verified",
1219
- "version": "48192579",
1220
  "purpose": "Query Base mainnet via public JSON-RPC: balance, nonce, gas, block. No key, no LLM.",
1221
  "repo": "(local)",
1222
  "known_limitation": false,
@@ -1226,7 +1250,7 @@
1226
  "name": "market_data",
1227
  "tier": "recon",
1228
  "status": "verified",
1229
- "version": "btc_dom 55.57 eth_dom 9.44 mcap_chg_24h 0.9",
1230
  "purpose": "Free crypto market data via CoinGecko + DeFiLlama: price/chg/vol/mcap, dominance, chain TVL.",
1231
  "repo": "(local)",
1232
  "known_limitation": false,
 
1
  {
2
+ "generated": "2026-07-04T18:06:03Z",
3
  "repo": "jUXTAPOSITION1/V.A.P.E",
4
  "counts": {
5
+ "reports": 304,
6
  "reports_by_type": {
7
+ "bounty": 161,
8
  "security": 28,
9
  "sentiment": 27,
10
  "base": 28,
 
18
  "attack": 1
19
  },
20
  "broadcasts": 27,
21
+ "investigations": 21,
22
  "tools": 15,
23
+ "tools_verified": 12,
24
  "skills": 4
25
  },
26
  "latest_summary": {
27
  "investigation": {
28
  "source": "report",
29
+ "file": "investigation-20260704-180603-0xDB879F45.md",
30
+ "title": "\ud83d\udd75\ufe0f VAPE Investigation \u2014 CLAUDE",
31
+ "symbol": "CLAUDE",
32
+ "date": "2026-07-04T18:06:03Z",
33
+ "target": "0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892",
34
  "chain": "8453 (Base)",
35
  "verdict": "PROCEED",
36
+ "score": "88",
37
+ "summary": "- Target: 0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892 - Chain: 8453 (Base) - Date: 2026-07-04T18:06:03Z - Verdict: \ud83d\udfe2 PROCEED - Safety Score: 88/100",
38
+ "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/intel/investigations/investigation-20260704-180603-0xDB879F45.md"
39
  },
40
  "report": {
41
  "kind": "bounty",
42
  "type": "bounty",
43
+ "file": "bounty_report_20260704_180250.md",
44
  "title": "\ud83e\udd8d V.A.P.E. Intelligence Report",
45
+ "date": "2026-07-04T18:02:50Z",
46
  "threat": null,
47
+ "summary": "Cycle: 20260704180250 \u00b7 Data timestamp (UTC): 2026-07-04T18:02:56Z Coverage: Investigations \u00b7 Tool Gaps \u00b7 Security \u00b7 Base \u00b7 Macro \u00b7 Virtuals",
48
+ "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/reports/bounty_report_20260704_180250.md",
49
+ "bytes": 10423
50
  }
51
  },
52
  "investigations": [
53
+ {
54
+ "source": "report",
55
+ "file": "investigation-20260704-180603-0xDB879F45.md",
56
+ "title": "\ud83d\udd75\ufe0f VAPE Investigation \u2014 CLAUDE",
57
+ "symbol": "CLAUDE",
58
+ "date": "2026-07-04T18:06:03Z",
59
+ "target": "0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892",
60
+ "chain": "8453 (Base)",
61
+ "verdict": "PROCEED",
62
+ "score": "88",
63
+ "summary": "- Target: 0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892 - Chain: 8453 (Base) - Date: 2026-07-04T18:06:03Z - Verdict: \ud83d\udfe2 PROCEED - Safety Score: 88/100",
64
+ "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/intel/investigations/investigation-20260704-180603-0xDB879F45.md"
65
+ },
66
  {
67
  "source": "report",
68
  "file": "investigation-20260704-101133-0x044098A1.md",
 
289
  "verdict": "PROCEED (90/100)",
290
  "key_finding": "Low liquidity $34,531",
291
  "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/intel/catalog/investigation-catalog.md"
292
+ },
293
+ {
294
+ "source": "catalog",
295
+ "date": "2026-07-04",
296
+ "job_id": "auto",
297
+ "target": "0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892",
298
+ "symbol": "CLAUDE",
299
+ "offering": "deep_investigation",
300
+ "verdict": "PROCEED (88/100)",
301
+ "key_finding": "Mintable supply (dilution risk)",
302
+ "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/intel/catalog/investigation-catalog.md"
303
  }
304
  ],
305
  "reports": [
306
+ {
307
+ "kind": "bounty",
308
+ "type": "bounty",
309
+ "file": "bounty_report_20260704_180250.md",
310
+ "title": "\ud83e\udd8d V.A.P.E. Intelligence Report",
311
+ "date": "2026-07-04T18:02:50Z",
312
+ "threat": null,
313
+ "summary": "Cycle: 20260704180250 \u00b7 Data timestamp (UTC): 2026-07-04T18:02:56Z Coverage: Investigations \u00b7 Tool Gaps \u00b7 Security \u00b7 Base \u00b7 Macro \u00b7 Virtuals",
314
+ "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/reports/bounty_report_20260704_180250.md",
315
+ "bytes": 10423
316
+ },
317
  {
318
  "kind": "bounty",
319
  "type": "bounty",
 
962
  "summary": "",
963
  "url": "https://github.com/jUXTAPOSITION1/V.A.P.E/blob/main/reports/bounty_report_20260629_173823.md",
964
  "bytes": 7146
 
 
 
 
 
 
 
 
 
 
 
965
  }
966
  ],
967
  "broadcasts": [
 
1189
  {
1190
  "name": "echidna",
1191
  "tier": "fuzzing",
1192
+ "status": "broken",
1193
  "version": "Echidna 2.3.2",
1194
  "purpose": "Property-based smart contract fuzzer.",
1195
  "repo": "crytic/echidna",
 
1199
  {
1200
  "name": "foundry",
1201
  "tier": "fuzzing",
1202
+ "status": "broken",
1203
  "version": "forge Version: 1.7.1",
1204
  "purpose": "Forge fuzz + invariant testing, Anvil mainnet-fork PoC.",
1205
  "repo": "foundry-rs/foundry",
 
1240
  "name": "base_rpc",
1241
  "tier": "recon",
1242
  "status": "verified",
1243
+ "version": "48198781",
1244
  "purpose": "Query Base mainnet via public JSON-RPC: balance, nonce, gas, block. No key, no LLM.",
1245
  "repo": "(local)",
1246
  "known_limitation": false,
 
1250
  "name": "market_data",
1251
  "tier": "recon",
1252
  "status": "verified",
1253
+ "version": "btc_dom 55.59 eth_dom 9.48 mcap_chg_24h 1.62",
1254
  "purpose": "Free crypto market data via CoinGecko + DeFiLlama: price/chg/vol/mcap, dominance, chain TVL.",
1255
  "repo": "(local)",
1256
  "known_limitation": false,
data/reputation.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "generated": "2026-07-04T17:46:41Z",
3
  "identity": {
4
  "agent": "VAPE",
5
  "name": "Virtual Ape Private Eye",
@@ -12,10 +12,10 @@
12
  "verify_identity": "https://app.virtuals.io/acp/agent/019eaf60-592a-7f5c-99a2-3e85199303fe"
13
  },
14
  "verifiable_activity": {
15
- "reports_published": 321,
16
  "intel_reports": 143,
17
  "intel_broadcasts": 27,
18
- "catalog_investigations": 9,
19
  "token_scans_logged": 0,
20
  "skills_codified": 4,
21
  "tools_total": 15,
 
1
  {
2
+ "generated": "2026-07-04T18:15:35Z",
3
  "identity": {
4
  "agent": "VAPE",
5
  "name": "Virtual Ape Private Eye",
 
12
  "verify_identity": "https://app.virtuals.io/acp/agent/019eaf60-592a-7f5c-99a2-3e85199303fe"
13
  },
14
  "verifiable_activity": {
15
+ "reports_published": 323,
16
  "intel_reports": 143,
17
  "intel_broadcasts": 27,
18
+ "catalog_investigations": 13,
19
  "token_scans_logged": 0,
20
  "skills_codified": 4,
21
  "tools_total": 15,
docs/ARCHITECTURE.md CHANGED
@@ -56,6 +56,18 @@ Runs hourly in GitHub Actions (`.github/workflows/bounty-cycle.yml`).
56
  - **`vape.py` / `hack.py`** — persona engines with `vape_system.md` / `hack_system.md` prompts.
57
  - **`tools.py`** — `fetch_bounties()`, `log_report()`.
58
  - **`acp_fulfill.py` / `wallet.py`** 🟡 — ACP job fulfillment + wallet scaffolding (signing via ACP CLI).
 
 
 
 
 
 
 
 
 
 
 
 
59
  - **`scout.py`** ✅ — bounty-radar triage, rule-based fit scoring (no LLM), hourly via `scout.yml`.
60
  - **`self_improve.py`** ✅ — finds one real, evidence-backed issue, priority order: (1)
61
  unaddressed CRITICAL/HIGH findings from the AI red-team tools below — closes the loop
 
56
  - **`vape.py` / `hack.py`** — persona engines with `vape_system.md` / `hack_system.md` prompts.
57
  - **`tools.py`** — `fetch_bounties()`, `log_report()`.
58
  - **`acp_fulfill.py` / `wallet.py`** 🟡 — ACP job fulfillment + wallet scaffolding (signing via ACP CLI).
59
+ - **`investigate.py`** ✅ — deep-investigation engine, CertiK-style scoring (risk is the default,
60
+ not the exception — see README's table for the full check list). Every real verdict is
61
+ permanent in `intel/investigations/ledger.json`; auto mode never re-investigates an address
62
+ already on record, `--address` always forces a re-check (hired job / deliberate deep-dive).
63
+ `fail-list.md`/`caution-list.md`/`pass-list.md` regenerate from the ledger every run.
64
+ - **`review_ledger.py`** ✅ — self-review: re-checks the oldest-reviewed addresses per list
65
+ against fresh data (pass/caution weekly, fail monthly, `review-ledger.yml`), logs a real
66
+ finding when a past verdict drifts. This is VAPE auditing its own track record, not just
67
+ producing new ones.
68
+ - **`token_scan.py`** ✅ — free Hunt console + paid x402 quick-check, same keyless checks as
69
+ `investigate.py` minus the ones needing an optional Etherscan key. Ported field-for-field to
70
+ `worker/src/scan.ts` and `docs/assets/app.js`, kept honest by `scan-parity.yml`.
71
  - **`scout.py`** ✅ — bounty-radar triage, rule-based fit scoring (no LLM), hourly via `scout.yml`.
72
  - **`self_improve.py`** ✅ — finds one real, evidence-backed issue, priority order: (1)
73
  unaddressed CRITICAL/HIGH findings from the AI red-team tools below — closes the loop
docs/assets/app.js CHANGED
@@ -131,7 +131,16 @@ const App = {
131
  } catch(e){ document.getElementById('tvlChart').insertAdjacentHTML('afterend','<div class="text-amber-400 text-sm mt-2">TVL history unavailable.</div>'); }
132
  },
133
 
134
- renderScanResult(el, addr, chain, gp, liq) {
 
 
 
 
 
 
 
 
 
135
  const flags = [];
136
  if (gp.is_honeypot==='1') flags.push('HONEYPOT');
137
  if (parseFloat(gp.buy_tax)>0.1) flags.push('buy tax '+(gp.buy_tax*100).toFixed(0)+'%');
@@ -139,7 +148,18 @@ const App = {
139
  if (gp.is_mintable==='1') flags.push('mintable');
140
  if (gp.owner_address && gp.owner_address!=='0x0000000000000000000000000000000000000000') flags.push('owner not renounced');
141
  if (liq>0 && liq<10000) flags.push('low liquidity');
142
- const verdict = (gp.is_honeypot==='1') ? ['REJECT','#fb7185'] : (flags.length>=2 ? ['CAUTION','#fbbf24'] : ['PROCEED','#34d399']);
 
 
 
 
 
 
 
 
 
 
 
143
  const vc = verdict[1];
144
  const name = gp.token_name ? `${this._esc(gp.token_name)} (${this._esc(gp.token_symbol)})` : this._shortAddr(addr);
145
  el.innerHTML = `
@@ -178,7 +198,7 @@ const App = {
178
  const gp = gpR.status==='fulfilled' ? (Object.values(gpR.value.result||{})[0]||{}) : {};
179
  const pairs = dsR.status==='fulfilled' ? (dsR.value.pairs||[]) : [];
180
  const liq = pairs.reduce((s,p)=>s+(p.liquidity?.usd||0),0);
181
- this.renderScanResult(el, addr, chain, gp, liq);
182
  } catch(e){ el.innerHTML = '<span class="text-amber-400">Scan failed (rate limit or unsupported token). Try again.</span>'; }
183
  },
184
 
 
131
  } catch(e){ document.getElementById('tvlChart').insertAdjacentHTML('afterend','<div class="text-amber-400 text-sm mt-2">TVL history unavailable.</div>'); }
132
  },
133
 
134
+ // Hard-reject GoPlus fields — same tier as honeypot, not just an advisory
135
+ // flag. Real, documented GoPlus token_security fields, flat "0"/"1"
136
+ // strings like their siblings (is_mintable etc.) below. Kept in its own
137
+ // list so agents/token_scan.py / worker/src/scan.ts stay field-for-field
138
+ // identical (see .github/workflows/scan-parity.yml for the CI half of
139
+ // that guarantee — this browser path is the manually-reviewed third).
140
+ _HARD_REJECT_FIELDS: ['is_blacklisted', 'selfdestruct', 'is_airdrop_scam'],
141
+
142
+ renderScanResult(el, addr, chain, gp, liq, pairs) {
143
+ pairs = pairs || [];
144
  const flags = [];
145
  if (gp.is_honeypot==='1') flags.push('HONEYPOT');
146
  if (parseFloat(gp.buy_tax)>0.1) flags.push('buy tax '+(gp.buy_tax*100).toFixed(0)+'%');
 
148
  if (gp.is_mintable==='1') flags.push('mintable');
149
  if (gp.owner_address && gp.owner_address!=='0x0000000000000000000000000000000000000000') flags.push('owner not renounced');
150
  if (liq>0 && liq<10000) flags.push('low liquidity');
151
+ this._HARD_REJECT_FIELDS.forEach(field => { if (gp[field]==='1') flags.push(field.replace(/_/g,' ')); });
152
+ const lpHolders = (gp.lp_holder_count!=null && gp.lp_holder_count!=='') ? parseInt(gp.lp_holder_count,10) : null;
153
+ if (lpHolders!=null && !isNaN(lpHolders) && lpHolders<=1) flags.push('LP concentrated (1 holder)');
154
+ const holders = (gp.holder_count!=null && gp.holder_count!=='') ? parseInt(gp.holder_count,10) : null;
155
+ if (holders!=null && !isNaN(holders) && holders<50) flags.push('low holder count');
156
+ const pairCreatedTimes = pairs.map(p=>p.pairCreatedAt).filter(Boolean);
157
+ const pairCreatedMs = pairCreatedTimes.length ? Math.min(...pairCreatedTimes) : null;
158
+ if (pairCreatedMs && (Date.now()-pairCreatedMs)/86400000 < 3) flags.push('fresh launch (<3 days)');
159
+ const hasSocials = pairs.some(p => (p.info?.socials?.length>0) || (p.info?.websites?.length>0));
160
+ if (!hasSocials) flags.push('no declared socials');
161
+ const hardReject = gp.is_honeypot==='1' || this._HARD_REJECT_FIELDS.some(field => gp[field]==='1');
162
+ const verdict = hardReject ? ['REJECT','#fb7185'] : (flags.length>=2 ? ['CAUTION','#fbbf24'] : ['PROCEED','#34d399']);
163
  const vc = verdict[1];
164
  const name = gp.token_name ? `${this._esc(gp.token_name)} (${this._esc(gp.token_symbol)})` : this._shortAddr(addr);
165
  el.innerHTML = `
 
198
  const gp = gpR.status==='fulfilled' ? (Object.values(gpR.value.result||{})[0]||{}) : {};
199
  const pairs = dsR.status==='fulfilled' ? (dsR.value.pairs||[]) : [];
200
  const liq = pairs.reduce((s,p)=>s+(p.liquidity?.usd||0),0);
201
+ this.renderScanResult(el, addr, chain, gp, liq, pairs);
202
  } catch(e){ el.innerHTML = '<span class="text-amber-400">Scan failed (rate limit or unsupported token). Try again.</span>'; }
203
  },
204
 
docs/index.html CHANGED
@@ -392,10 +392,10 @@
392
  change, or you'll chase "it's not fixed" reports that are actually
393
  just stale caches.
394
  -->
395
- <script src="assets/app.js?v=3"></script>
396
- <script type="module" src="assets/wallet.js?v=3"></script>
397
- <script type="module" src="assets/profile.js?v=3"></script>
398
- <script type="module" src="assets/report.js?v=3"></script>
399
- <script type="module" src="assets/hire.js?v=3"></script>
400
  </body>
401
  </html>
 
392
  change, or you'll chase "it's not fixed" reports that are actually
393
  just stale caches.
394
  -->
395
+ <script src="assets/app.js?v=4"></script>
396
+ <script type="module" src="assets/wallet.js?v=4"></script>
397
+ <script type="module" src="assets/profile.js?v=4"></script>
398
+ <script type="module" src="assets/report.js?v=4"></script>
399
+ <script type="module" src="assets/hire.js?v=4"></script>
400
  </body>
401
  </html>
intel/catalog/investigation-catalog.md CHANGED
@@ -103,3 +103,5 @@
103
  | 2026-07-03 | auto | 0x2228B3832Ac68Eb8F35FB007d92d28e0C048206F (FAFO) | deep_investigation | PROCEED (88/100) | Mintable supply (dilution risk) | +7d |
104
 
105
  | 2026-07-04 | auto | 0x044098A1b8B8e175035842952986bea0E2333B07 (America250) | deep_investigation | PROCEED (90/100) | Low liquidity $34,531 | +7d |
 
 
 
103
  | 2026-07-03 | auto | 0x2228B3832Ac68Eb8F35FB007d92d28e0C048206F (FAFO) | deep_investigation | PROCEED (88/100) | Mintable supply (dilution risk) | +7d |
104
 
105
  | 2026-07-04 | auto | 0x044098A1b8B8e175035842952986bea0E2333B07 (America250) | deep_investigation | PROCEED (90/100) | Low liquidity $34,531 | +7d |
106
+
107
+ | 2026-07-04 | auto | 0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892 (CLAUDE) | deep_investigation | PROCEED (88/100) | Mintable supply (dilution risk) | +7d |
intel/investigations/caution-list.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # VAPE 🟡 Caution List
2
+
3
+ _Regenerated 2026-07-04T18:15:21Z — 2 address(es) currently on record with a last verdict of CAUTION._
4
+
5
+ | Symbol | Address | Score | Times Checked | Last Investigated |
6
+ |--------|---------|-------|----------------|--------------------|
7
+ | OpenAI | `0x7CfA2a05e37bacbcC82B6221F41AD6C7AA253b07` | 68/100 | 1 | 2026-07-02T08:18:29Z |
8
+ | OpenAI | `0xcC67e54FC715246E5B27a97E69747Ecd4c6375B6` | 68/100 | 2 | 2026-07-01T21:11:25Z |
intel/investigations/fail-list.md ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # VAPE 🔴 Fail List (REJECT)
2
+
3
+ _Regenerated 2026-07-04T18:15:21Z — 0 address(es) currently on record with a last verdict of REJECT._
4
+
5
+ | Symbol | Address | Score | Times Checked | Last Investigated |
6
+ |--------|---------|-------|----------------|--------------------|
intel/investigations/investigation-20260704-180603-0xDB879F45.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 🕵️ VAPE Investigation — CLAUDE
2
+
3
+ - **Target:** `0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892`
4
+ - **Chain:** 8453 (Base)
5
+ - **Date:** 2026-07-04T18:06:03Z
6
+ - **Verdict:** 🟢 **PROCEED**
7
+ - **Safety Score:** 88/100
8
+
9
+ ---
10
+
11
+ ## Verdict Rationale (risk factors)
12
+ - [-12] Mintable supply (dilution risk)
13
+
14
+ ## Positive Signals (real legitimacy evidence found)
15
+ - 1493 holders — reasonably distributed
16
+ - Trading 167+ days without a known incident in this scan
17
+ - Custom verified source (not a mass-produced factory template)
18
+
19
+ ## Market & Liquidity (DexScreener)
20
+ - Symbol/Name: CLAUDE / Claude Chog
21
+ - Price: $0.0004345
22
+ - Liquidity: $325943.6
23
+ - 24h Volume: $1.98
24
+ - 24h Change: None%
25
+ - DEX: uniswap
26
+
27
+ ## Token Security (GoPlus)
28
+ - is_honeypot: `0`
29
+ - buy_tax: `0`
30
+ - sell_tax: `0`
31
+ - is_mintable: `1`
32
+ - is_proxy: `0`
33
+ - can_take_back_ownership: `0`
34
+ - owner_change_balance: `0`
35
+ - hidden_owner: `0`
36
+ - transfer_pausable: `0`
37
+ - holder_count: `1493`
38
+
39
+ ## On-chain Presence (Base RPC)
40
+ - Is contract: True
41
+ - Code size: 44 bytes
42
+
43
+ ## Contract Verification
44
+ - Verified: True
45
+ - Name: DropERC20 · Compiler: v0.8.23+commit.f704f362
46
+ - Proxy: False · Implementation: None
47
+
48
+ ## Threat Correlation
49
+ - No correlation to recent exploit techniques.
50
+
51
+ ---
52
+
53
+ *V.A.P.E. — The chain never lies. Investigation conducted with keyless, real-data recon (GoPlus · DexScreener · Base RPC · Etherscan V2 · DeFiLlama hack feed).*
intel/investigations/ledger.json ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "0x044098a1b8b8e175035842952986bea0e2333b07": {
3
+ "address": "0x044098A1b8B8e175035842952986bea0E2333B07",
4
+ "first_investigated": "2026-07-04T10:11:33Z",
5
+ "history": [
6
+ {
7
+ "report": "intel/investigations/investigation-20260704-101133-0x044098A1.md",
8
+ "score": 90,
9
+ "ts": "2026-07-04T10:11:33Z",
10
+ "verdict": "PROCEED"
11
+ }
12
+ ],
13
+ "last_investigated": "2026-07-04T10:11:33Z",
14
+ "last_score": 90,
15
+ "last_verdict": "PROCEED",
16
+ "symbol": "America250",
17
+ "times_investigated": 1
18
+ },
19
+ "0x2228b3832ac68eb8f35fb007d92d28e0c048206f": {
20
+ "address": "0x2228B3832Ac68Eb8F35FB007d92d28e0C048206F",
21
+ "first_investigated": "2026-07-03T08:10:33Z",
22
+ "history": [
23
+ {
24
+ "report": "intel/investigations/investigation-20260703-081033-0x2228B383.md",
25
+ "score": 88,
26
+ "ts": "2026-07-03T08:10:33Z",
27
+ "verdict": "PROCEED"
28
+ }
29
+ ],
30
+ "last_investigated": "2026-07-03T08:10:33Z",
31
+ "last_score": 88,
32
+ "last_verdict": "PROCEED",
33
+ "symbol": "FAFO",
34
+ "times_investigated": 1
35
+ },
36
+ "0x31a626996e36a302b06b27283c561d5926db6b7c": {
37
+ "address": "0x31A626996E36a302b06b27283C561d5926db6b7c",
38
+ "first_investigated": "2026-07-02T14:04:12Z",
39
+ "history": [
40
+ {
41
+ "report": "intel/investigations/investigation-20260702-140412-0x31A62699.md",
42
+ "score": 90,
43
+ "ts": "2026-07-02T14:04:12Z",
44
+ "verdict": "PROCEED"
45
+ }
46
+ ],
47
+ "last_investigated": "2026-07-02T14:04:12Z",
48
+ "last_score": 90,
49
+ "last_verdict": "PROCEED",
50
+ "symbol": "USA250",
51
+ "times_investigated": 1
52
+ },
53
+ "0x43d6e8f4e413028365e9cf83d1e6c2181e8e3b07": {
54
+ "address": "0x43D6e8F4e413028365E9cf83D1e6c2181e8e3b07",
55
+ "first_investigated": "2026-07-02T00:09:13Z",
56
+ "history": [
57
+ {
58
+ "report": "intel/investigations/investigation-20260702-000913-0x43D6e8F4.md",
59
+ "score": 78,
60
+ "ts": "2026-07-02T00:09:13Z",
61
+ "verdict": "PROCEED"
62
+ }
63
+ ],
64
+ "last_investigated": "2026-07-02T00:09:13Z",
65
+ "last_score": 78,
66
+ "last_verdict": "PROCEED",
67
+ "symbol": "OpenAI",
68
+ "times_investigated": 1
69
+ },
70
+ "0x7c797da3704b6f682917005b01c89710ec17db07": {
71
+ "address": "0x7C797DA3704b6F682917005b01C89710Ec17db07",
72
+ "first_investigated": "2026-07-02T04:58:36Z",
73
+ "history": [
74
+ {
75
+ "report": "intel/investigations/investigation-20260702-045836-0x7C797DA3.md",
76
+ "score": 78,
77
+ "ts": "2026-07-02T04:58:36Z",
78
+ "verdict": "PROCEED"
79
+ }
80
+ ],
81
+ "last_investigated": "2026-07-02T04:58:36Z",
82
+ "last_score": 78,
83
+ "last_verdict": "PROCEED",
84
+ "symbol": "OpenAI",
85
+ "times_investigated": 1
86
+ },
87
+ "0x7cfa2a05e37bacbcc82b6221f41ad6c7aa253b07": {
88
+ "address": "0x7CfA2a05e37bacbcC82B6221F41AD6C7AA253b07",
89
+ "first_investigated": "2026-07-02T08:18:29Z",
90
+ "history": [
91
+ {
92
+ "report": "intel/investigations/investigation-20260702-081829-0x7CfA2a05.md",
93
+ "score": 68,
94
+ "ts": "2026-07-02T08:18:29Z",
95
+ "verdict": "CAUTION"
96
+ }
97
+ ],
98
+ "last_investigated": "2026-07-02T08:18:29Z",
99
+ "last_score": 68,
100
+ "last_verdict": "CAUTION",
101
+ "symbol": "OpenAI",
102
+ "times_investigated": 1
103
+ },
104
+ "0xbf927b841994731c573bdf09ceb0c6b0aa887cdd": {
105
+ "address": "0xbF927b841994731C573BDF09ceB0c6B0Aa887cDd",
106
+ "first_investigated": "2026-07-02T11:35:20Z",
107
+ "history": [
108
+ {
109
+ "report": "intel/investigations/investigation-20260702-113520-0xbF927b84.md",
110
+ "score": 92,
111
+ "ts": "2026-07-02T11:35:20Z",
112
+ "verdict": "PROCEED"
113
+ }
114
+ ],
115
+ "last_investigated": "2026-07-02T11:35:20Z",
116
+ "last_score": 92,
117
+ "last_verdict": "PROCEED",
118
+ "symbol": "VELVET",
119
+ "times_investigated": 1
120
+ },
121
+ "0xcc67e54fc715246e5b27a97e69747ecd4c6375b6": {
122
+ "address": "0xcC67e54FC715246E5B27a97E69747Ecd4c6375B6",
123
+ "first_investigated": "2026-07-01T21:11:18Z",
124
+ "history": [
125
+ {
126
+ "report": "intel/investigations/investigation-20260701-211118-0xcC67e54F.md",
127
+ "score": 68,
128
+ "ts": "2026-07-01T21:11:18Z",
129
+ "verdict": "CAUTION"
130
+ },
131
+ {
132
+ "report": "intel/investigations/investigation-20260701-211125-0xcC67e54F.md",
133
+ "score": 68,
134
+ "ts": "2026-07-01T21:11:25Z",
135
+ "verdict": "CAUTION"
136
+ }
137
+ ],
138
+ "last_investigated": "2026-07-01T21:11:25Z",
139
+ "last_score": 68,
140
+ "last_verdict": "CAUTION",
141
+ "symbol": "OpenAI",
142
+ "times_investigated": 2
143
+ },
144
+ "0xdb879f458a56d1919ae7d12e4a9662b1d8a3e892": {
145
+ "address": "0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892",
146
+ "first_investigated": "2026-07-04T18:06:03Z",
147
+ "history": [
148
+ {
149
+ "report": "intel/investigations/investigation-20260704-180603-0xDB879F45.md",
150
+ "score": 88,
151
+ "ts": "2026-07-04T18:06:03Z",
152
+ "verdict": "PROCEED"
153
+ }
154
+ ],
155
+ "last_investigated": "2026-07-04T18:06:03Z",
156
+ "last_score": 88,
157
+ "last_verdict": "PROCEED",
158
+ "symbol": "CLAUDE",
159
+ "times_investigated": 1
160
+ }
161
+ }
intel/investigations/pass-list.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VAPE 🟢 Pass List (PROCEED)
2
+
3
+ _Regenerated 2026-07-04T18:15:21Z — 7 address(es) currently on record with a last verdict of PROCEED._
4
+
5
+ | Symbol | Address | Score | Times Checked | Last Investigated |
6
+ |--------|---------|-------|----------------|--------------------|
7
+ | CLAUDE | `0xDB879F458a56d1919ae7D12e4a9662B1d8A3E892` | 88/100 | 1 | 2026-07-04T18:06:03Z |
8
+ | America250 | `0x044098A1b8B8e175035842952986bea0E2333B07` | 90/100 | 1 | 2026-07-04T10:11:33Z |
9
+ | FAFO | `0x2228B3832Ac68Eb8F35FB007d92d28e0C048206F` | 88/100 | 1 | 2026-07-03T08:10:33Z |
10
+ | USA250 | `0x31A626996E36a302b06b27283C561d5926db6b7c` | 90/100 | 1 | 2026-07-02T14:04:12Z |
11
+ | VELVET | `0xbF927b841994731C573BDF09ceB0c6B0Aa887cDd` | 92/100 | 1 | 2026-07-02T11:35:20Z |
12
+ | OpenAI | `0x7C797DA3704b6F682917005b01C89710Ec17db07` | 78/100 | 1 | 2026-07-02T04:58:36Z |
13
+ | OpenAI | `0x43D6e8F4e413028365E9cf83D1e6c2181e8e3b07` | 78/100 | 1 | 2026-07-02T00:09:13Z |