Skip to content

ci(deploy-site): build with npm run build, the predicate the apex publisher answers to - #1226

Merged
gHashTag merged 1 commit into
mainfrom
fix/deploy-site-runs-prebuild
Oct 1, 2026
Merged

gHashTag merged 1 commit into
mainfrom
fix/deploy-site-runs-prebuild

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Two jobs write to t27.ai, and only one of them ran the spec generators.

The fix is one line: npm run build. Both writers now answer to the same predicate. Running the generators also means deploy-site ships freshly generated catalogs, as the publisher does. On main the committed ones differ only in generatedAt and two source hashes.

{
  "version": 1,
  "head_sha": "be9b499fbc9aafd7c2393eabae3f5acaa2e468d0",
  "summary": "deploy-site.yml, the second job that writes t27.ai, built with npx vite build. That skips npm's prebuild hook and with it the spec generators the apex publisher runs, so a stale-spec main that the publisher refused (2026-10-01 16:38Z) would have deployed through this door. It now builds with npm run build, the same predicate.",
  "changes": [
    ".github/workflows/deploy-site.yml: Build step runs npm run build instead of npx vite build, with a comment saying why the two writers must share one predicate"
  ],
  "tests": [
    {
      "command": "cd apps/website && npm ci && npm run check:queen-evidence && npm run build",
      "status": "passed",
      "result": "exit 0 in 141 s; the prebuild hook ran every generator: onboarding-from-spec wrote llms.txt and agents.t27 (22843 bytes each), spec tests 10, asserts 54, all hold; vite built in 1m 56s",
      "evidence": "local run on the branch head, tree = main 082196ffc plus this workflow edit"
    },
    {
      "command": "git diff after npm run build (generated catalogs vs committed)",
      "status": "passed",
      "result": "7 regenerated files differ only in generatedAt, one docs source sha256 and the shared-core indexer sha256 -- no content drift; not committed",
      "evidence": "per-key JSON diff of public/{agents,crons,docs,functions,skills,tools,t27} catalogs"
    }
  ],
  "limitations": [
    "The workflow itself is workflow_dispatch only and is not exercised by this PR's checks; the next manual deploy is the first real run.",
    "A deploy now takes about two minutes longer, the price of running the generators."
  ],
  "tags": [
    "Engineering",
    "Verification"
  ],
  "blog": {
    "title": "Two doors to one site, and only one of them had the lock",
    "summary": "The publisher's build refused a stale spec; a second deploy job reached the same domain through npx, which never fires the hook that held the check.",
    "outline": [
      "The apex publisher failed on stale onboarding counts, and that failure was the check working.",
      "A second job wrote the same domain an hour later and would have shipped the stale counts: npx vite build skips npm's prebuild hook.",
      "One line, npm run build in place of npx vite build, makes both writers answer to the same predicate, so neither can publish what the other refuses."
    ]
  }
}

🤖 Generated with Claude Code

…lisher answers to

npx vite build skips npm's prebuild hook, so this second writer to t27.ai
skipped the spec generators -- onboarding-from-spec among them, the check that
refused trinity#1176's stale counts at the publisher on 2026-10-01 16:38Z.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the status:in-progress 🔵 Agent working label Oct 1, 2026
@gHashTag
gHashTag merged commit da338e7 into main Oct 1, 2026
31 of 37 checks passed
@gHashTag
gHashTag deleted the fix/deploy-site-runs-prebuild branch October 1, 2026 19:36
@github-actions github-actions Bot added status:completed Done and removed status:in-progress 🔵 Agent working labels Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant