mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 12:47:47 +01:00
static_site_caddy.sh is the one site-block body for the personal website and kcd2 dice Caddies: prerendered paths, real 404s and the ai-catalog Link header instead of an SPA catch-all. Both setup scripts gain a sudo-free `serve` that recreates only their container; kcd2's readiness wait needs a 200. redeploy_agent_ready_sites.sh serves both, restarts the popes site and runs the AgentReady checker against all three public URLs. Tested by test_static_site_serve.sh, test_redeploy_agent_ready_sites.sh and the caddy:2.8 e2e_agent_ready_caddy.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NBScELfMUiieK9ManFbS3Y
16 lines
1.3 KiB
JSON
16 lines
1.3 KiB
JSON
{
|
|
"title": "Static-site Caddies serve AgentReady-compliant prerendered sites, with a narrow redeploy + verify",
|
|
"objective": "Both loopback static-site Caddies (personal website, kcd2 dice solver) render one shared site-block body that serves the prerendered dist/ with real 404s and the ai-catalog Link header, gain a sudo-free `serve` redeploy, and redeploy_agent_ready_sites.sh redeploys and verifies the three public static sites with the AgentReady checker.",
|
|
"acceptance_criteria": [
|
|
"e2e_agent_ready_caddy.sh website and dice: every assert passes and agent_ready url mode exits 0 against the rendered Caddyfile",
|
|
"Unknown paths return 404 with the site's 404 page, not the SPA shell with 200",
|
|
"`serve` refuses a missing dist/ before docker runs and recreates only that site's container",
|
|
"redeploy_agent_ready_sites.sh --verify-only prints one PASS/FAIL/UNDETERMINED line per site and exits 0 only when all pass"
|
|
],
|
|
"out_of_scope": [
|
|
"Site content and build (personal-website, kcd2-dice-solver, signal-bot repos)",
|
|
"The shared edge Caddy, sudo/pacman steps and full setup rebuilds"
|
|
],
|
|
"verifier": "linux_configuration/features/lib/tests/test_static_site_serve.sh, test_redeploy_agent_ready_sites.sh, e2e_agent_ready_caddy.sh website|dice, shellcheck, pre-commit"
|
|
}
|