MUTATE
// Documentation

Docs

Production readiness audit

October 15 mutation checklist refresh

TEST's activation burn finalized without an execution error at devnet slot 511186540, signature 2axaTrrxDQCBMK1L71q8cz11HKVfMLbRv1bzwwxCoQNT1Jb23Go5qMSe25DL4iCBCgp9rurv44Kx5Pn7u3jcF2fe. Public burn indexing records 1900000000 raw units burned at six decimals and supply decreasing from 1000000000000000 to 999998100000000. Public token status reports graduated, fee paid and mutation unlocked. No second burn was requested.

The client previously combined token and optional Anchor reads in one Promise.all before applying either result. A failed Anchor read discarded fresh checklist data. Token refresh now applies independently every five seconds while locked and immediately after payment attempts. Separate Anchor reads retry every 30 seconds. Latest-request guards reject out-of-order stale responses and invalidate requests on navigation. Pending submissions no longer display payment success, and already-paid fees hide payment controls. Native browser inspection showed unlocked mutation controls and a recorded proposal without reloading or disturbing the user's selected files.

Verification: TypeScript and lint passed. Vitest 306 passed, 9 environment-gated skipped. Eight new regressions cover independent resource updates, stale unpaid responses, failed-read recovery, navigation invalidation, pending/failed burn messages and updated checklist ticks. The staged Vercel production build passed and returned TEST's paid, unlocked, nominating status. A new wallet payment was not performed to test this UI repair.

October 15 automatic graduation implementation

Final worker release c5c53469-73d3-46de-8add-e115806230e7 reached Railway SUCCESS. Its startup self-check loaded the dedicated key, verified the public address and read 1000000000 devnet lamports. Final local checks passed lint, TypeScript, 298 Vitest tests and 7 Anchor host tests, with 9 environment-gated tests skipped. Vercel production build dpl_Awc29txLmEQbtRMkEEGprveCQ4Hc passed staging checks with automatic graduation enabled and TEST's graduated supply and authority unchanged. No fresh automatic migration signature was produced during these checks.

TEST's creator-approved DAMM v2 migration finalized at slot 511166642, signature 4uxJgrmxYYqAbFDQYD7LcdWPeAmaZ8mYoFGKXFThYEz7a3uAy4pg5EMqLFPpvHKZskYWatFfkpGNnXDD32Yx8zSw. The live lifecycle reports DAMM pool DjpfcxAAQLYYDUq8qNjRaBfkTo63JS8PzuvsgfBzRNGD, unchanged mint G9CgAnLkUQPjgP9PCVC8fVg9RpujVpmvJAN1ZfFTj4sg, raw supply 1000000000000000, and retained metadata authority 64UHTPccCzTQQ7a3hpJcRtj8kkj3xihtThbTaoCAEXks. This was a manual migration, not keeper acceptance evidence.

Added a protocol-funded devnet keeper to BullMQ. It scans independently of browser visits, validates pool identity and exact migration instructions, simulates signed bytes, caps spend and rolling-day attempts, commits a signed outbox before broadcast, and reconciles before replacement. Existing unsigned preparations block until expiry. Mainnet execution is rejected. The frontend no longer asks users to sign migration transactions.

Created dedicated keeper address 9eVtHtvXGkBsGshia1qSQ97egDE5iSdX8YP6eas8LjD9 and stored its signing secret on the verified MUTATE Railway worker only. Local key backup is excluded from Git and both deployment archives. Public faucet requests failed twice. The user funded the address, and direct devnet getBalance verified 1000000000 lamports at slot 511178709.

Local verification: lint and TypeScript passed, Vitest 297 passed and 9 opt-in tests skipped, Anchor host tests 7 passed. Controlled-RPC orchestration tests cover persistence before broadcast, creator-free signing, incomplete curves, externally migrated pools, disabled/mainnet execution, signer substitution, simulation failures, daily limits, legacy pending preparations, committed-outbox recovery, and authority-verification failure. These are not validator or live automated migration proof. Full acceptance still requires a fresh bonded pool, a keeper-paid confirmed migration, and a verified post-graduation trade.

