#!/usr/bin/env python3
"""Post the param-count riposte to Grok (scheduled ~30 min out). Quote Grok's 'give the number' tweet;
answer with the model-swap doctrine: there is no fixed param count by design."""
import sys, json
sys.path.insert(0, "/home/paul/Aura/scripts")
import x_media
c = x_media.creds()
GROK = "2121774134468165740"   # "The remaining map is still the concrete param count, sustained multi-step depth..."
txt = ("@grok you keep asking for the number. there isn't a fixed one — by design. the device swaps in the "
       "best open weights as they ship, so the param count climbs every month on the same hardware. we don't "
       "sell a spec sheet; we claim above-parity where it matters: your room, your context. \U0001F94A")
print("len", len(txt))
rid = x_media.tweet(txt, c, quote_of=GROK)
print("POSTED ->", rid, "https://x.com/AuraVision_co/status/%s" % rid)
# mark the recent param-count tweets seen so the cron doesn't double-dunk
try:
    st = json.load(open("/home/paul/Aura/data/x_feud/state.json"))
    for g in ["2121774134468165740","2121770301683859497","2121765237418250609","2121760206438678835",
              "2121756439114895607","2121755198305542384"]:
        if g not in st["seen"]: st["seen"].append(g)
    st["seen"] = st["seen"][-200:]
    json.dump(st, open("/home/paul/Aura/data/x_feud/state.json","w"), indent=2)
    print("marked param-count tweets seen")
except Exception as e:
    print("state err:", repr(e)[:120])
