diff --git a/website/docs/OWNER-DIRECTIONS-AND-HANDOVER-20261129.md b/website/docs/OWNER-DIRECTIONS-AND-HANDOVER-20261129.md index 249e8171..cd509387 100644 --- a/website/docs/OWNER-DIRECTIONS-AND-HANDOVER-20261129.md +++ b/website/docs/OWNER-DIRECTIONS-AND-HANDOVER-20261129.md @@ -213,3 +213,12 @@ was corrected to accept the two real committed Bash shebangs; hashes and all other checks stayed unchanged. The subsequent bounded installation succeeded. Main-only commit verification remains enabled. Live website publication and post-deployment item/header checks remain separate steps. + +A subsequent staging-input audit found that the full website suite checks +`tools/README.md` and `.forgejo/workflows` as repository boundaries. The builder +archive must retain these web-owned policy inputs as well as `website`; otherwise +the same passing CI suite would fail in staging. This correction and its +regression check are committed for the next CI-built operations package. +The first installed builder hash above is superseded only after that package +passes and its new installed hash is recorded. No website release was attempted +through the incomplete staging archive. diff --git a/website/ops/README.md b/website/ops/README.md index 64c7ab32..3dd50c7a 100644 --- a/website/ops/README.md +++ b/website/ops/README.md @@ -9,6 +9,10 @@ the approved commit: a divergent worktree HEAD must not be reset or copied live. Both scripts compare the requested commit with the freshly fetched canonical main before queueing or building it. +The staging archive includes `website`, the documentation-only `tools` directory +and the web-only `.forgejo` checks/workflows, so the same repository-policy tests +run in CI and staging. No plugin source is included. + The website build packages these two scripts in `dist/deployment`, with a manifest recording repository, source commit, byte sizes and SHA256 hashes. CI uploads the tested package as `DuneRealms-Website-Operations`. Any necessary diff --git a/website/ops/dunerealms-build-release b/website/ops/dunerealms-build-release index 6713fa4e..8e3209ab 100644 --- a/website/ops/dunerealms-build-release +++ b/website/ops/dunerealms-build-release @@ -16,7 +16,7 @@ DEST="$BASE/artifacts/$SHA" TMP="$BASE/artifacts/.${SHA}.tmp.$$" trap 'rm -rf "$TMP"' EXIT mkdir -p "$TMP" -git archive "$SHA" website | tar -x -C "$TMP" +git archive "$SHA" website tools .forgejo | tar -x -C "$TMP" cd "$TMP/website" corepack pnpm install --frozen-lockfile corepack pnpm build diff --git a/website/tests/deployment-package.test.mjs b/website/tests/deployment-package.test.mjs index ac13ad53..55bf510f 100644 --- a/website/tests/deployment-package.test.mjs +++ b/website/tests/deployment-package.test.mjs @@ -28,3 +28,11 @@ test('website trigger and builder fetch only canonical web main even when checko assert.match(source,/rev-parse FETCH_HEAD/); } }); + +test('staging archive retains the repository-policy inputs used by the full website suite',()=>{ + const source=readFileSync(new URL('../ops/dunerealms-build-release',import.meta.url),'utf8'); + const archived=source.match(/^git archive "\$SHA" (.+) \| tar -x -C "\$TMP"\r?$/m)?.[1].trim().split(/\s+/); + assert.deepEqual(archived,['website','tools','.forgejo']); + // web-repository-scope.test.mjs checks tools/README.md and the two web workflows. + assert.deepEqual(readFileSync(new URL('../../tools/README.md',import.meta.url),'utf8').length>0,true); +});