Skip to content

fix(sbx-verify): rename verify=sportsmeet to generic verify=app - #5

Merged
ICBreakerLA merged 1 commit into
mainfrom
fm/fm-sbx-verify-generic
Oct 6, 2026
Merged

ICBreakerLA merged 1 commit into
mainfrom
fm/fm-sbx-verify-generic

Conversation

@ICBreakerLA

Copy link
Copy Markdown
Owner

Intent

Remove every SportsMeet mention from the ICBreakerLA/firstmate fork's sandbox verification feature by renaming it to something generic. The feature (host-side verification broker for sandboxed workers) is currently switched on with the option verify=sportsmeet in config/worker-sandbox, and has the default app id com.sportsmeet.app and an Expo manifest named "SportsMeet"/"sportsmeet". The fork stays public, so no SportsMeet name or app id may remain in tracked files. Do not rewrite or rename any existing commit or history.

What Changed

  • Renamed the sandbox verification opt-in from verify=sportsmeet to verify=app across config/worker-sandbox parsing, the --verify flag, and bin/fm-spawn.sh's pass-through (bin/fm-sbx-lib.sh, bin/fm-sbx-run.sh, bin/fm-sbx-verify-broker.sh, bin/fm-spawn.sh), updating error messages and comments to match.
  • Removed the hardcoded com.sportsmeet.app default for app-id in config/sbx-verify; app-id is now a required key that fm_sbxv_load_config refuses to start without (bin/fm-sbx-verify-lib.sh).
  • Renamed the generated Expo manifest's name/slug from SportsMeet/sportsmeet to App/app (bin/fm-sbx-verify-io.py).
  • Updated docs/configuration.md and docs/sbx-verify-broker.md to describe the generic verify=app token and required app-id.
  • Updated tests/fm-sbx-lib.test.sh, tests/fm-sbx-run.test.sh, and tests/fm-sbx-verify-broker.test.sh to use verify=app and an explicit app-id, including new cases covering a missing or malformed app-id.

🤖 Generated with Claude Code

Risk Assessment

✅ Low: A straightforward, mechanical rename of verify=sportsmeet to verify=app and the default app-id to a required app-id=ID field; no SportsMeet references remain in tracked files, tests were updated to match, and the app-id validation/threading is correct end-to-end.

Testing

Drove the actual shell/python scripts live (not just the pre-existing test suite): confirmed config/worker-sandbox now accepts verify=app and refuses the old verify=sportsmeet token, confirmed config/sbx-verify requires app-id (missing or malformed app-id is refused with an error naming app-id), and curled a live instance of fm-sbx-verify-io.py's manifest server to see the Expo manifest now reports name "App"/slug "app" instead of SportsMeet. All three directly-touched test files (fm-sbx-lib, fm-sbx-run, fm-sbx-verify-broker) pass as real subprocess-driven behavior tests, including new broker tests for missing/malformed app-id and the renamed appId assertion (appId: com.example.app). git grep confirms no "sportsmeet" string remains in any tracked file. All scenarios passed; no findings.

  • Live validation: ✅ go - 7 of 7 scenarios driven live against the product