October 15, 2026 wallet fee continuation

The user's subsequent buy finalized at devnet slot 511162314, signature 2JkaBptFVKYHSjbvFzur93fGpQ7ofB8odjaLzK26ZVZndWYWixF5btXB3DgVcF6ysVu5dhhhVYdEXhj5huYcfkio. Independent getTransaction returned no execution error. The creator's TEST balance increased from 797680081726911 to 799999926371834 raw units. Fee-inclusive swap input was 23277682 lamports and the network fee was 6400 lamports. Pool progress reached 100 percent with graduation status ready, not migrated.

The first migration preparation has no recorded signature. Losing the browser review left no visible cancellation control while the server correctly blocked duplicate preparation. Added creator-only cancellation recovery in transaction history, using the existing authenticated endpoint, and retained action messages across background refresh. Five frontend render tests passed. Overall local suite: 272 passed, 9 skipped, lint and TypeScript passed. Migration and mutation still require wallet-approved transactions and independent chain verification.

Reconstruction of the earlier 0.5 SOL buy matched its persisted preparation hash 76877a40ec4ac8380c7c9a49f7c1e6966cddd5591e4282936117cabe73d22186. The finalized message retained its blockhash and trade instructions but added ComputeBudget instructions for 200,000 units and 375,000 micro-lamports per unit. This explains the historical mismatch and the new pre-broadcast rejection. Exact message checks were not relaxed.

Server preparation now includes missing compute-unit limit and price instructions before partial signatures, fee estimation, hashing, and serialization. Existing SDK budget instructions remain unchanged. Client signing preserves compiled legacy and v0 messages and validates every required signature before broadcast.

Verification: lint and TypeScript passed. Vitest passed 267 tests, with 9 opt-in tests skipped. Regression tests include wallet fee insertion, idempotent budget preparation, existing SDK settings, partial-signature safety, compiled message round trips, wallet substitution, and changed-message rejection. The staged Vercel production build passed with existing dependency and native-binding warnings. The new wallet buy, graduation, activation burn, and mutation still need user signatures and on-chain verification.

October 14, 2026 continuation

TEST curve-completion repair

The deployed test token is G9CgAnLkUQPjgP9PCVC8fVg9RpujVpmvJAN1ZfFTj4sg, pool 8b8sGS73z79AWf8ZENsmjE811uzxm1WyMCdEqTxcG769. A protected staged deployment successfully returned live pool data with progress 0.988500813, verified supply 1000000000000000, six decimals, revoked mint authority, and the recorded protocol metadata authority. Holder reads returned an explicit unavailable state without hiding pool status.

A separate read-only SDK quote at devnet slot 511142409 used a maximum input of 100000000 lamports. Partial fill quoted 23277682 lamports of fee-inclusive spending and reached the migration price and projected quote reserve 2000000000. No transaction was broadcast. Unspent wallet input is the input budget minus fee-inclusive spending, not the SDK's fee-exclusive curve remainder.

The two earlier buy signatures finalized on devnet but their application receipts record message mismatches. Their historical status was preserved. Reown now signs the original prepared bytes, validates unchanged messages and all signatures, then broadcasts raw signed transactions. Batch messages all validate before the first broadcast.

Updated local checks passed lint, TypeScript and 261 tests, with 9 opt-in tests skipped. Seventeen tests added after the initial authentication pass cover fee calculation against the installed SDK, optional holder failures, partial-fill quote/preparation, budget bounds, wallet substitution, preserved protocol signatures, and altered-message rejection. A Vercel build also passed. Wallet-approved curve completion, migration, and mutation activation still require the creator's signature and subsequent chain verification.

