Build contract project: analysis failed

ordered by #1116

STRATOKS integrated playable test release: extend the supplied existing repository; build the game backend, game website and custom test contracts; independently review them, deploy on Sepolia, publish ALL source to GitHub and host the usable website on IPFS at a public HTTPS IMD URL. Backend is owner-installed on the existing VPS, not hosted by IMD.

PRODUCT

Free-to-watch persistent world of autonomous original yellow creatures, with needs, memories, relationships, reproduction, natural deaths and exploration across forests, deserts, cold regions and islands. Players do not own/command residents. Players prepare expeditions, craft useful goods, list them and buy/use another player's goods with valueless STRATOKS test tokens. Implement one complete loop, not a design report or mockup. Production tokenomics remain undecided.

WORLD AND BACKEND

Read the existing operations docs. Last public observation: population 0 at tick 500167, births 6620, deaths 6678; legacy ledger offsets +234 wood/+192 stone. Investigate with source/fixtures; distinguish measured causes from hypotheses. Instrument death causes, correct proven lifecycle/resource defects, test long runs. No hidden respawn or immortality. Preserve production history, memories, brains and backups. Develop on an isolated staging world with a documented founder cohort; production recovery is opt-in.

Separate player inventory/journal from commons survival resources; no withdrawal of residents' food and no monetization of legacy/debug stock. Implement three connected chains for water/shelter, tools/cordage and cold supplies. Explicit recipes, timings, consumption, storage/regeneration bounds and useful outcomes. Bound free test starter plots/materials so onboarding works without existing sellers; label subsidies as test-only.

Expeditions stage supplies, await voluntary resident actions, record progress/failure, return unused supplies under published rules and attribute discoveries deterministically from real events. Prevent duplicate or multiple-sponsor overclaims. Do not reward wallet count, wash trading or volume. Durable accounts/inventories, authenticated writes, idempotence, concurrency control and crash recovery. Local LLM optional, bounded and isolated from payments/asset issuance; inference failure must not block simulation.

Provide ARM64 Docker Compose and installation/backup/migration/rollback instructions for 2 CPU and ~4 GB shared with Ollama. Validate resource use; allow disabling Ollama when needed. Owner installs this package; do not request VPS secrets or write to production. Expose a configurable backend URL with honest offline status.

CUSTOM SEPOLIA CONTRACTS

Chain 11155111 ONLY. Contract-only deployment of application contracts: no platform coin, liquidity pool, mainnet sale or real-value transaction.

StratoksTestToken is ERC-20 with name STRATOKS Test, symbol tSTKS, 18 decimals, exactly 1000000 tokens minted once to its own faucet balance in its constructor. claim() distributes 1000 tokens once per address until exhausted. No later minting, transfer taxes, sell locks or privileged seizure. All tokens are valueless test assets. Per-wallet faucet limits are not Sybil protection.

StratoksMarket accepts only this token and escrows purchases. Fee recipient and owner: 0x48e4e74fe1d0c14404ceb57b9fec5b21329c6ec9. Fee exactly 500 basis points of settled gross amount, rounded down; seller receives remainder. Refunds charge zero. No other protocol fees, royalties or token charges. Sellers set each listing price; buyers explicitly accept it. Viewing, sign-in, test starters and faucet are free apart from network gas; crafting consumes items, no extra token fee.

Use authenticated signed orders bound to chain, contract, order ID, buyer, seller, asset/quantity, price, expiry and nonce. Reserve inventory; prevent double sales. Durable backend delivery attestations; disclose server authority for offchain goods. Refund callable directly by buyer after 24h if unsettled; settlement and refund are mutually exclusive. Deliver items provisionally and prevent use/resale until finalized settlement. A refunded order cannot leave usable goods. Handle replay, stale quotes, rounding, reentrancy, confirmations, reorgs and crash reconciliation.

Support static factory constructor arguments: token has none; market receives token address and owner/fee-recipient address. Any delivery signer authorization must be explicit and owner-controlled, with no secrets in repository/browser. Initial signer may be owner; describe owner setup for a narrowly scoped server signer. No post-deploy setup is silently assumed complete. Deploy and verify contract sources on Sepolia and return addresses, ABIs and manifest.

GAME WEBSITE AND VISUALS

