Repository navigation
ci: cut duplicated CI work and widen the core boundary check - #596
Merged
Merged
Conversation
Core boundary check (#554): also catch require()/createRequire, import.meta.resolve, template and const-bound dynamic import(), and typeof import('...') types; partly-static specifiers are checked by their static prefix, and fully opaque runtime loaders must be reviewed and listed. Scans .js/.mjs/.cjs in core too. One fixture per form. CI cost (#567): npm ci --ignore-scripts plus one explicit build (build-fidelity keeps plain npm ci); check.ts syntax-checks only files tsc does not cover, skips dist/ and node_modules, adds recipes/ and action/, and checks .ts with Node's type stripper (node --check does not strip types); the required container job is gated on the plan and accepted as skipped only in the docs lane; new npm run test:examples; timeouts/concurrency on extension publishers; release.yml steps numbered consistently. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The typecheck resolves the package's own @jimhoyd/urlcode/* self-imports through the exports-map types, which live in dist/. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 24, 2026
The merge with origin/main lost #596's timeout-minutes on the job that builds/attests/publishes bundles, since that job was split into tag/publish in #601. Restore it on publish (the tag job already got one from the merge). Co-Authored-By: Claude Sonnet 5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 24, 2026
) (#601) * fix(core): make extension bundle verification failures diagnosable (#579) - Pass a bounded, sanitized excerpt of `gh attestation verify` output and the applied policy through on refusal instead of discarding it. - Check `init --with` / `extension-bundles install` names against the bundles this core builds before any network call, with did-you-mean. - Report an unreachable GitHub as such, naming the release being fetched. - Release workflow: a dispatch from main only creates the tag and re-dispatches on it, so build and attestation run on refs/tags/<release>; verify assets with the CLI's own transport before and after publishing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci: add missing timeout-minutes to extension-bundles publish job The merge with origin/main lost #596's timeout-minutes on the job that builds/attests/publishes bundles, since that job was split into tag/publish in #601. Restore it on publish (the tag job already got one from the merge). Co-Authored-By: Claude Sonnet 5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 24, 2026
….ts's self-import check-agent-facts.ts (new in this PR) imports packages/core/src/mcp.ts, which imports its own public export '@jimhoyd/urlcode/agent-context' to prove that export is sufficient. That resolves to dist/agent-context.js, which the docs CI job (changed by #596 to skip building) never produces. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
added a commit
that referenced
this pull request
Sep 24, 2026
…ks (#606) * fix(docs): correct trust, short-link and wildcard guidance for agents Refs #539 #540 #585 #558 Co-Authored-By: Claude Opus 5.5 <[email protected]> * wip agent facts * wip * wip * feat(check): add implementation-derived agent-facts check and fix contradictions Add scripts/check-agent-facts.ts (wired into check:docs) that derives an inventory from implementation sources -- extension bundle set, auth/admin kit adoption, --with canonical ordering, MCP tool counts and the store shortLinks contract -- and fails on agent-visible prose contradicting it. Fix the forms, ui, --with ordering and MCP count contradictions it found. Refs #541 Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(ci): build before check:docs so check-agent-facts.ts resolves mcp.ts's self-import check-agent-facts.ts (new in this PR) imports packages/core/src/mcp.ts, which imports its own public export '@jimhoyd/urlcode/agent-context' to prove that export is sufficient. That resolves to dist/agent-context.js, which the docs CI job (changed by #596 to skip building) never produces. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #554
Refs #567
Core boundary check (#554)
scripts/check-core-boundaries.tsnow also recognises:require()/require.resolve(), including a require made bycreateRequire(bound to a name or called directly)import.meta.resolve()import()specifiers (resolved statically where possible; a partly static specifier is checked by its static prefix, so`../../${x}/…`is reported as able to reach any extension)typeof import('…')types (type-only imports of core modules, likepolicies/agents.ts:218, still pass).js/.mjs/.cjssources in core as well as.tsA specifier with no static prefix at all (the five
pathToFileURL(...).hrefloaders for project/operator/bundle modules) cannot be analysed, so it must be listed in a reviewedruntimeModuleLoadersset in the script; a new opaque loader fails until reviewed. The list lives in the script, not as markers insrc/.test/core-boundaries.test.tshas one fixture per form, plus a check that the real repository passes.CI cost (#567)
build-fidelityusesnpm ci --ignore-scripts. The rootpreparescript is the build, so a plainnpm cibuilt everything twice.docsandauditnever readdist/, so they no longer build at all.staticruns one explicit build: typecheck resolves the package's own@jimhoyd/urlcode/*self-imports through the exports-map types indist/. The first CI run on this PR failed there without that build.build-fidelitykeeps plainnpm ciso it tests the same thing as before. The only dependency with an install script is@parcel/watcher(dev, via the Tailwind CLI). That script builds from source only on request; the prebuilt binary is still installed, andworkspace:stylespasses. Release workflows and the Dockerfile already used--ignore-scripts.scripts/check.ts: syntax-checks 65 files instead of about 280, and skipsdist/andnode_modules/. The.tsfiles thattscalready covers (packages/core/src,test,scripts) are no longer spawned. JavaScript is still checked withnode --check, in parallel, underexamples/,recipes/,starters/,action/andscripts/..tsfiles outside thetscproject are now checked withmodule.stripTypeScriptTypes. Finding:node --checkdoes not strip types, so it rejectedrecipes/typescript/functions/hello.tsonce recipes were included. The old per-file.tsnode --checkwas therefore not a reliable type-stripping check.container: nowneeds: planandif: lane == 'full'. The job name is unchanged, so the required check keeps its identity. GitHub reports a job skipped by its ownifas satisfying a required check.ci-plan.ts gatemovedcontainerto the code list, soverify-completeaccepts a skip only for a successful docs plan. Every prose path the classifier admits is outside the image build context (.dockerignore).release-run.tsstill requirescontainerSUCCESS on release PRs, and those always change manifests and so run in the full lane.npm run test:examples: builds, then runstest:examples:built: starter and example tests, the Cloudflare build and the cookbook audit, the same commands thechecksjob used inline. CI now callstest:examples:built.extension-artifacts.ymlhastimeout-minutes: 15and per-tag concurrency withcancel-in-progress: false.extension-bundles.ymlhastimeout-minutes: 15; successful runs take 1–2 minutes, and the environment approval wait is not counted.release.ymlsteps are numbered 1–11 contiguously. Its tests now also fail if an ordered step is missing; before,indexOfreturned -1 and the order check still passed.Not done (left on #567)
workspace-verifyjobs and running them only on Linux for Node 22/26. This changes the platform coverage and timing tradeoffs recorded in [Request]: Measure CI lanes and complete release-train validation after alignment #185 andci-plan.ts, so it needs a maintainer decision.release-run.ts selectedRunlooks for, so reducing them affects the release flow.Evidence
npm run verify: pass. That covers lint, typecheck, check (including the new boundary check andcheck.ts), build,npm testand the workspace verify and integration suites.npm run test:examples: pass.test/core-boundaries.test.ts12/12,test/ci-release.test.ts22/22,test/release.test.ts13/13.check.tsfails on a bad.mjsinaction/and on anenumin a.tsunderrecipes/.containeron a docs-lane PR, installs with--ignore-scriptson Windows and macOS) is validated only by CI on this PR and later docs PRs. This PR runs in the full lane.🤖 Generated with Claude Code