Scenario Result Live Evidence
config/worker-sandbox accepts the renamed verify=app token and wires the broker end-to-end ✅ pass live bash tests/fm-sbx-run.test.sh: 'ok - --verify mounts the spool and result directory and names the spool'; also live-sourced fm-sbx-lib.sh showing verify=app parses to FM_SBX_VERIFY=app
old verify=sportsmeet token is fully rejected (no backward-compat alias left in the fork) ✅ pass live Manually sourced bin/fm-sbx-lib.sh and called fm_sbx_load_config with 'sbx verify=sportsmeet' -> "error: config/worker-sandbox verify= only accepts app, got 'sportsmeet'"
config/sbx-verify now requires app-id (no default com.sportsmeet.app) and refuses when missing ✅ pass live Manually sourced bin/fm-sbx-verify-lib.sh with sm-verify set and no app-id -> "error: config/sbx-verify needs app-id=ID (letters, digits, dot and underscore)"; also tests/fm-sbx-verify-broker.test.sh…
malformed app-id is refused by charset validation ✅ pass live Manually sourced bin/fm-sbx-verify-lib.sh with app-id='com sportsmeet app' -> "error: config/sbx-verify app-id takes letters, digits, dot and underscore"; also broker test 'a malformed app-id must be…
the configured app-id (not a SportsMeet default) is written into generated Maestro flows ✅ pass live bash tests/fm-sbx-verify-broker.test.sh: 'ok - allowed steps become a host-generated flow with literal selectors' asserts appId: com.example.app in the real generated YAML
the Expo dev-client manifest served by the broker no longer carries SportsMeet branding ✅ pass live Started a real instance of bin/fm-sbx-verify-io.py serve and curled its manifest endpoint; response shows expoClient.name="App", expoClient.slug="app"
no SportsMeet name or app id remains in any tracked file of the public fork ✅ pass live git grep -ilE 'sportsmeet' -- . returned no matches (exit 1)
Evidence: Live Expo manifest response after rename
{
"extra": {
"expoGo": {"developer": {"tool": "expo-cli"}},
"expoClient": {"name": "App", "slug": "app", "sdkVersion": "54.0.0", "platforms": ["android"]}
}
}
Evidence: Live rejection of old verify=sportsmeet token and app-id requirement
error: config/worker-sandbox verify= only accepts app, got 'sportsmeet'
error: config/sbx-verify needs app-id=ID (letters, digits, dot and underscore)
error: config/sbx-verify app-id takes letters, digits, dot and underscore

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 7 of 7 scenarios driven live against the product
Scenario Result Live Evidence
config/worker-sandbox accepts the renamed verify=app token and wires the broker end-to-end ✅ pass live bash tests/fm-sbx-run.test.sh: 'ok - --verify mounts the spool and result directory and names the spool'; also live-sourced fm-sbx-lib.sh showing verify=app parses to FM_SBX_VERIFY=app
old verify=sportsmeet token is fully rejected (no backward-compat alias left in the fork) ✅ pass live Manually sourced bin/fm-sbx-lib.sh and called fm_sbx_load_config with 'sbx verify=sportsmeet' -> "error: config/worker-sandbox verify= only accepts app, got 'sportsmeet'"
config/sbx-verify now requires app-id (no default com.sportsmeet.app) and refuses when missing ✅ pass live Manually sourced bin/fm-sbx-verify-lib.sh with sm-verify set and no app-id -> "error: config/sbx-verify needs app-id=ID (letters, digits, dot and underscore)"; also tests/fm-sbx-verify-broker.test.sh…
malformed app-id is refused by charset validation ✅ pass live Manually sourced bin/fm-sbx-verify-lib.sh with app-id='com sportsmeet app' -> "error: config/sbx-verify app-id takes letters, digits, dot and underscore"; also broker test 'a malformed app-id must be…
the configured app-id (not a SportsMeet default) is written into generated Maestro flows ✅ pass live bash tests/fm-sbx-verify-broker.test.sh: 'ok - allowed steps become a host-generated flow with literal selectors' asserts appId: com.example.app in the real generated YAML
the Expo dev-client manifest served by the broker no longer carries SportsMeet branding ✅ pass live Started a real instance of bin/fm-sbx-verify-io.py serve and curled its manifest endpoint; response shows expoClient.name="App", expoClient.slug="app"
no SportsMeet name or app id remains in any tracked file of the public fork ✅ pass live git grep -ilE 'sportsmeet' -- . returned no matches (exit 1)
  • git grep -ilE 'sportsmeet' -- . (confirms zero tracked-file mentions remain)
  • bash tests/fm-sbx-lib.test.sh (worker-sandbox verify=app parsing/rejection, real script)
  • bash tests/fm-sbx-run.test.sh (fm-sbx-run.sh --verify app end-to-end wiring, real script/process)
  • bash tests/fm-sbx-verify-broker.test.sh (real broker process, appId=com.example.app in generated Maestro YAML, HTTP manifest serving)
  • Manually invoked python3 bin/fm-sbx-verify-io.py serve and curled its real manifest endpoint to confirm expoClient name/slug are now 'App'/'app'
  • Manually sourced bin/fm-sbx-lib.sh and bin/fm-sbx-verify-lib.sh to live-drive: verify=sportsmeet rejection, missing app-id rejection, malformed app-id rejection