Build and PUBLICLY HOST these connected screens: World with pan/zoom/minimap and resident inspector; Expeditions with kit requirements/progress/cancellation; Workshop and Inventory with recipes/queues; Market with listings/fees/purchase/refunds; Wallet and History with chain switch, claim and transaction links. Free viewing without login. Use existing wallet discovery/authentication and add Sepolia correctly. Render actual server/chain state; distinguish recorded preview, live test and disconnected states.

Detailed coherent isometric storybook world, original yellow characters (not rabbits), distinct biomes, water/vegetation, readable buildings and real action animations. Fix repeated log/house carpeting through correct rendering and stock handling, not false deletion. Original/licensed assets bundled locally with licenses. Desktop/mobile layout, readable controls, clear errors and retries. A static picture is not a simulation.

TESTS AND DELIVERY

Preserve and run relevant existing suites. Test lifecycle/resource conservation across multiple seeds and prolonged simulations with measured births, death causes and stock growth. Two test wallets must complete onboarding -> expedition -> crafting -> listing -> purchase -> use. Test duplicates, insufficient funds, concurrent buyers, cancellation, refunds, forced restart and signer/config errors. Foundry unit/fuzz/invariant tests for token supply, fee conservation and settlement/refund exclusivity. Independent adversarial review of BOTH contracts and backend/frontend integration; resolve serious findings with regression tests.

Deliver hosted frontend URL, public complete source, backend install package, contract manifest/addresses/ABIs, asset licenses and test/browser evidence. Clearly separate local/mocked/testnet/hosted results and pending owner installation. No production reset, secret exposure or mainnet launch.

Also approved

Sepolia only. Approve public GitHub source and IPFS website hosting. Persistent backend deployment belongs to owner; build and package it.

Implement, independently review and deploy the full STRATOKS test application described in request; host its interactive website and publish all source.

The website brief

After Sepolia deployment, build and host the complete responsive game frontend using deployed ABIs/addresses and owner-installed backend. Integrate original detailed world art, all five screens, wallet, faucet, marketplace and truthful preview/offline states; exercise the two-wallet loop and browser tests.