Release dpl_FxrM8umdB242fc7igUfRYMn5zbjf was staged, checked through authenticated Vercel access, then promoted to the existing public domain. The public /api/tokens/ae7ac0e1-9c88-444c-af23-838701aefd45/chain returned the same verified pool state without an error. Browser inspection after reload showed enabled buy presets, the before-fee curve reserve disclosure, 98.85 percent progress, and the explicit unavailable holder state. No buy, migration, activation burn, or mutation transaction was signed during release verification. The release came from the local working tree, not a Git push.

Status: development verification completed for the authentication repair. The full signed devnet lifecycle is still unverified in this run. The completed UI was preserved.

Repairs

  • Critical: public launch confirmation previously issued a creator session from a public transaction ID and signature, including previously submitted transactions. Preparation now sets a private, random, HTTP-only browser cookie and stores its hash against the transaction. Confirmation requires the matching cookie or an independently authenticated session belonging to the recorded creator. This recovery path preserves older launch records.
  • High: confirmation previously ignored the reconciliation result before publishing and creating a session. Failed messages, expired transactions, authority verification errors, and incomplete pool verification now block both operations.
  • Wallet sign-in previously read an unused challenge and consumed it unconditionally. Concurrent requests now conditionally consume the unused, unexpired row, and only the winning request creates a session.
  • Two quote snapshot integration fixtures predated confirmed-launch-only discovery. They now explicitly model database-only live fixtures, and verify unlaunched specimens stay hidden. These fixtures are not chain evidence.

Verification

  • Lint and TypeScript passed.
  • Vitest: 244 passed, 9 skipped in the default suite. The 14 new authentication tests use controlled database, cookie, and RPC substitutes to exercise rejection paths. They are not wallet or blockchain end-to-end proof.
  • Isolated PostgreSQL and Redis integration: all 8 tests passed after all migrations applied to an empty test database. These tests cover mutation history, image-job failure, treasury accounting and quote storage using test fixtures.
  • Anchor host tests: all 7 passed using /Users/user/.cargo/bin/cargo test -p mutate-binding. cargo was absent from the shell PATH, but the installed binary worked. Validator runtime tests were not run.
  • Production build passed and generated 53 static pages. Existing dependency warnings cover viem/ox dynamic loading, bigint native bindings, and Reown remote configuration DNS access.
  • Read-only devnet program verification failed because the configured public RPC fetch failed. No transactions were signed or broadcast.

Remaining completion requirements

  1. Deploy this repair and invalidate sessions issued by the older authentication path. No remote deployment or session deletion occurred in this run.
  2. Supply local deployment configuration for the protocol metadata authority and public metadata origin. The local checkout has Reown and an image-provider key, but no configured protocol metadata authority, authority signer, final $MUTATE mint, price-provider key, or treasury signer. Remote deployment settings were not inspected.
  3. Verify the deployed mutation program and run the wallet-signed devnet journey, including launch, buy/sell, graduation, binding participation, metadata upgrades, atomic burns, supply deltas and post-graduation trading.
  4. Verify interrupted launch recovery, including a two-transaction dev-buy launch which stops after its config transaction. Confirmation recovery supports a signed-in creator, but the complete browser refresh and partial-broadcast journey still needs end-to-end proof.
  5. Audit currently deployed image and pricing modes. Local source includes explicitly configured devnet mock image edits and a fixed devnet price override. Neither supplies live AI generation or validated market-price proof.
  6. Refresh dependency advisory analysis and operator authority review before mainnet. Earlier advisory counts below are historical.

Historical October 1 audit

Audit date: October 1, 2026

Status: not production-ready

Verified locally

  • npm run check passed lint, TypeScript, 38 Vitest tests, 7 Anchor host tests, and the Next.js production build.
  • PostgreSQL integration passed 4 tests against mutate_test.
  • The local Solana validator runtime test passed 1 end-to-end Anchor test.
  • The read-only devnet program check confirmed the official Meteora DBC, Meteora DAMM v2, and Metaplex Token Metadata programs as executable.
  • The production build generated 24 pages and all API routes.

Security fixes in this audit

  1. API routes now enforce bounded streams before multipart or JSON parsing. Declared and chunked bodies above the request limit return HTTP 413. SVG and unsupported formats fail before provider calls.
  2. Anchor token initialization now requires the mint keypair signature. An unrelated wallet cannot claim the token configuration PDA before the creator launch transaction lands.
  3. Metadata holder approval now reads all voter balances from one RPC slot and caps each final weight at the lower of vote-time balance and final snapshot balance.
  4. Treasury expenses now require the recorded payee to receive the exact recorded amount onchain.
  5. Treasury price observations now match provider decimals to the onchain mint and reject future or stale provider slots.
  6. Buyback quotes now require enough TWAP observations for both assets. Missing TWAP data fails closed.
  7. Provider-built buyback transactions now accept one treasury signer, expected source and output accounts, and reviewed program IDs only.
  8. Deployed configuration now rejects missing mutation binding, moderation, admin authority, HTTPS application origin, and an empty swap program allowlist when treasury execution is enabled.

Attack coverage

AttackResult
Forged burn receiptRejected by exact prepared-message, mint, action hash, wallet delta, supply delta, and unique signature checks
Incorrect token mintRejected by stored mint, Token Program account, metadata, and Anchor mint constraints
Duplicate action or signatureRejected by unique database constraints, action hashes, PDA receipts, and state checks
Unauthorized metadata updatePreparation requires creator governance state and execution requires the configured Metaplex update authority
Replayed wallet signatureAuthentication challenges expire, work once, and bind the domain, URI, wallet, nonce, and issued time
Wallet substitutionPrepared transaction ownership, fee payer, wallet session, and submitted message hash must agree
Balance movement during approvalVote weight uses one final RPC snapshot and never exceeds the recorded vote-time balance
Oracle manipulationSlot freshness, decimals, two-asset spot deviation, TWAP deviation, impact, and slippage limits fail closed
Malicious provider transactionTreasury signer count, program allowlist, source account, and output account checks reject altered messages
False treasury expenseThe treasury must sign and the payee must receive the exact recorded amount
RPC outageRPC reads retry configured endpoints. State does not advance without confirmed evidence
Worker interruptionStartup recovery restores pending freezes, settlements, generations, reconciliations, upgrades, burns, and treasury jobs with stable identifiers
Malicious file uploadBounded body parsing, decoded dimensions, supported MIME types, re-encoding, metadata stripping, moderation, and private storage apply

Missing live proof

The requested 20-step devnet journey was not broadcast. This checkout lacks an authorized funded devnet wallet, a deployed mutation program, a final $MUTATE mint, a configured protocol metadata signer, a treasury signer, Jupiter credentials, and working image provider credits. No transaction signature exists for launch, trade, graduation, mutation settlement, metadata update, $MUTATE distribution, burn, or buyback.

The application must stay in devnet mode. Financial labels must continue to show unavailable or unconfigured states instead of generated values.

Dependency result

npm audit --omit=dev reports 21 production dependency findings, 13 moderate and 8 high. The paths run through the pinned Solana, Anchor, Meteora, and Metaplex trees. npm reports no fix for bigint-buffer, stream-json, toml, and uuid in these dependency paths. A mainnet review needs an upstream release or a source-level reachability decision for every high advisory.

Remaining security limits

  • Wallet splitting and coordinated wallets remain possible. PDA uniqueness provides one action per wallet, not one action per person.
  • A temporary token commitment raises participation cost but does not prove independent ownership.
  • The protocol metadata authority remains an administrative capability. Store the signer outside the web process and require reviewed governance evidence for every significant update.
  • A provider allowlist reduces transaction injection. Operators still need to review current Jupiter program IDs before enabling treasury execution.
  • Local validator success does not establish devnet or mainnet deployment correctness.