✅ **Document** - passed

✅ No issues found.

⚠️ **Lint** - 1 warning
  • ⚠️ linter found issues (exit code 1)
✅ **Push** - passed

✅ No issues found.

@ICBreakerLA
ICBreakerLA merged commit fe49d00 into main Oct 6, 2026
36 of 37 checks passed
ICBreakerLA added a commit that referenced this pull request Oct 6, 2026
…hot.test.sh that broke "Behavior portable serial 7". Rule that was broken: each test must start from a clean remote-ledger fixture, whatever tests ran before it. Cause: call #5 (test_remote_ledgers_share_one_concurrent_budget_and_fall_back_to_cache) leaves $TMP_ROOT/remote-ledger-home-1/state/slow-ledger-read behind, and only call #6 removes it. Slice 1of2 runs #5 but skips #6, so in call #25 (test_landed_preserves_kindless_v1_summary_reports) the fake ssh sleeps 30s against the 15s budget and collection times out. Fix: one line in make_remote_ledger_fleet (line 258), the single place every test builds these homes. After mkdir -p "$remote_home/state" it runs rm -f on slow-ledger-read, unbounded-ledger-read and home-summary.json; write_remote_home_summary then rewrites the summary. All other uses of these marker files are per-test create/remove pairs. The 15s budget and all assertions are unchanged. Verification: (1) a copy of the script calling only #5 then #25 (slice 1of2 order) fails without the line ("structured home ledger collection timed out and no valid cached copy is available") and passes with it; the copy and the leftover untracked tests/_verify-fix.test.sh were deleted. (2) bin/fm-lint.sh exits 0 (ShellCheck 0.11.0, actionlint 1.7.12). A direct shellcheck run shows one SC2034 at line 271 that predates this fix and is not flagged by the project lint. (3) bin/fm-test-run.sh --lane portable-serial-7of12 still exits 1 locally with 4 failures, each from sandbox gaps (no tmux, no tasks-axi, curl 403 fetching the pinned action verifier). The remote-ledger tests in it pass, but the bearings script stops at the tasks-axi requirement before call #25, so only check (1) exercises #25. Nothing was committed
ICBreakerLA added a commit that referenced this pull request Oct 6, 2026
* ci: split long serial suites into slices, add lint partitions, run parallel lanes 4-wide

The serial lane's longest shard carried 30 minutes of one-runner work and was
cancelled at its cap. Slice the independent test_* calls of ten long suites
across twelve shards, partition lint eight ways, and run the proven-isolated
parallel lanes at their proven --jobs 4. No test, check, or threshold is
removed or loosened.

* test: drop the unused dups local from the serial shard partition test

* no-mistakes(document): Update CONTRIBUTING.md required-check list for 8 lint and 12 serial shards

* no-mistakes(lint): Add missing shellcheck shell=bash directive to sourced test slice gate

* no-mistakes(ci): Fixed the real defect behind "Lint 4": bin/fm-test-run.sh:907 (`portable_serial_lane_weight()`) was dead code — its only call site had been replaced by `portable_serial_assignments | awk ...` earlier in the same diff, and ShellCheck's SC2329 ("function is never invoked") correctly flags it, which fails the lint step by default severity. Confirmed by reproducing locally: `FM_LINT_JOBS=1 bin/fm-lint.sh --partition 4of8` reported `bin/fm-test-run.sh ... reason=findings rc=1` with the SC2329 hit before the fix, and exits clean (rc=0, no SC2329) after deleting the unused function. Grepped the whole tree to confirm nothing else calls it, so removal (not suppression) is correct per the removal-first rule. This was the only genuine lint finding in the diff; a second PR-noted dead-code item (an unreachable `uniq -d` duplicate check inside `run_coverage_guard`, PR body line ~130) is real but belongs to the separate "Test coverage guard" job, which is not among the failing checks, is not flagged by any tool, and is out of scope for this round's two selected findings — left untouched. For "Behavior portable serial 7" I could not confirm a code-caused defect. I verified the new 12-shard/slice mechanism directly: `bin/fm-test-run.sh --check-coverage` passes cleanly (exact-once coverage, no dup/missing units across all 12 shards), the full `tests/fm-test-run.test.sh` self-test suite passes every case about the new slicing/packing logic ("slice gate runs every call exactly once...", "portable serial shards are a deterministic disjoint cover...", etc.), and a direct manual run of slice 1of8 of the longest split script (tests/fm-watch-triage.test.sh) dispatched exactly 18 of its 141 top-level test_* calls (the expected ~1/8), confirming the slice gate works correctly. Running the actual portable-serial-7of12 lane locally produced only 4 script failures, and each traces unambiguously to this sandbox's missing tooling rather than to the change: no tmux binary (blocks the afk/tmux-dependent fm-supervision-host assertions), no tasks-axi binary and a blocked npm registry (`fail "tasks-axi is required for ..."` in fm-bearings-snapshot and fm-teardown-sandbox), and blocked outbound network (curl 403 fetching a pinned GitHub Action verifier in fm-no-mistakes-required, a pre-existing test untouched by this PR). I could not fetch the actual GitHub Actions job log for shard 7 either — the Actions log-blob endpoint returned 403/"approval required" in this sandbox, matching the task's own "log retrieval incomplete" note. Per the task rules, since every concrete signal I could obtain points at sandbox-only tooling/network gaps rather than the PR's sharding/slicing code (which I verified behaves correctly), I did not invent a speculative fix for this check

* no-mistakes(ci): Fixed a test fixture leak in tests/fm-bearings-snapshot.test.sh that broke "Behavior portable serial 7". Rule that was broken: each test must start from a clean remote-ledger fixture, whatever tests ran before it. Cause: call #5 (test_remote_ledgers_share_one_concurrent_budget_and_fall_back_to_cache) leaves $TMP_ROOT/remote-ledger-home-1/state/slow-ledger-read behind, and only call #6 removes it. Slice 1of2 runs #5 but skips #6, so in call #25 (test_landed_preserves_kindless_v1_summary_reports) the fake ssh sleeps 30s against the 15s budget and collection times out. Fix: one line in make_remote_ledger_fleet (line 258), the single place every test builds these homes. After mkdir -p "$remote_home/state" it runs rm -f on slow-ledger-read, unbounded-ledger-read and home-summary.json; write_remote_home_summary then rewrites the summary. All other uses of these marker files are per-test create/remove pairs. The 15s budget and all assertions are unchanged. Verification: (1) a copy of the script calling only #5 then #25 (slice 1of2 order) fails without the line ("structured home ledger collection timed out and no valid cached copy is available") and passes with it; the copy and the leftover untracked tests/_verify-fix.test.sh were deleted. (2) bin/fm-lint.sh exits 0 (ShellCheck 0.11.0, actionlint 1.7.12). A direct shellcheck run shows one SC2034 at line 271 that predates this fix and is not flagged by the project lint. (3) bin/fm-test-run.sh --lane portable-serial-7of12 still exits 1 locally with 4 failures, each from sandbox gaps (no tmux, no tasks-axi, curl 403 fetching the pinned action verifier). The remote-ledger tests in it pass, but the bearings script stops at the tasks-axi requirement before call #25, so only check (1) exercises #25. Nothing was committed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant