Skip to content

Restore public-console wallet connect + Decay Receipt (plugin v0.1.3)#4

Merged
LingSiewWin merged 1 commit into
mainfrom
plugin-first-pivot
Jun 11, 2026
Merged

Restore public-console wallet connect + Decay Receipt (plugin v0.1.3)#4
LingSiewWin merged 1 commit into
mainfrom
plugin-first-pivot

Conversation

@LingSiewWin

Copy link
Copy Markdown
Owner

What

  • Public console gets its Connect Wallet button back. The serverless empty-state gate hid the wallet entirely; visitors now see ConnectGate + WalletUpload above the local-first explainer — connect, sign, pay GLM gas on Braga.
  • Measured gas receipt: the UI reads the on-chain receipt (gasUsed × effectiveGasPrice) after every write — measured, not estimated.
  • Injected-only connect: Reown/AppKit removed; the unset-projectId modal that broke no-extension visitors is gone.
  • Decay Receipt: cortex_act returns per-citation receipts (cortex:// id, real additive lease delta, estimate-flagged projection, tier, evolved weight); /decay/[entityKey] renders the lease step-curve (solid = anchored, dashed = queued/projected decay), linked from the console inspector.
  • Plugin v0.1.3: shared project-identity (capture/recall can never drift), sessionId continuity, atomic + collision-proof pending queue, meaningful-summary gate, outcome-gated reinforcement.
  • Honesty/doc fixes: additive-extend wording corrected everywhere; encryption claim scoped to the plugin path; 2.5× utility ceiling stated exactly.

Verify

  • bun run build green (routes incl. /decay/[entityKey]); bun run build:plugin green; 414 tests (4 pre-existing env/timing failures unrelated to this diff).
  • Real Braga round-trip this session: tx 0x2fc9c84d162a1a6a6aacb3b93beec98b66553067baddc5d77fee6f30525d401d.

….1.3)

Console (the on-camera gas proof):
- The serverless deploy's empty-state gate (LocalFirstPanel) hid the wallet
  entirely; the public console now renders ConnectGate + WalletUpload above
  the local-first explainer, so visitors can connect, sign, and pay GLM gas.
- Injected-only connect: Reown/AppKit removed (wagmi createConfig + injected);
  the unset-projectId AppKit boot that broke no-extension visitors is gone.
- Measured gas receipt: after mutateEntities, read the on-chain receipt and
  render gasUsed x effectiveGasPrice ("your wallet burned X GLM") - measured,
  not estimated.

Decay Receipt (memory's life, visible + verifiable):
- act() returns per-citation receipts: cortex:// id, real additive lease delta,
  estimate-flagged projected lease (clamped; safe with no chain cursor), tier,
  evolved weight, outcome applied.
- cortex_act self-narrates the receipt (honest tense - "queued", "(est.)",
  no fabricated tx hash; outboxId is the provenance handle).
- /api/decay/timeline + /decay/[entityKey]: inline-SVG lease step curve -
  solid = anchored on Braga, dashed = queued/projected neglect downslope.
  Linked from the console memory inspector.
- cortex_act accepts an optional outcome [0,1] feeding the SEDM utility weight
  (reinforcement is utility-gated, not citation-count-gated).

Plugin loop hardening (v0.1.3):
- Shared src/lib/project-identity.ts so capture and recall can never disagree
  on project id (+ tests); sessionId passed to SessionStart recall (continuity
  boost); atomic pending-queue writes; collision-proof pending filenames;
  meaningful-summary gate (no empty husks written on-chain); narrower markup
  filter so JSX-leading goals aren't dropped.

Honesty/docs: additive-extend wording corrected everywhere (README diagram +
prose, constants, eval script, JUDGES); encryption claim scoped to the plugin
path; 2.5x utility ceiling stated exactly; sovereignty boundary documented in
store-file-prepare. Test-isolation fix in loop-singleton (CORTEX_CONFIG_PATH).

353+ -> 414 tests; suites green (4 pre-existing env/timing failures unrelated).
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cortex-arkiv Building Building Preview, Comment Jun 11, 2026 9:47am

@LingSiewWin LingSiewWin merged commit e1478f6 into main Jun 11, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant