# Config import result Completed the bounded configuration/tooling item against the existing project at `6083f1b5db4c14344351876ca9d2d057b768ad85`, cloned from into `test/scratch/pepe-source`. Implementation and integration checks ran in that clone before copying this item's files into the workspace. The original component source paths were retained. Delivered 13 source files: `package.json`, `foundry.toml`, `.gitignore`, `README.md`, and the nine `tools/*.mjs` files listed below. Only those allowed source paths and this report are delivered. No dependencies, lockfile, build output, submodule, RPC endpoint, signing key, or fixture was added to submitted source. Scratch scaffolding and temporary installations remain under `test/scratch/`. This report is left untracked for the output uploader. `package.json` preserves the existing package identity, version, privacy, description, module type and minimum Node version. It declares no dependencies. Every npm entry point delegates to a file under `tools/`, allowing later waves to extend implementation without changing this configuration: ```json { "name": "peperun", "version": "0.1.0", "private": true, "description": "PEPE RUN — RUN. SURVIVE. WIN.", "type": "module", "engines": { "node": ">=22.13" }, "scripts": { "test": "node tools/test.mjs", "check": "node tools/check.mjs", "test:game": "node tools/test-game.mjs", "fixtures:game": "node tools/fixtures-game.mjs", "site": "node tools/build-site.mjs", "serve": "node tools/serve.mjs" } } ``` `foundry.toml` retains every original setting and adds only read permission for the repository folder. Parsed configuration comparison and `forge config --json` confirmed these settings: ```toml [profile.default] solc = "0.8.26" offline = true optimizer = true optimizer_runs = 200 evm_version = "cancun" bytecode_hash = "none" cbor_metadata = false fs_permissions = [{ access = "read", path = "./" }] ``` `.gitignore` excludes dependency folders, root `dist/`, `out/`, `cache/`, `test/scratch/`, and `.db`, `.sqlite`, `.sqlite3` databases with their journal, WAL and SHM sidecars. `README.md` explains the continued project, current free-practice status, folder layout, every npm script, prerequisites, component check discovery, building/previewing the static site and checking its manifest. It also discloses the approved sink semantics: tokens leave circulation while `totalSupply` remains unchanged. The imported contract still has burn calls; changing those contracts belongs to subsequent work, outside this item. | Delivered tool | What it runs or provides | | --- | --- | | `tools/test.mjs` | Finds every `*.test.mjs` recursively and runs sorted explicit paths with the current Node executable's `--test`. Excludes root `test/scratch/`, all `node_modules/`, Git metadata and symlinks. An empty test tree fails. | | `tools/test-game.mjs` | The same runner restricted to `game/test/`, retaining the original game-test behavior. | | `tools/fixtures-game.mjs` | Runs the unchanged `game/tools/make-fixtures.mjs` from the repository root and propagates its exit status. | | `tools/check.mjs` | Runs `tools/test.mjs`, every discovered component check, then `forge test --offline` when Forge is installed. Runs steps sequentially, continues after failures, emits a final PASS/FAIL line for each executed step, and exits nonzero if any step failed. | | `tools/run-commonjs.mjs` | Executes the imported `media/sfx/check.js` with CommonJS bindings, its real filename/directory and relative require resolution, without changing the ESM package or original check file. | | `tools/build-site.mjs` | Stages browser files, `game/engine.mjs` and media assets, then replaces `dist/`. Preserves their relative locations and original bytes. Adds a root `index.html` with `` while retaining the original `web/index.html`. Prints a sorted SHA-256 manifest and writes `dist/SHA256SUMS`. Excludes tests, backend code and media generators; rejects symlinked inputs. | | `tools/serve.mjs` | Starts a static development server over the repository root. Defaults to `127.0.0.1:8080`, supports `--host`, `--port`, `--help`, and redirects `/` to `/web/`. | | `tools/static-server.mjs` | Shared, independently callable request handler: file MIME types, GET/HEAD, directory index redirects, single byte ranges, no directory listings, and refusal of traversal, hidden paths, scratch/dependency files, SQLite files and symlinks escaping the root. No subprocesses. | | `tools/common.mjs` | Resolves the repository from the tool location, walks files deterministically and launches subprocesses without a shell. Child failures/signals become nonzero results. No command runs on import. | Component check discovery recognizes `check.{mjs,js,cjs,py,sh}` and `check-*` / `check_*` variants with those extensions. It excludes generated root `dist/`, `out/`, `cache/`, scratch/dependency directories, and its own entry point. Node checks use the current Node executable; Python checks use `python3`; shell checks use `sh`. The SFX CommonJS compatibility route is explicit. Forge absence skips only the optional final Forge step; existing component prerequisite failures remain visible. The original `media/music/measure.mjs` is a separate decoder/reporting utility with an external package prerequisite, not an assertion check; it and asset generators are not silently treated as passing checks. Final required commands ran in the scratch clone with the final tooling applied: | Command | Exit | Result | | --- | --- | --- | | `npm test` | 0 | PASS: 8 discovered test files; 87 tests passed, 0 failed/cancelled/skipped. Covers admission, protocol, store/migration, game and browser practice modules. | | `npm run check` | 0 | PASS: all 8 aggregate steps below. Printed `Check complete: 0 failed steps.` | | `npm run site` | 0 | PASS: 25 public files plus `dist/SHA256SUMS`; printed all 25 SHA-256 entries and `PASS site: 25 files in dist/; manifest: dist/SHA256SUMS (excludes itself)`. | All initial and final runs of these three required commands succeeded. No failed step or failure message occurred in them. `npm run check` step details: | Step | Status | Observed result | | --- | --- | --- | | Full Node tests | PASS, exit 0 | 87/87. | | `backend/admission/check.mjs` | PASS, exit 0 | 5/5 admission tests. | | `backend/protocol/check.mjs` | PASS, exit 0 | 3/3 substeps: 11 protocol/vector tests, 18 store/migration/restart tests, 12 RunVerifier Solidity tests. | | `backend/runtime/check.mjs` | PASS, exit 0 | 10/10 runtime checks, including persistence/replay and capacity/timer cases. | | `media/backgrounds/check_atlas.py` | PASS, exit 0 | 960×384 RGBA atlas; all 9 world/layer tiles passed seam, alpha, map and horizon checks. | | `media/characters/check.mjs` | PASS, exit 0 | 22/22 checks; 176 frames; source render matches exported PNG. | | `media/sfx/check.js` via compatibility wrapper | PASS, exit 0 | All 7 cues audible and in bounds; 44,100 Hz mono PCM16, 2,880 ms, peak 11,656/32,767, minimum guard 80 ms, zero nonzero guard samples. | | `forge test --offline` | PASS, exit 0 | 38 reported passes across 3 suites; 0 failures. **The existing fork test returns early without `IMD_FORK_RPC`; this run did not exercise a live Ethereum fork.** | Additional validation: | Command/check | Result | | --- | --- | | Baseline `forge test --offline` | Exit 0; compiled with Solidity 0.8.26 and reported 38 passes. Same fork limitation applies. | | `npm run test:game` | Exit 0; 31/31 game tests. | | `npm run fixtures:game` followed by `git diff --exit-code -- game/fixtures/replays.json` | Both exit 0; regenerated 7 fixtures byte-for-byte identical to the pinned commit. | | `npm run serve -- --help` | Exit 0; documented options and source/built preview paths printed. | | `node --test test/scratch/tooling.test.mjs` (scratch-only harness) | Final exit 0; 9/9 tooling tests. Covers recursive discovery, spaces, exclusions, empty trees, failure propagation and continuation, optional Forge absence, fixture delegation, deterministic builds, stale-output removal, input preservation, symlink refusal, and request handling in memory. | | Real built-page resource graph through the request handler | Both `/dist/` and `/dist/web/` resolved 17 expected resources, including CSS, browser modules, the real engine, all sprite images and audio files. Executed without network I/O. | | `sha256sum -c SHA256SUMS` in scratch `dist/` | Exit 0; all 25 files reported `OK`. Manifest SHA-256: `8faab2260ec2fa9331c81acb5ee4948bd632a103f5fa7aa225b5b794fbf2b9e6`. | | Configuration comparison, `node --check` on all nine tools, `git diff --check`, `git check-ignore` examples | Passed. Package identity retained, dependencies absent, Foundry's only addition is read-only repository access, JavaScript parses, ignored outputs/SQLite sidecars match. | | Source scope and delivery comparison | Passed: 13 allowed source files; copied files byte-equal to the tested scratch versions. Imported component files are unchanged. | Scratch-test failures and limitations are recorded separately from the required commands: - The first harness attempt had two assertion failures at `test/scratch/tooling.test.mjs:56:10` and `:85:10`: expected failing child tests returned zero, and `FAIL tests (exit 1)` was absent. Node printed `node:test run() is being called recursively within a test file. skipping running files.` The scratch harness had inherited Node's parent test-runner context. Removing `NODE_TEST_CONTEXT` from the harness's child environment fixed both; no change to application tests was needed. - The initial resource-graph harness treated `` as a fetched asset, producing `AssertionError: /dist/web/web/` / `404 !== 200` at `test/scratch/tooling.test.mjs:232:14`. The harness now uses `` only for URL resolution. Both real page graphs passed afterward. - The optional live HTTP smoke test was stopped by the sandbox with `Network access to "127.0.0.1" was blocked: local/private network addresses are blocked by the sandbox policy.` No application file/line was supplied. No local-network retry or permission request was made. Server responses were instead tested in memory against the actual handler. Browser runtime packages downloaded to scratch, but browser gameplay and socket-level serving were not validated in this run. This item prepares configuration, checks and the static free-play build; it does not publish a website, change the contracts, enable paid play or claim an independent system audit. The original offline tests do not establish mainnet IMD purchase compatibility or legal/infrastructure readiness.