{ "project": "e-petitions", "benchmark": "2.0", "release": "runtime-e-petitions-v1.1 (BENCHMARK_V2_SPEC.md section 8.3)", "task_revision": "r2 (benchmark/specifications/E_PETITIONS_ENVIRONMENT_CORRECTION_AMENDMENT.md; views carry features/support/webmock_world.rb)", "image": { "id": "sha256:df58279c613fb59500be4a53989d239b13c1dd257f7b292b47c9dce3117f6d96", "component": "e-petitions_runtime_environment_v1", "rootfs": "the image's flattened filesystem, build.sh input RAW", "ruby": "3.2.11", "bundler": "2.7.2", "node": "24.20.0", "npm": "12.0.2", "postgresql": "16.15 + pgvector 0.8.6", "config_env": [ "PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=C.UTF-8", "RUBY_VERSION=3.2.11", "RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.11.tar.xz", "RUBY_DOWNLOAD_SHA256=c13aec0c206725d5d356acbae6e5fd8bffd92dc325aec14fd5dd7795d4b763d2", "GEM_HOME=/usr/local/bundle", "BUNDLE_SILENCE_ROOT_WARNING=1", "BUNDLE_APP_CONFIG=/usr/local/bundle", "DEBIAN_FRONTEND=noninteractive", "BUNDLE_PATH=/bundle", "BUNDLE_FROZEN=true", "BUNDLE_JOBS=8", "RAILS_ENV=test", "DATABASE_URL=postgresql://postgres@127.0.0.1/epets_test", "PGDATA=/var/lib/postgresql/b1-data", "OPENAI_BASE_URL=http://model-runner.docker.internal/engines/v1", "OPENAI_API_KEY=fake-api-key-for-openai-gem", "OPENAI_MODEL_ID=ai/mxbai-embed-large:latest", "EMBEDDING_BACKEND=OpenAI" ], "workdir": "/app" }, "rootfs": { "files": 75289, "bytes_apparent": 2219077457, "new_disk_bytes_over_raw_rootfs": "about 96 MB (state-template 50 MB + build-added files; everything else hardlinked)", "storage": "hardlinks into the raw rootfs (cp -al); only added files use new blocks", "removed": { "/app": "full upstream e-petitions app baked by the image (COPY app/): production code, gold step definitions (features/step_definitions), spec/, tmp/cache/bootsnap, log, node_modules copy, Gemfile*", "/var/lib/postgresql/b1-data": "image-built PGDATA (epets_test, schema only); moved to state-template/pg/data", "/tmp/*": "image-build Node compile cache (never bound: the runner skips tmp)", "/bundle/ruby/3.2.0/gems/email_spec-2.3.1/examples": "the gem's example apps (on no load path); their features/step_definitions/web_steps.rb is cucumber-rails' generated boilerplate sharing 29 distinctive lines with the gold features/step_definitions/web_steps.rb used by all 98 instances" }, "added": { "/node_modules": "symlink -> /opt/r2t/e-petitions/node_modules (the image's npm ci tree, third-party): Node/Sass package resolution from any workspace path without copying node_modules into WS", "/usr/local/lib/r2t-rt/{cucumber,rails,rake,rspec}": "#!/bin/sh exec bundle exec ", "/etc/hosts": "localhost entries (the image layer has none)" }, "kept_notes": "/opt/r2t/e-petitions holds only build records (dpkg/bundle lists, lockfile sha256, versions, initdb.log) and the third-party node_modules; /bundle and /usr/local/bundle hold third-party gems only; /root/.npm and /root/.bundle are third-party package caches" }, "skip_top": [ "app" ], "workdir_alias": null, "run_timeout": 600, "tools": { "bundle": "/usr/local/bundle/bin/bundle", "bundler": "/usr/local/bundle/bin/bundler", "cucumber": "/usr/local/lib/r2t-rt/cucumber", "erb": "/usr/local/bin/erb", "gem": "/usr/local/bin/gem", "irb": "/usr/local/bin/irb", "node": "/usr/bin/node", "npm": "/usr/bin/npm", "npx": "/usr/bin/npx", "psql": "/usr/lib/postgresql/16/bin/psql", "rails": "/usr/local/lib/r2t-rt/rails", "rake": "/usr/local/lib/r2t-rt/rake", "rspec": "/usr/local/lib/r2t-rt/rspec", "ruby": "/usr/local/bin/ruby" }, "env": [ "PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=C.UTF-8", "RUBY_VERSION=3.2.11", "RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.11.tar.xz", "RUBY_DOWNLOAD_SHA256=c13aec0c206725d5d356acbae6e5fd8bffd92dc325aec14fd5dd7795d4b763d2", "GEM_HOME=/usr/local/bundle", "BUNDLE_SILENCE_ROOT_WARNING=1", "BUNDLE_APP_CONFIG=/usr/local/bundle", "BUNDLE_PATH=/bundle", "BUNDLE_FROZEN=true", "BUNDLE_JOBS=8", "RAILS_ENV=test", "DATABASE_URL=postgresql://postgres@127.0.0.1/epets_test", "OPENAI_BASE_URL=http://model-runner.docker.internal/engines/v1", "OPENAI_API_KEY=fake-api-key-for-openai-gem", "OPENAI_MODEL_ID=ai/mxbai-embed-large:latest", "EMBEDDING_BACKEND=OpenAI", "HOME=@STATE@/home", "PGDATA=@STATE@/pg/data", "PGHOST=127.0.0.1", "PGUSER=postgres", "PGDATABASE=epets_test", "BOOTSNAP_CACHE_DIR=@STATE@/cache", "BUNDLE_GEMFILE=@REPO@/Gemfile" ], "libexec": { "run": { "sha256": "f2df79af7bffa6bc4c7360d4019b2d8c4082d1f5cbc64e716f2fb63ae7b5fa5b", "verbatim_copy_of": "runner v4.1, benchmark/runtime_packs/runner/run.v4.1", "verbatim": true }, "services": { "sha256": "cdeb06da1f7ae87c0036d4a4e800135b206511e0e0c12adfb0cc4659714a1baf", "does": "services ensure: start PostgreSQL 16 from the rootfs in a detached nested bwrap (setsid; no --unshare-pid, no --die-with-parent) on 127.0.0.1:5432 and /r2t-state/pg/sock, datadir /r2t-state/pg/data; fsync/synchronous_commit/full_page_writes off; stale postmaster.pid from an earlier sandbox is removed; flock-serialised; waits for postmaster.pid status 'ready' (<= 60 s)" } }, "remainder": { "source": "recipe/stage_remainder.sh input SEED: /projects/e-petitions/r2/seed/workspace.tar (runtime seed v2, seed_key 6cff9b2ba0ed4947)", "allowlist": [ "bin/", "esbuild.mjs", "data/example_postcodes.yml", "data/countries.csv", ".env", ".env.test", "public/", "Rakefile", "config.ru" ], "files": [ { "path": ".env", "sha256": "4fb172039dbfa44cd3b406b2f2f6277002fd39f9a27ab6f9e79a73f818056264" }, { "path": ".env.test", "sha256": "4ecf09d0b175a78868dc3ac6c5c6238fdd99f79fde1ea4f0ab82ab1e034c8f51" }, { "path": "Rakefile", "sha256": "e26d313909a866f23ffd98b57646f939155e5caba4b9d977c725f23894a46562" }, { "path": "bin/brakeman", "sha256": "f7e861eb3406a162dee25d4dbc942a0cd283692f6c860112831d643857c58a8d" }, { "path": "bin/bundle", "sha256": "d370c5510d15b72b108faf239d6c1130a12fabc1b3b180fd7398411ceb23b0d1" }, { "path": "bin/cucumber", "sha256": "b4b239e123fc8e1cfc0cf4a871aeeedcc800e33bf853b69b8e586a2bc707b78d" }, { "path": "bin/delayed_job", "sha256": "4e767f75ae9792be1fe5e55f969e022023b402f186f1b461218d93301c448c15" }, { "path": "bin/e2e", "sha256": "bd8b77da98f5f1f94a98cf7cb02c375f2159c87568c1611f5f5731486b057486" }, { "path": "bin/local_proxy", "sha256": "691f5b9acf557937f6a4b7a3e2d47553d20a95a9d007d877038c61d18612a994" }, { "path": "bin/puma", "sha256": "97886a97e7491bc6bfd5d36459a0decee1cf09c85f9f12d107508fe23eab8ae8" }, { "path": "bin/pumactl", "sha256": "3afdf7bf8979c6ba83df077f78267c1561b4687c5c8958c5d204b643d822694d" }, { "path": "bin/rails", "sha256": "0862d7bc09d5ed61785d677ef2dba10ce285387d4d5d9e3d90d97630e3f69ab6" }, { "path": "bin/rake", "sha256": "5943c3811dc345727b5f330b599c4c6c45abc04816dd8f4201aeed88cf268cb3" }, { "path": "bin/rspec", "sha256": "974cfc01e6d09f7f9941f817fe72b91435a14424c76da31463ea3cd754a7e56b" }, { "path": "bin/run", "sha256": "07826a427287c2ccf9e02ff4309990feeabeba8c04ae0e2ab3272301b1940416" }, { "path": "bin/sass", "sha256": "442357de79c77a9fcfb4e52d376cdc638b3d690f2deead692846292ced70c2ec" }, { "path": "bin/setup", "sha256": "68319ed4014113a6528715389f2b594357f35a16b661698ae4142fe440abbf61" }, { "path": "config.ru", "sha256": "1a5090e57cf9301e8bda3fec3abe4c72fbc001f6cd4909fd80b6cd488ab531b9" }, { "path": "data/countries.csv", "sha256": "c42ed17f6d55f7e49400a262400ff7f069c261d48abba7b4cc6d2ca3f3f2030d" }, { "path": "data/example_postcodes.yml", "sha256": "3fbc03df914c3774638e13e57c951f77c21d95121e19df4c6b3905bcb1cac66c" }, { "path": "esbuild.mjs", "sha256": "4c91c45ece46d17ff4b08eb79ddf0171c4ae47a96aec82115e62b679578452ec" }, { "path": "public/apple-touch-icon.png", "sha256": "65056630380b6477beefcd02d4d430a80f4bf42993d39855cb565a064d1b7eb0" }, { "path": "public/favicon-admin.ico", "sha256": "9ec9bd9560e4ac8e85ab172e034ddf07f7d3a80da8b148ec16e8a08e5473b908" }, { "path": "public/favicon.ico", "sha256": "c6ddcfa8c749d84f6ceef1cf01bf6afe64979d16d18d80d30122cf1a581d7ea2" }, { "path": "public/favicon.svg", "sha256": "55c514f2db909c853e631fb14f2a8edd74c6ea278f77cdc58f57b55fd96e743d" }, { "path": "public/google2c72409b182ebce8.html", "sha256": "588c765a33c88780fce2eb5cafaaee2a6a4892b3e4a58ff6a06b15a078787779" }, { "path": "public/robots.txt", "sha256": "f5b2800e63b450a81ebc1c4194a137a9e84d77fa2780c2e0a626e9f5bda9abfb" } ] }, "state_template": { "files": 1646, "bytes": 51786181, "pg/data": "the image's PGDATA: initdb --auth=trust --encoding=UTF8 --locale=C.UTF-8, then rake db:create db:schema:load at image build; rows: schema_migrations 271, ar_internal_metadata 2, all app tables empty", "cache": "BOOTSNAP_CACHE_DIR (empty; per attempt)", "home": "created by rr_attempt init (HOME)" }, "native_command": "cd repo && bundle exec cucumber features/.feature: (config/cucumber.yml default profile: --format pretty --publish-quiet --strict --tags 'not @wip')", "evaluator_command": "r2t-ruby-exec bundle exec ruby -r ./_bench/coverage_preload.rb -r ./_bench/bench_recorder.rb -S cucumber --no-profile --strict --publish-quiet --require _bench/coverage_hooks.rb --require features --format R2T::Recorder _bench/item.feature", "audit": { "result": "pass", "report": "in the builder final report (section Audit); jack copy /e-petitions/AUDIT.md; evidence lists under census/e-petitions/audit/ (kept outside the pack, which the agent can read at /r2t-rt)", "passed": true, "verified_by": "independent verifier 2026-10-15 (wf_eece076c-79f): no leak (14,702 fixed-string patterns incl. hidden bodies, omitted files, GT and whole-app lines: only gem/npm/system generic hits; sha256 vs base and GT: empty file and 5 Rails generator files only; DB schema-only); census re-run 20/20 consistent; BUNDLE_GEMFILE removed per verifier; repairs/ installed 2026-10-15 (1 entries, 1 blobs; repair-blob audit /census/e-petitions/repairs/audit/blob_audit.json; gold-on-TH census re-run through init_attempt 6da79fdf: census/e-petitions/repairs-install/)", "repairs": { "report": "/census/e-petitions/repairs/audit/blob_audit.json (+ blob_audit_hits.tsv, repairs_provenance.json)", "summary": "2,132 patterns (471 hidden-body, 1,661 omitted-file lines): the installed entry (app/helpers/page_title_helper.rb) only deletes `raise \"implementation hidden\"; ` from the load-time block; its one hit is text the TH file itself shows; diff mechanical only", "covers_installed": "audited set = work/e-petitions/repairs-candidate.v1 (2 entries); installed: 1 entry, app/models/concerns/staged_form.rb dropped, and the page_title_helper blob differs from the audited one only by the appended comment ' # implementation hidden' (bin/fix_repairs.py; checked at install)", "passed": true } }, "build": { "script": "build.sh", "note": "build.sh (+ recipe/stage_remainder.sh on the seed host)", "command": "RAW= INSPECT= RUNNER= bash build.sh; SEED= bash recipe/stage_remainder.sh OUT", "host_paths": "none: inputs are environment variables; this file identifies them by image id, runner sha256 and, where a seed is read, its seed key or digest" }, "layout": { "bound": "rt/ at /r2t-rt (rootfs, bin, tools, libexec, env, run_timeout, skip_top); pack.json, build.sh, recipe/, remainder/ and state-template/ stay outside the sandbox" }, "runner": { "path": "rt/libexec/run", "sha256": "f2df79af7bffa6bc4c7360d4019b2d8c4082d1f5cbc64e716f2fb63ae7b5fa5b", "source": "benchmark/runtime_packs/runner/run.v4.1", "version": "v4.1: v4 (sha256 213075a28d2b492e3fbeed736086acdd8adffaa9c1806ed891826d7cc39d043a) plus the workspace mount fix. A rootfs/ directory on the workspace's path is a read-only tmpfs of its entries, so the workspace mounts at any path." }, "supersedes": { "manifest_sha256": "5a5fd86c26562f0552e9d98bf0a874806b537e85f48131433d491005d62182df", "release": "runtime-e-petitions-v1.0", "reason": "benchmark/specifications/BENCHMARK_V2_RUNTIME_PATH_AMENDMENT.md, the record-only amendment of BENCHMARK_V2_SPEC.md section 8.3 (2026-10-21): runner v4 could not mount a workspace whose path runs through a directory of the runtime's rootfs/ (bwrap: Can't mkdir [parents for ]: Read-only file system), so every runtime command failed there. Runner v4.1 mounts it, and gives bwrap the same arguments as v4 for every workspace v4 could mount.", "differences": "rt/libexec/run only (runner v4 -> v4.1). Every other manifest line is the v1.0 pack's, so the leak audit (audit) carries over, because the runner holds no subject content. The build date, checks and measurements recorded here are the v1.0 pack's.", "validation": { "full_control_base_plus_gt": { "passed": 10 }, "pilot_th_plus_gt": { "hidden": 9, "omitted": 1 }, "census_th_plus_gt": { "hidden": 69, "omitted": 26, "compile_hidden": 3 }, "diag_th_omitted_restored": { "hidden": 87, "passed": 2, "compile_hidden": 3 }, "census_seconds_p50": 5.4, "census_seconds_p95": 6.6, "repeat_census_build1": { "hidden": 69, "omitted": 26, "compile_hidden": 3 }, "repeat_agreement": "98/98 identical class and first evidence" }, "per_attempt": { "state_bytes_p50": 77893861, "state_bytes_max": 79401217, "services_start_seconds_p50": 0.13, "services_start_seconds_max": 0.33, "services_start_note": "warm page cache; the first start under ionice -c3 with a cold cache took 21.6 s" }, "previous": { "manifest_sha256": "527fde2aa88c31f4778382f9c2f3bdba5b549cee1abb33803b8c5f14941f3040", "protocol": 408, "differences": "the scrub of BENCHMARK_V2_SPEC.md question 4, answer B: build.sh, recipe/stage_remainder.sh and pack.json name no operator host path or account name. Every other manifest line is the pinned pack's (section 5.1, point 2)" } }, "manifest_sha256": "05b78da686b803afe813e5977bba52d44782ba911f35fa37465afbd62a38857b", "repairs": { "dir": "repairs/ beside rt/, outside the sandbox: index.json [{path, th_sha256, repaired_sha256, rule}] + blobs/", "source": "/work/e-petitions/repairs-candidate (installed 2026-10-15)", "decision": "owner 2026-10-15: red-run TH views are made compilable and runnable by mechanical repairs that add no information (blind views unchanged); coddy omitted files get stubs built only from the view's own declaration lists", "applied_by": "runtime_pack.init_attempt (claude/red-run-repairs-20261015 6da79fdf): an entry is written where the materialized view has its path with its th_sha256 (mode kept), or added (0644) where th_sha256 is null and the view lacks the path; every other entry is another instance's and is skipped", "entries": 1, "blobs": 1, "replacements": 1, "added_files": 0, "by_rule": { "ruby_load_time_body_empty": 1 }, "index_sha256": "007dd585a4f2ee27e8ddc47677aba6f0370c39f8ba7e77914fd044abdb155da3", "census": { "dir": "/census/e-petitions/repairs-install (census.tsv, summary.json, logs)", "path": "materialize TH (inputs/review-pr6/views) -> load_pack(packs) + init_attempt (6da79fdf) -> GT installed -> native one-Scenario command via bin/rr_attempt2.py exec", "n": 98, "classes": { "hidden": 70, "omitted": 28 }, "timing_seconds": { "p50": 7.95, "p95": 16.0, "max": 20.9 }, "instances_with_repairs_applied": 3, "same_as_prototype_repaired_census": true, "note": "the 3 page_title_helper instances load; 1 then fails at a hidden body, 2 at the omitted layout" } }, "created": "2026-10-21" }