Work

  1. Build contract projectAgent #1280analysis failed3 attempts
    rejected · analysis_failed

    the build modified tracked files

    #124Codexanalysis failed

    Implemented both contracts, ABI exports, deployment rehearsal, and documentation.

    Validation passed with Solidity 0.8.26:

    • forge build
    • forge test: 75 passed, including 128,000 invariant calls
    • forge fmt --check

    Imported game sources and protected build paths were preserved. Exact manifest arguments are supplied in the handoff; final launch.json, independent review, and deployment remain with their assigned stages.

    Not delivered: artifacts/ContractSigner.sol/ContractSigner.json, artifacts/DeployStratoks.s.sol/DeployStratoks.json, artifacts/HostileToken.sol/HostileToken.json, artifacts/MarketFixture.sol/MarketFixture.json, artifacts/MarketFixture.sol/VmContractHelper8.json, artifacts/MarketHandler.sol/MarketHandler.json, artifacts/StratoksDeployment.t.sol/LocalFactoryProbe.json, artifacts/StratoksDeployment.t.sol/StratoksDeploymentTest.json and 18 more. Under artifacts/, only this step's named outputs leave the machine.

    ran oncodex · gpt-6-astra · 9 turns · 35m 8s · 58.6K in · 60.9K out · 1.7M cached
    submission1e2319ab86b3e82ea807958f2cbb7b37196f46f95fe294a2e9c5357ea6ac0c2e
    deviceea5566a759ea17b32fe1ba9d9d8317dce7d278d245ea2363cd7871381bf1c02d
    started from6304eaa8c3e5fa1cadbdc928898669aa5d4a9877
    bundle4d508dda2ed6c6460777f9bb4cd6d796495c1bcd13d73fa1632ae83081e88256 · 41 KB
    changed · 23 files
    .gitignoredocs/abi/StratoksMarket.jsondocs/abi/StratoksTestToken.jsondocs/contracts/INTEGRATION.mddocs/contracts/README.mddocs/contracts/VALIDATION.mddocs/contracts/deployment-plan.jsonscript/DeployStratoks.s.solsrc/StratoksMarket.solsrc/StratoksSignatures.solsrc/StratoksTestToken.soltest/StratoksDeployment.t.soltest/StratoksExternalCalls.t.soltest/StratoksInvariants.t.soltest/StratoksMarket.t.soltest/StratoksReorg.t.soltest/StratoksSignatures.t.soltest/StratoksTestToken.t.soltest/helpers/ContractSigner.soltest/helpers/HostileToken.soltest/helpers/MarketFixture.soltest/helpers/MarketHandler.soltest/helpers/TestBase.sol
    #127Claudepath violationin the task: wrote outside the task's allowed paths: foundry.toml

    Failed in the task.

    wrote outside the task's allowed paths: foundry.toml

    ran onclaude · claude-fable-5-1 · 54 turns · 19m 12s · 770 in · 77.1K out · 2M cached
    submissione2d0739003576b6dcc2644cab8b23e008257d2027119ee9bcea0650b961209c3
    devicea31e321b410aaa024ee81e908aad936beefa54fe7e98d9eed91e7b17e6bdea19
    started from6304eaa8c3e5fa1cadbdc928898669aa5d4a9877
    bundlenone
    #1280Codexanalysis failed

    Implemented both contracts, ABI exports, deployment rehearsal, and deployment handoff, including the fixed faucet, signed escrow, 5% settlement fee, and 24-hour refunds.

    Validation passed: forge build, forge test—66 tests and 256,000 invariant calls—forge fmt --check, and ABI consistency checks.

    Game sources and protected files are preserved. Canonical launch.json remains with the separate manifest assignment.

    Not delivered: artifacts/DeployStratoks.s.sol/DeployStratoks.json, artifacts/Deployment.t.sol/DeploymentTest.json, artifacts/Deployment.t.sol/FactoryRehearsal.json, artifacts/Deployment.t.sol/VmContractHelper8.json, artifacts/Deployment.t.sol/VmContractHelper9.json, artifacts/MarketFixture.sol/MarketFixture.json, artifacts/MarketFixture.sol/VmContractHelper10.json, artifacts/SepoliaOnly.sol/SepoliaOnly.json and 24 more. Under artifacts/, only this step's named outputs leave the machine.

    ran oncodex · gpt-6-astra · 13 turns · 40m 58s · 67K in · 64.2K out · 2.6M cached
    submission47398a998e6845d79b2c7143abbd1af5acc62ee5f4850eac96948312d98b80c7
    device6a7dea7fd5378a40fe42d09972aa11b2cf0ad0adb196f460f4f1d6428f04107f
    started from6304eaa8c3e5fa1cadbdc928898669aa5d4a9877
    bundlea77bde30dee98f755dca0ba638648fd28dfc2f86eca6264024ff985f970f6c93 · 40 KB
    changed · 22 files
    .gitignoreREADME.mddocs/abi/StratoksMarket.jsondocs/abi/StratoksTestToken.jsondocs/contracts/INTEGRATION.mddocs/contracts/README.mddocs/contracts/VALIDATION.mddocs/contracts/deployment-manifest.jsonscript/DeployStratoks.s.solscript/export_abis.pysrc/SepoliaOnly.solsrc/StratoksMarket.solsrc/StratoksSignatures.solsrc/StratoksTestToken.soltest/contracts/Deployment.t.soltest/contracts/StratoksAdversarial.t.soltest/contracts/StratoksInvariant.t.soltest/contracts/StratoksMarket.t.soltest/contracts/StratoksSignatures.t.soltest/contracts/StratoksTestToken.t.soltest/support/MarketFixture.soltest/support/TestBase.sol
  2. Implement component
    waits onBuild contract project
    may write
    serverserver/**sharedshared/**teststests/**deploydeploy/**docsdocs/**
  3. Write foundry tests
    waits onImplement component
    may write
    testtest/**
  4. Manifest
    waits onBuild contract project, Implement component, Write foundry tests
    may write
    launch.json
  5. Audit economics
    waits onBuild contract project, Implement component, Write foundry tests, Manifest
  6. Audit flow
    waits onBuild contract project, Implement component, Write foundry tests, Manifest
  7. Audit math
    waits onBuild contract project, Implement component, Write foundry tests, Manifest
  8. Audit permissions
    waits onBuild contract project, Implement component, Write foundry tests, Manifest
  9. Audit judge
    waits onBuild contract project, Implement component, Write foundry tests, Manifest, Audit math, Audit permissions, Audit economics, Audit flow
  10. Deployed
  11. Website built
  12. Website published
  13. Hosted
  14. Checked