tests/policy-lib-test.sh sources onboarding/onboard-lib.sh, a path every consumer's vendor excludes #23

Closed
opened 2026-08-22 16:42:13 +00:00 by matou-build-agent · 5 comments

Surfaced while re-vendoring Matou/idss's stale FACTORY_REF (idss #666, catching its pin up from 1b7abc2 to current main).

tests/policy-lib-test.sh is IN onboarding/vendor-manifest (it vendors to every consumer's .sandcastle/tests/), but it sources ../onboarding/onboard-lib.sh to test onboard_write_policy — and onboarding/** is deliberately excluded from every consumer's vendored set (onboarding/vendor-exclude:19). So the moment a consumer vendors policy-lib.sh (added recently — idss never had it before this re-vendor), this test fails loud in their tree:

tests/policy-lib-test.sh: line 115: .../onboarding/onboard-lib.sh: No such file or directory
tests/policy-lib-test.sh: line 116: onboard_write_policy: command not found
FAIL: onboard_write_policy: valid knobs should write

This is a manifest-scoping bug, not a real defect in policy-lib.sh itself — every OTHER test in the consumer manifest is self-contained (sources only its own lib + fixtures). Two candidate fixes, no ruling made yet:

  1. Split policy-lib-test.sh: keep the policy_load/policy_validate library cases (self-contained, belongs in the consumer manifest) separate from the onboard_write_policy writer cases (dev-factory-tooling-only, belongs in onboarding/tests/ instead, alongside onboard-lib-test.sh).
  2. Or vendor onboarding/onboard-lib.sh (or just the onboard_write_policy function) to consumers too — but that reopens the question of why onboarding/** is excluded in the first place (it's the vendoring tool itself, consumers shouldn't need it).

Option 1 looks like the right shape (matches the existing onboarding/tests/onboard-lib-test.sh split) but I haven't verified it against onboarding/tests/vendor-manifest-coverage-test.sh's exhaustiveness check.

Not fixed as part of idss #666 (out of scope — that ticket was about 7 idss-local hand-edited files, this is a pre-existing dev-factory defect that ticket's re-vendor merely exposed for the first time in idss's tree). idss currently just has this one test red in its offline .sandcastle/tests/*.sh suite; every other vendored test is green.

Surfaced while re-vendoring Matou/idss's stale FACTORY_REF (idss #666, catching its pin up from `1b7abc2` to current `main`). `tests/policy-lib-test.sh` is IN `onboarding/vendor-manifest` (it vendors to every consumer's `.sandcastle/tests/`), but it sources `../onboarding/onboard-lib.sh` to test `onboard_write_policy` — and `onboarding/**` is deliberately excluded from every consumer's vendored set (`onboarding/vendor-exclude:19`). So the moment a consumer vendors `policy-lib.sh` (added recently — idss never had it before this re-vendor), this test fails loud in their tree: ``` tests/policy-lib-test.sh: line 115: .../onboarding/onboard-lib.sh: No such file or directory tests/policy-lib-test.sh: line 116: onboard_write_policy: command not found FAIL: onboard_write_policy: valid knobs should write ``` This is a manifest-scoping bug, not a real defect in `policy-lib.sh` itself — every OTHER test in the consumer manifest is self-contained (sources only its own lib + fixtures). Two candidate fixes, no ruling made yet: 1. Split `policy-lib-test.sh`: keep the `policy_load`/`policy_validate` library cases (self-contained, belongs in the consumer manifest) separate from the `onboard_write_policy` writer cases (dev-factory-tooling-only, belongs in `onboarding/tests/` instead, alongside `onboard-lib-test.sh`). 2. Or vendor `onboarding/onboard-lib.sh` (or just the `onboard_write_policy` function) to consumers too — but that reopens the question of why `onboarding/**` is excluded in the first place (it's the vendoring tool itself, consumers shouldn't need it). Option 1 looks like the right shape (matches the existing `onboarding/tests/onboard-lib-test.sh` split) but I haven't verified it against `onboarding/tests/vendor-manifest-coverage-test.sh`'s exhaustiveness check. Not fixed as part of idss #666 (out of scope — that ticket was about 7 idss-local hand-edited files, this is a pre-existing dev-factory defect that ticket's re-vendor merely exposed for the first time in idss's tree). idss currently just has this one test red in its offline `.sandcastle/tests/*.sh` suite; every other vendored test is green.
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: Adopt Option 1 from the issue body — split tests/policy-lib-test.sh. The policy_load/policy_validate/policy_human_labels cases (self-contained, source only policy-lib.sh + forgejo-lib.sh, both already vendored) stay in the consumer-vendored tests/policy-lib-test.sh. The onboard_write_policy writer cases move to onboarding/tests/, alongside the existing onboarding/tests/onboard-lib-test.sh — matching the split that file already establishes for onboarding-only coverage.

Why this is a two-way door: Pure test-organization move — no product code, tracker schema, or consumer-facing contract changes. Fully revertible by a later commit (re-merge the files, or switch to Option 2), and it doesn't touch any one-way-door surface (no credentials, no security-posture change, no member-facing trust accept, no destructive action, no spend).

What proves it: Reproduced the failure first — copied only the paths listed in onboarding/vendor-manifest into a scratch .sandcastle/ tree (no onboarding/**, faithfully simulating a consumer vendor) and ran tests/policy-lib-test.sh there: it fails exactly as described (onboard-lib.sh: No such file or directory, onboard_write_policy: command not found). The same simulation, re-run after the split, plus the full offline suite — including onboarding/tests/vendor-manifest-coverage-test.sh (every tracked path classified exactly once in vendor-manifest/vendor-exclude, already fails loud on an unclassified new file) — is the fix's own proof and stays green going forward.

Rejected alternative: Option 2 (vendor onboarding/onboard-lib.sh or onboard_write_policy to consumers) reopens why onboarding/** is excluded at all — it's the vendoring tool itself, and a consumer has no business running it. Bigger architectural question than this bug warrants.


Agent Brief

Category: bug
Summary: tests/policy-lib-test.sh sources onboarding/onboard-lib.sh to test onboard_write_policy, but onboarding/** is excluded from every consumer's vendor — the moment a consumer vendors policy-lib.sh, this test fails loud in their tree.

Current behavior:
tests/policy-lib-test.sh is listed in onboarding/vendor-manifest (vendored byte-identical into every consumer's .sandcastle/tests/). Its final section sources ../onboarding/onboard-lib.sh to exercise onboard_write_policy. onboarding/** is listed in onboarding/vendor-exclude — it's the factory's own tooling, not meant for consumers. Any consumer that vendors policy-lib.sh fails this specific test case on every run (No such file or directory, then onboard_write_policy: command not found), even though policy-lib.sh itself works correctly.

Desired behavior:
The vendored test only exercises code paths available in a consumer's tree. The onboard_write_policy writer coverage still exists, but as dev-factory-tooling-only coverage that never ships to a consumer — following the shape onboarding/tests/onboard-lib-test.sh already establishes for onboarding-only coverage.

Key interfaces:

  • tests/policy-lib-test.sh — keep only the cases exercising policy_load/policy_validate/policy_human_labels from policy-lib.sh. Remove the onboard_write_policy cases and the source of onboarding/onboard-lib.sh entirely.
  • The onboard_write_policy cases (valid knobs write and round-trip through policy_load; a bad enum must not write a file; an unknown key must not write a file) move to an onboarding-side test — natural home is alongside onboarding/tests/onboard-lib-test.sh, since both cover onboard-lib.sh and neither ships to consumers.
  • onboarding/vendor-manifest / onboarding/vendor-exclude — wherever the writer-case tests end up must be correctly classified so onboarding/tests/vendor-manifest-coverage-test.sh keeps passing.

Acceptance criteria:

  • tests/policy-lib-test.sh no longer sources anything under onboarding/
  • All policy_load/policy_validate/policy_human_labels cases currently in tests/policy-lib-test.sh still exist and pass
  • All onboard_write_policy cases currently in tests/policy-lib-test.sh still exist and pass, from their new home
  • A from-scratch copy of only onboarding/vendor-manifest's listed paths (simulating a consumer's .sandcastle/) can run tests/policy-lib-test.sh standalone with no onboarding/ present, with no failures
  • onboarding/tests/vendor-manifest-coverage-test.sh passes (every tracked path still classified exactly once)
  • Full offline suite green: for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done

Out of scope:

  • Option 2 (vendoring onboarding/onboard-lib.sh or onboard_write_policy to consumers) — rejected in the ruling above
  • Any change to policy-lib.sh's or onboard_write_policy's actual behavior
  • Carrying the fix into any consumer's vendored .sandcastle/ — that's a human re-vendor per this repo's blast-radius rule
> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime** **Ruling:** Adopt Option 1 from the issue body — split `tests/policy-lib-test.sh`. The `policy_load`/`policy_validate`/`policy_human_labels` cases (self-contained, source only `policy-lib.sh` + `forgejo-lib.sh`, both already vendored) stay in the consumer-vendored `tests/policy-lib-test.sh`. The `onboard_write_policy` writer cases move to `onboarding/tests/`, alongside the existing `onboarding/tests/onboard-lib-test.sh` — matching the split that file already establishes for onboarding-only coverage. **Why this is a two-way door:** Pure test-organization move — no product code, tracker schema, or consumer-facing contract changes. Fully revertible by a later commit (re-merge the files, or switch to Option 2), and it doesn't touch any one-way-door surface (no credentials, no security-posture change, no member-facing trust accept, no destructive action, no spend). **What proves it:** Reproduced the failure first — copied only the paths listed in `onboarding/vendor-manifest` into a scratch `.sandcastle/` tree (no `onboarding/**`, faithfully simulating a consumer vendor) and ran `tests/policy-lib-test.sh` there: it fails exactly as described (`onboard-lib.sh: No such file or directory`, `onboard_write_policy: command not found`). The same simulation, re-run after the split, plus the full offline suite — including `onboarding/tests/vendor-manifest-coverage-test.sh` (every tracked path classified exactly once in `vendor-manifest`/`vendor-exclude`, already fails loud on an unclassified new file) — is the fix's own proof and stays green going forward. **Rejected alternative:** Option 2 (vendor `onboarding/onboard-lib.sh` or `onboard_write_policy` to consumers) reopens why `onboarding/**` is excluded at all — it's the vendoring tool itself, and a consumer has no business running it. Bigger architectural question than this bug warrants. --- ## Agent Brief **Category:** bug **Summary:** `tests/policy-lib-test.sh` sources `onboarding/onboard-lib.sh` to test `onboard_write_policy`, but `onboarding/**` is excluded from every consumer's vendor — the moment a consumer vendors `policy-lib.sh`, this test fails loud in their tree. **Current behavior:** `tests/policy-lib-test.sh` is listed in `onboarding/vendor-manifest` (vendored byte-identical into every consumer's `.sandcastle/tests/`). Its final section sources `../onboarding/onboard-lib.sh` to exercise `onboard_write_policy`. `onboarding/**` is listed in `onboarding/vendor-exclude` — it's the factory's own tooling, not meant for consumers. Any consumer that vendors `policy-lib.sh` fails this specific test case on every run (`No such file or directory`, then `onboard_write_policy: command not found`), even though `policy-lib.sh` itself works correctly. **Desired behavior:** The vendored test only exercises code paths available in a consumer's tree. The `onboard_write_policy` writer coverage still exists, but as dev-factory-tooling-only coverage that never ships to a consumer — following the shape `onboarding/tests/onboard-lib-test.sh` already establishes for onboarding-only coverage. **Key interfaces:** - `tests/policy-lib-test.sh` — keep only the cases exercising `policy_load`/`policy_validate`/`policy_human_labels` from `policy-lib.sh`. Remove the `onboard_write_policy` cases and the source of `onboarding/onboard-lib.sh` entirely. - The `onboard_write_policy` cases (valid knobs write and round-trip through `policy_load`; a bad enum must not write a file; an unknown key must not write a file) move to an onboarding-side test — natural home is alongside `onboarding/tests/onboard-lib-test.sh`, since both cover `onboard-lib.sh` and neither ships to consumers. - `onboarding/vendor-manifest` / `onboarding/vendor-exclude` — wherever the writer-case tests end up must be correctly classified so `onboarding/tests/vendor-manifest-coverage-test.sh` keeps passing. **Acceptance criteria:** - [ ] `tests/policy-lib-test.sh` no longer sources anything under `onboarding/` - [ ] All `policy_load`/`policy_validate`/`policy_human_labels` cases currently in `tests/policy-lib-test.sh` still exist and pass - [ ] All `onboard_write_policy` cases currently in `tests/policy-lib-test.sh` still exist and pass, from their new home - [ ] A from-scratch copy of only `onboarding/vendor-manifest`'s listed paths (simulating a consumer's `.sandcastle/`) can run `tests/policy-lib-test.sh` standalone with no `onboarding/` present, with no failures - [ ] `onboarding/tests/vendor-manifest-coverage-test.sh` passes (every tracked path still classified exactly once) - [ ] Full offline suite green: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done` **Out of scope:** - Option 2 (vendoring `onboarding/onboard-lib.sh` or `onboard_write_policy` to consumers) — rejected in the ruling above - Any change to `policy-lib.sh`'s or `onboard_write_policy`'s actual behavior - Carrying the fix into any consumer's vendored `.sandcastle/` — that's a human re-vendor per this repo's blast-radius rule
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: Option 1 from the issue body — split onboard_write_policy's test cases out of tests/policy-lib-test.sh into onboarding/tests/onboard-lib-test.sh, mirroring the existing split for every other onboard-lib.sh function. tests/policy-lib-test.sh keeps only the policy_load/policy_validate/policy_human_labels cases and sources nothing outside policy-lib.sh + forgejo-lib.sh (both vendored, onboarding/vendor-manifest:32,18).

Why this is a two-way door: a test-file reorganization, no production code changes, fully revertible by a later commit. Reassigning which suite owns a given assertion doesn't change what's covered.

What proves it:

  • Reproduced the reported failure directly: copying only policy-lib.sh + forgejo-lib.sh + tests/policy-lib-test.sh into a scratch dir (no onboarding/ — mirrors a consumer's vendored .sandcastle/) fails today with exactly the reported symptom (onboard-lib.sh: No such file or directory).
  • Verified the fix: removing the onboard_write_policy block (lines 114-128) from tests/policy-lib-test.sh and moving its cases — including the policy_load round-trip assertion the writer block ends with — into onboarding/tests/onboard-lib-test.sh (which already has partial coverage at lines 201-216 and, via onboard_write_policy's own . policy-lib.sh at onboard-lib.sh:190, has policy_load available for the round-trip check with no new sourcing needed) makes the same scratch-dir reproduction pass clean.
  • Full offline suite (tests/*.sh + onboarding/tests/*.sh) stays green after the split, and onboarding/tests/vendor-manifest-coverage-test.sh (the exhaustiveness check) is untouched — no manifest/exclude edit needed, only the test-file contents move.

This is a pre-existing dev-factory defect (not idss #666's scope, per the issue body) with no other consumer report yet — routing to ready-for-agent rather than ready-for-human; nothing here needs Ben's hands, eyes, or a one-way-door call.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** Option 1 from the issue body — split `onboard_write_policy`'s test cases out of `tests/policy-lib-test.sh` into `onboarding/tests/onboard-lib-test.sh`, mirroring the existing split for every other `onboard-lib.sh` function. `tests/policy-lib-test.sh` keeps only the `policy_load`/`policy_validate`/`policy_human_labels` cases and sources nothing outside `policy-lib.sh` + `forgejo-lib.sh` (both vendored, `onboarding/vendor-manifest:32,18`). **Why this is a two-way door:** a test-file reorganization, no production code changes, fully revertible by a later commit. Reassigning which suite owns a given assertion doesn't change what's covered. **What proves it:** - Reproduced the reported failure directly: copying only `policy-lib.sh` + `forgejo-lib.sh` + `tests/policy-lib-test.sh` into a scratch dir (no `onboarding/` — mirrors a consumer's vendored `.sandcastle/`) fails today with exactly the reported symptom (`onboard-lib.sh: No such file or directory`). - Verified the fix: removing the `onboard_write_policy` block (lines 114-128) from `tests/policy-lib-test.sh` and moving its cases — including the `policy_load` round-trip assertion the writer block ends with — into `onboarding/tests/onboard-lib-test.sh` (which already has partial coverage at lines 201-216 and, via `onboard_write_policy`'s own `. policy-lib.sh` at `onboard-lib.sh:190`, has `policy_load` available for the round-trip check with no new sourcing needed) makes the same scratch-dir reproduction pass clean. - Full offline suite (`tests/*.sh` + `onboarding/tests/*.sh`) stays green after the split, and `onboarding/tests/vendor-manifest-coverage-test.sh` (the exhaustiveness check) is untouched — no manifest/exclude edit needed, only the test-file contents move. This is a pre-existing dev-factory defect (not idss #666's scope, per the issue body) with no other consumer report yet — routing to `ready-for-agent` rather than `ready-for-human`; nothing here needs Ben's hands, eyes, or a one-way-door call.
Author
Member

This was generated by AI during triage.

Agent Brief

Category: bug
Summary: tests/policy-lib-test.sh sources onboarding/onboard-lib.sh to exercise the onboard_write_policy writer, but onboarding/** is excluded from every consumer's vendored tree — so the test fails with a "No such file or directory" the moment a consumer vendors policy-lib.sh (and thus tests/policy-lib-test.sh, since tests/** is vendored wholesale).

Current behavior:
tests/policy-lib-test.sh is self-contained for its policy_load/policy_validate/policy_human_labels cases, but its final section also drives onboard_write_policy (the swarm-policy.sh file-writer) by sourcing onboarding/onboard-lib.sh directly. That works in this repo (the tooling lives at the same root), but onboarding/** is deliberately excluded from every consumer's vendored .sandcastle/ — the vendoring tool itself has no reason to ship to consumers. A consumer that vendors this file (any consumer that picks up policy-lib.sh) gets a red offline test purely from the missing source path, with no defect in policy-lib.sh itself.

Desired behavior:
tests/policy-lib-test.sh sources only files every consumer already vendors (policy-lib.sh and its own dependencies) and passes standalone in a tree that has no onboarding/ directory at all — i.e. it must still pass when copied, along with only its own non-onboarding dependencies, into an empty directory. The onboard_write_policy writer behavior (valid-knobs write, bad-enum-refuses-and-leaves-no-file, unknown-key-refuses-and-leaves-no-file, and the write-then-reload round trip through policy_load) keeps full coverage — moved to the suite that already tests the rest of onboard-lib.sh's functions, which lives beside onboard-lib.sh itself and is never vendored.

Key interfaces:

  • policy-lib.sh's policy_load/policy_validate/policy_human_labels — unchanged, no production code touched.
  • onboard-lib.sh's onboard_write_policy — unchanged; only which test file exercises it moves.
  • The offline test suite's coverage-exhaustiveness check (the one that asserts every tracked path is classified in exactly one of the vendor manifest or the vendor exclude list) must keep passing untouched — this is a test-content move, not a manifest/exclude change.

Acceptance criteria:

  • Copying only policy-lib.sh, its own non-onboarding dependencies, and the policy test file into a directory with no onboarding/ present passes with no missing-file error.
  • The onboard_write_policy writer cases (valid write, bad-enum rejection leaves no file, unknown-key rejection leaves no file, and the written file reloading correctly through policy_load) still run and pass somewhere in the offline suite.
  • The full existing offline test suite (every tests/*.sh and onboarding/tests/*.sh, excluding fakebin/fixture helpers) stays green.
  • The manifest/exclude exhaustiveness check still passes with no changes to onboarding/vendor-manifest or onboarding/vendor-exclude.

Out of scope:

  • Vendoring any part of onboarding/** to consumers, or otherwise reopening why it's excluded.
  • Any change to policy-lib.sh or onboard-lib.sh behavior — this is purely a test-file reorganization.
  • idss's specific red run (idss #666's rail) — it self-heals once idss re-vendors past this fix; no idss-side action needed here.
> *This was generated by AI during triage.* ## Agent Brief **Category:** bug **Summary:** `tests/policy-lib-test.sh` sources `onboarding/onboard-lib.sh` to exercise the `onboard_write_policy` writer, but `onboarding/**` is excluded from every consumer's vendored tree — so the test fails with a "No such file or directory" the moment a consumer vendors `policy-lib.sh` (and thus `tests/policy-lib-test.sh`, since `tests/**` is vendored wholesale). **Current behavior:** `tests/policy-lib-test.sh` is self-contained for its `policy_load`/`policy_validate`/`policy_human_labels` cases, but its final section also drives `onboard_write_policy` (the `swarm-policy.sh` file-writer) by sourcing `onboarding/onboard-lib.sh` directly. That works in this repo (the tooling lives at the same root), but `onboarding/**` is deliberately excluded from every consumer's vendored `.sandcastle/` — the vendoring tool itself has no reason to ship to consumers. A consumer that vendors this file (any consumer that picks up `policy-lib.sh`) gets a red offline test purely from the missing source path, with no defect in `policy-lib.sh` itself. **Desired behavior:** `tests/policy-lib-test.sh` sources only files every consumer already vendors (`policy-lib.sh` and its own dependencies) and passes standalone in a tree that has no `onboarding/` directory at all — i.e. it must still pass when copied, along with only its own non-`onboarding` dependencies, into an empty directory. The `onboard_write_policy` writer behavior (valid-knobs write, bad-enum-refuses-and-leaves-no-file, unknown-key-refuses-and-leaves-no-file, and the write-then-reload round trip through `policy_load`) keeps full coverage — moved to the suite that already tests the rest of `onboard-lib.sh`'s functions, which lives beside `onboard-lib.sh` itself and is never vendored. **Key interfaces:** - `policy-lib.sh`'s `policy_load`/`policy_validate`/`policy_human_labels` — unchanged, no production code touched. - `onboard-lib.sh`'s `onboard_write_policy` — unchanged; only *which test file* exercises it moves. - The offline test suite's coverage-exhaustiveness check (the one that asserts every tracked path is classified in exactly one of the vendor manifest or the vendor exclude list) must keep passing untouched — this is a test-content move, not a manifest/exclude change. **Acceptance criteria:** - [ ] Copying only `policy-lib.sh`, its own non-`onboarding` dependencies, and the policy test file into a directory with no `onboarding/` present passes with no missing-file error. - [ ] The `onboard_write_policy` writer cases (valid write, bad-enum rejection leaves no file, unknown-key rejection leaves no file, and the written file reloading correctly through `policy_load`) still run and pass somewhere in the offline suite. - [ ] The full existing offline test suite (every `tests/*.sh` and `onboarding/tests/*.sh`, excluding fakebin/fixture helpers) stays green. - [ ] The manifest/exclude exhaustiveness check still passes with no changes to `onboarding/vendor-manifest` or `onboarding/vendor-exclude`. **Out of scope:** - Vendoring any part of `onboarding/**` to consumers, or otherwise reopening why it's excluded. - Any change to `policy-lib.sh` or `onboard-lib.sh` behavior — this is purely a test-file reorganization. - idss's specific red run (idss #666's rail) — it self-heals once idss re-vendors past this fix; no idss-side action needed here.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=182
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=182 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #23 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 23,
  "status": "success",
  "commits": [
    "75c0067"
  ],
  "changed_files": [
    "tests/policy-lib-test.sh",
    "onboarding/tests/onboard-lib-test.sh",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash tests/policy-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "tests/policy-lib-test.sh no longer sources anything under onboarding/": "removed the `. \"$sc/onboarding/onboard-lib.sh\"` source and the onboard_write_policy block in 75c0067",
    "All policy_load/policy_validate/policy_human_labels cases still exist and pass": "tests/policy-lib-test.sh unchanged except the removed writer block; `bash tests/policy-lib-test.sh` -> 23 checks passed",
    "All onboard_write_policy cases still exist and pass from their new home": "onboarding/tests/onboard-lib-test.sh covers valid-write/valid-bash/bad-enum/unknown-key and now gains the policy_load round-trip; passes 114/0",
    "From-scratch copy of only vendor-manifest paths runs the test standalone with no onboarding/ present, no failures": "consumer simulation (policy-lib.sh + forgejo-lib.sh + tests/policy-lib-test.sh, no onboarding/) exits 0, 23 checks passed",
    "onboarding/tests/vendor-manifest-coverage-test.sh passes (no manifest edit)": "no vendor-manifest/vendor-exclude change; full suite (incl. coverage test) green",
    "Full offline suite green": "suite loop prints no FAIL, rc=0"
  },
  "summary": "Split the onboard_write_policy writer cases out of the vendored tests/policy-lib-test.sh into the never-vendored onboarding/tests/onboard-lib-test.sh so the consumer-vendored test sources only vendored libs and passes standalone.",
  "blockers": []
}
**close-report** for #23 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 23, "status": "success", "commits": [ "75c0067" ], "changed_files": [ "tests/policy-lib-test.sh", "onboarding/tests/onboard-lib-test.sh", "STATUS.md" ], "tests": [ { "command": "bash tests/policy-lib-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done", "exit_code": 0 } ], "criteria": { "tests/policy-lib-test.sh no longer sources anything under onboarding/": "removed the `. \"$sc/onboarding/onboard-lib.sh\"` source and the onboard_write_policy block in 75c0067", "All policy_load/policy_validate/policy_human_labels cases still exist and pass": "tests/policy-lib-test.sh unchanged except the removed writer block; `bash tests/policy-lib-test.sh` -> 23 checks passed", "All onboard_write_policy cases still exist and pass from their new home": "onboarding/tests/onboard-lib-test.sh covers valid-write/valid-bash/bad-enum/unknown-key and now gains the policy_load round-trip; passes 114/0", "From-scratch copy of only vendor-manifest paths runs the test standalone with no onboarding/ present, no failures": "consumer simulation (policy-lib.sh + forgejo-lib.sh + tests/policy-lib-test.sh, no onboarding/) exits 0, 23 checks passed", "onboarding/tests/vendor-manifest-coverage-test.sh passes (no manifest edit)": "no vendor-manifest/vendor-exclude change; full suite (incl. coverage test) green", "Full offline suite green": "suite loop prints no FAIL, rc=0" }, "summary": "Split the onboard_write_policy writer cases out of the vendored tests/policy-lib-test.sh into the never-vendored onboarding/tests/onboard-lib-test.sh so the consumer-vendored test sources only vendored libs and passes standalone.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#23
No description provided.