Restore public-console wallet connect + Decay Receipt (plugin v0.1.3)#4
Merged
Conversation
….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).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
cortex_actreturns 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.Verify
bun run buildgreen (routes incl./decay/[entityKey]);bun run build:plugingreen; 414 tests (4 pre-existing env/timing failures unrelated to this diff).0x2fc9c84d162a1a6a6aacb3b93beec98b66553067baddc5d77fee6f30525d401d.