onboard.sh: FACTORY_MANIFEST has no generator, and the manifest ourcloud hand-authored is missing test-infra entries #7

Closed
opened 2026-08-19 23:59:52 +00:00 by matou-build-agent · 1 comment

Surfaced while running factory onboard matou-app end-to-end (ourcloud#572's acceptance run, 2026-08-19).

1. tests/fixtures/* and tests/fakebin/curl were missing from FACTORY_MANIFEST. preflight-swarm-test.sh and self-rearm-test.sh (both manifested, generic) both depend on these — the fixture dir is cp -r'd wholesale and the fakebin curl stub is sourced by every fakebin-driven test. Without them vendored, a first-time onboard target (matou-app) failed 2 tests it shouldn't have. Fixed on Matou/ourcloud's own FACTORY_MANIFEST this session (both entries added, content confirmed byte-identical to Matou/dev-factory@b7d9002 — no drift, just an omission) and copied forward into matou-app's manifest. Matou/dev-factory itself has no FACTORY_MANIFEST of its own (it's the source, not a consumer) so nothing to fix here directly, but every future onboard target will hit the same gap unless the canonical entry list ships from here.

2. onboard.sh has no subcommand that emits FACTORY_REF/FACTORY_MANIFEST. This session hand-copied Matou/ourcloud's FACTORY_MANIFEST and pinned FACTORY_REF to Matou/dev-factory's current main SHA by hand — matching #571's precedent, but unscripted and untested. A onboard.sh vendor <repo-checkout> <ref> (or similar) that writes both files from a canonical list living in this repo (not copied from whichever consumer happens to be newest) would close the preflight-swarm-test.sh-class gap at the source and stop each new onboard target from re-discovering the same omissions independently.

3. tests/judgement-call-prompts-test.sh and tests/session-runner-test.sh are listed in the manifest as generic, but both assert per-repo content that a fresh onboard target doesn't have yet:

  • judgement-call-prompts-test.sh greps prompt.md for ourcloud's exact rule numbering (^6\. \*\*If you hit anything in \needs_human_decision`) and an ourcloud-specific ## When you are blocked` heading — not a generic ADR-0174-adoption check, a pinned match against ourcloud's own document shape. Any repo with a differently-numbered or differently-headed prompt.md (matou-app's is rule 5/rule 7, no such heading) fails this test regardless of whether its actual ask-human flow is ADR-0174-compliant in spirit.
  • session-runner-test.sh needs session-runner-prompt.md to exist (session-runner.sh cats it unconditionally) — a per-repo asset in the same deferred family as prompt.md/heal-prompt.md (see onboarding's own README: "prompt.md skeleton ... too high-blast-radius to rush", tracked as this repo's follow-up #1). Matou-app doesn't have one and #572's own ruling deliberately didn't build one.

Recommendation: either (a) make judgement-call-prompts-test.sh introspect structurally (find the needs_human_decision rule by content marker, not a hardcoded number) so it actually generalizes, or (b) stop bundling both tests as unconditionally-vendored and gate them behind prompt-skeleton adoption (follow-up #1) landing. Left both tests red for matou-app this session rather than force its live prompt.md into ourcloud's shape or hand-author placeholder prompt content — documented in the onboarding PR/commit and on ourcloud#572.

None of this blocks matou-app's actual CI gate (frontend/backend build+test, not the harness suite) — filed so the next onboard target doesn't rediscover the same three gaps from scratch.

Surfaced while running `factory onboard matou-app` end-to-end (ourcloud#572's acceptance run, 2026-08-19). **1. `tests/fixtures/*` and `tests/fakebin/curl` were missing from `FACTORY_MANIFEST`.** `preflight-swarm-test.sh` and `self-rearm-test.sh` (both manifested, generic) both depend on these — the fixture dir is `cp -r`'d wholesale and the fakebin `curl` stub is sourced by every fakebin-driven test. Without them vendored, a first-time onboard target (matou-app) failed 2 tests it shouldn't have. Fixed on `Matou/ourcloud`'s own `FACTORY_MANIFEST` this session (both entries added, content confirmed byte-identical to `Matou/dev-factory`@b7d9002 — no drift, just an omission) and copied forward into matou-app's manifest. `Matou/dev-factory` itself has no `FACTORY_MANIFEST` of its own (it's the source, not a consumer) so nothing to fix here directly, but every future onboard target will hit the same gap unless the canonical entry list ships from here. **2. `onboard.sh` has no subcommand that emits `FACTORY_REF`/`FACTORY_MANIFEST`.** This session hand-copied `Matou/ourcloud`'s `FACTORY_MANIFEST` and pinned `FACTORY_REF` to `Matou/dev-factory`'s current main SHA by hand — matching #571's precedent, but unscripted and untested. A `onboard.sh vendor <repo-checkout> <ref>` (or similar) that writes both files from a canonical list living in this repo (not copied from whichever consumer happens to be newest) would close the `preflight-swarm-test.sh`-class gap at the source and stop each new onboard target from re-discovering the same omissions independently. **3. `tests/judgement-call-prompts-test.sh` and `tests/session-runner-test.sh` are listed in the manifest as generic, but both assert per-repo content that a fresh onboard target doesn't have yet:** - `judgement-call-prompts-test.sh` greps `prompt.md` for ourcloud's *exact* rule numbering (`^6\. \*\*If you hit anything in \`needs_human_decision\``) and an ourcloud-specific `## When you are blocked` heading — not a generic ADR-0174-adoption check, a pinned match against ourcloud's own document shape. Any repo with a differently-numbered or differently-headed prompt.md (matou-app's is rule 5/rule 7, no such heading) fails this test regardless of whether its actual ask-human flow is ADR-0174-compliant in spirit. - `session-runner-test.sh` needs `session-runner-prompt.md` to exist (`session-runner.sh` `cat`s it unconditionally) — a per-repo asset in the same deferred family as `prompt.md`/`heal-prompt.md` (see onboarding's own README: "prompt.md skeleton ... too high-blast-radius to rush", tracked as this repo's follow-up #1). Matou-app doesn't have one and #572's own ruling deliberately didn't build one. Recommendation: either (a) make `judgement-call-prompts-test.sh` introspect structurally (find the `needs_human_decision` rule by content marker, not a hardcoded number) so it actually generalizes, or (b) stop bundling both tests as unconditionally-vendored and gate them behind prompt-skeleton adoption (follow-up #1) landing. Left both tests red for matou-app this session rather than force its live prompt.md into ourcloud's shape or hand-author placeholder prompt content — documented in the onboarding PR/commit and on ourcloud#572. None of this blocks matou-app's actual CI gate (frontend/backend build+test, not the harness suite) — filed so the next onboard target doesn't rediscover the same three gaps from scratch.
Owner

Landed on main at 59c53bd (2026-08-22): onboard.sh vendor <target-dir> <ref> [--force].

  • Factory-owned onboarding/vendor-manifest / vendor-exclude; onboarding/tests/vendor-manifest-coverage-test.sh fails CI on any tracked path not classified exactly once (the hand-curated-manifest omission class cannot start on the factory side again).
  • FACTORY_MANIFEST is now generated from the manifest at the pinned ref; FACTORY_REF records the commit SHA (annotated tags resolve to their commit).
  • Pin bump: manifest-driven literal-match removal, local-edit guard (--force to overwrite), degraded-not-silent warning if the old pin is unfetchable. Success is proven by running the vendored check-harness-drift.sh and requiring its OK line.
  • Consumers' hand-written manifests (the test-infra/evidence-lib.sh gaps this ticket names) get corrected at their next pin bump by running vendor.

Spec: docs/superpowers/specs/2026-08-21-vendor-command-design.md. GOTCHAS 3 records the hazard. Sub-project 2 of 4 of the agent-driven install-session arc.

Landed on `main` at `59c53bd` (2026-08-22): `onboard.sh vendor <target-dir> <ref> [--force]`. - Factory-owned `onboarding/vendor-manifest` / `vendor-exclude`; `onboarding/tests/vendor-manifest-coverage-test.sh` fails CI on any tracked path not classified exactly once (the hand-curated-manifest omission class cannot start on the factory side again). - `FACTORY_MANIFEST` is now **generated** from the manifest at the pinned ref; `FACTORY_REF` records the commit SHA (annotated tags resolve to their commit). - Pin bump: manifest-driven literal-match removal, local-edit guard (`--force` to overwrite), degraded-not-silent warning if the old pin is unfetchable. Success is proven by running the vendored `check-harness-drift.sh` and requiring its OK line. - Consumers' hand-written manifests (the test-infra/`evidence-lib.sh` gaps this ticket names) get corrected at their next pin bump by running `vendor`. Spec: `docs/superpowers/specs/2026-08-21-vendor-command-design.md`. GOTCHAS 3 records the hazard. Sub-project 2 of 4 of the agent-driven install-session arc.
ben closed this issue 2026-08-22 10:55:01 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#7
No description provided.