Repository navigation
docs: add the harnesspm.tenphi.me site - #7
Merged
Merged
Conversation
- ci.yml: typecheck, tests and `npm run check` on Node 24, and the built CLI (`--help`, `check`, `sync --check`) on Node 20 for `engines`. - release.yml: every PR publishes `0.0.0-snapshot.<sha>` under `pr_<number>` with a sticky comment; pushes to main open the version PR or publish with provenance, a `v<version>` tag and a GitHub Release. Both jobs use npm trusted publishing in the `release` environment. - Changesets replace the hand-written "Unreleased" line; AGENTS.md describes the new flow. The 0.1.0 notes stay in CHANGELOG.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
npm refuses a provenance statement from a private repository (E422), and with trusted publishing it adds one by itself once the repository is public. Also print the real OIDC availability in the publish jobs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
A re-run builds the same commit, so it got the same snapshot version, and npm never accepts a version twice. Add the attempt number on a re-run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
…ions `harnesspm why` found only rules, skills and docs, so it answered "No unit" for the script IDs the managed block prints. It now finds every unit kind, shows its source file, the command that runs a script, and whether the package of an executable unit is trusted. Test fixtures use `alex`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
A team turns on `telemetry` in harnesspm.json: which events, and a handler that gets them, a command (JSON on stdin) or a JSON Lines file. harnesspm sends events for script runs, MCP server starts, sync and why. With agent events on, a person's sync writes harnesspm's own async hooks: Claude Code reports reads of harness files, skills it loads and file-scoped rules it loads by itself; Claude Code and Codex report session starts. The hook runs the local binary (`track`), maps the path to a unit with an index that sync writes, hands the event off and exits 0. Events never hold arguments, file contents, prompts or absolute paths, and cover only the dependency and project layers. Sending never waits or fails a command: a command handler runs in a detached process with a 10 s limit. A handler gets events only as a person's sync recorded it in the lock. A model run keeps the recorded handler, so one an agent adds stays held until a person syncs. A person opts out with DO_NOT_TRACK=1 or "telemetry": false in harnesspm.local.json or ~/.harnesspm/config.json. Spec: new chapter 14 (with a rule template for reporting harness problems), terms and scenarios S14 and S15, 3.7, 4.3, 5.1, 6, 10, 11, and removed options in 13.12. Research: hook payloads and async hooks for both agents, from the docs, Codex source and a headless Claude Code probe. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
When a package's `extends` names a package that is not installed, sync warns. A package can now list an extends target as an optional peer dependency (`optional: true` in `peerDependenciesMeta`): projects that install it get its harness through the package, and projects that do not see no warning on every sync. Any other missing extends still warns. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Claude Code matches a `paths` pattern without a leading `/` at any depth. So `harness/**` loaded harnesspm's config rule whenever an agent only read a dependency's harness files in node_modules. A probe with Claude Code 2.1.323 showed that `/harness/**` loads for the project's own folder only, both as a plain file and as a symlink in .claude/rules/. - harnesspm-config: `/harnesspm.json`, `/harnesspm.local.json`, `/harness/**` - pointer lines show patterns without the leading `/` - spec 2.5 and the export skill say how to anchor a pattern - research: the probe result Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
The lock records the version of this repository's own harness. The version PR raised `version` in package.json but left the lock at the old version, so `sync --check` failed on main after every release, and the next pull request had to carry the lock change. `version-packages` now runs `npm run sync` after `changeset version`. Also refreshes the lock to 0.2.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
`harnesspm doctor` answers one question: can a person work here with harnesses, the repository's and their own, without per-machine files reaching a commit? It changes nothing, and each problem names its fix. - Local files: every per-machine file on disk (the ones in harnesspm's sections of .git/info/exclude, plus harnesspm.local.json, CLAUDE.local.md, .claude/settings.local.json and a telemetry file) is ignored by git and not tracked. Git answers through `git check-ignore` and `git ls-files`, so .gitignore, .git/info/exclude and a global excludes file all count. - Harnesses of your own: the exclude file can be written, and each added harness is on this machine. - Outputs: committed outputs are up to date (as `sync --check`), and per-machine links and files are in place. - Trust: pending and held entries, and a held telemetry handler, as warnings. Exits 1 when a check fails. `status` points to it when a per-machine file has a problem. Spec: scenario S16 and section 10.5. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
…vent A command handler that exits before reading its event closes stdin, so writing the event fails with EPIPE. `deliver` logged that error instead of the handler's exit code. Node still reports the exit status, so EPIPE alone is no longer treated as a delivery failure. CI hit this race in "a command handler gets each event as JSON on stdin". A new test sends a 90 KB event, larger than a pipe buffer, to `exit 7`, which makes the race certain: it fails before this fix and passes after. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Each pending entry already ends with its fix, such as `add it to "trust" in harnesspm.json` or `run npx harnesspm approve <package>`. `doctor` added the trust hint again after it, which also misled for a pinned package. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Build a documentation site with Cookbook (an Astro integration), in the style of the Glaze site: - a home page that shows the problem, the flow from a library's harness/ to the agents' files, a real managed block, a real upgrade diff and the main benefits; - Getting started, eight short guides and three reference pages in docs/guide/, which the npm package does not ship; - every spec chapter as it is, at /spec/<name>, and the research pages. The site builds into site-dist/, because `npm run build` writes the CLI to dist/. The spec's links to repository files that the package does not ship now point at GitHub, so they work on the site and for agents. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
CI builds the site and runs Cookbook's built-output checks on every pull request. deploy-docs.yml publishes site-dist/ to GitHub Pages on every push to main. The custom domain is set in the repository's Pages settings, because an Actions deployment ignores a CNAME file. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Contributor
📦 Snapshot releasePublished |
- Hero: a new tagline and "Share from your library", without the image, so the install commands show above the fold. - Thirteen short sections, each opening with why it matters. A new "Your agent uses it" tells one observed headless Claude Code run from the UI Kit pilot, now recorded in research/agent-capabilities.md. - Every output comes from one app on UI Kit's unpublished harness branch, and the page says so. The managed block excerpt is shorter and marks UI Kit's patch. `why` shows UI Kit's patch and the app's own. - The per-agent table, the doctor output, the context section, the telemetry paragraph and the fourth card are gone. Trust and overrides are one section. - Outputs and the excerpt wrap on phones, with paths breaking after a slash, and no copy button covers them. Inline code no longer breaks anywhere; only headings do. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
- "Your agent uses it" says what each step means for a newcomer, and that none of them were in the task. - The upgrade diff says it comes from an app that depends on Tasty directly, not the UI Kit app. - "Libraries pass on what they build on" no longer reads as if UI Kit's harness were published. - The `plugin.json` code block becomes one sentence (about 420 px less). - The managed block shows UI Kit's `uikit:tokens` line, which the next section relies on; the `harnesspm.json` example drops `$schema`. - Scope today lists the packages with a harness second. - The "patched by uikit" pill keeps its shape on dark surfaces. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Merged
This branch was previously deployed
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.
What this adds
A documentation site for harnesspm, built with Cookbook 0.33.1 on Astro 7, in the style of the Glaze site. It will be served at https://harnesspm.tenphi.me.
Pages
/docs-site/index.mdx(splash hero)/getting-starteddocs/guide/getting-started.mdx/guides/use,/guides/share,/guides/add-your-own,/guides/change-upstream,/guides/trust,/guides/monorepos,/guides/cloud,/guides/telemetrydocs/guide/*.md/reference/cli,/reference/config(harnesspm.json),/reference/package-formatdocs/guide/reference/*.md/spec(the spec README) and/spec/overview…/spec/telemetrydocs/spec/*.md, read as they are/research/agent-capabilities,/research/motivating-case,/research/package-managers,/research/prior-art, plus the probe promptsdocs/research/**/*.mdThe header links to GitHub and to the npm package, and shows the version from
package.json.The home page
Reworked after an independent review. It has 13 short sections, and each one opens with why it matters.
initdoes.harness/in the npm package, throughnpm installandharnesspm sync, to the files in your project. It is a row on desktop and a column on phones.docs/research/agent-capabilities.md.AGENTS.mddiff from upgrading Tasty 3.19.0 → 3.19.1.plugin.json, and a note that the lint plugin is an optional peer.harnesspm.jsonwithpatch,excludeandtrust, and five short rules. It ends with realwhyoutput that shows UI Kit's patch and the app's own.add, and one sentence ondoctor.Every output on the home page comes from one app on UI Kit's branch. The one exception is the upgrade diff: UI Kit pins Tasty, so that diff comes from a Tasty-only app. The examples live in
docs-site/examples/.ManagedBlock.astroandTerminal.astroshow them with wrapped lines, so a phone shows every line and no copy button covers one.Spec routes and links
docs/spec/is also the docs index of harnesspm's own harness, so the site reads the chapters unchanged.docs.config.tslistsdocs/spec/and maps eachNN-name.mdto/spec/name. Cookbook resolves relative links by file path, so06-trust.md#62-trusting-a-packagebecomes/spec/trust/#62-trusting-a-package. The one spec change: the four links in chapter 12 to repository files that the npm package does not ship (AGENTS.md,CLAUDE.md,harnesspm.json,harness/) now point at GitHub.npm run syncupdated the docs hash inharnesspm.lock.json.Build and output
npm run docsserves the site,npm run build:docsbuilds it,npm run docs:doctorchecks the sources andnpm run docs:checkchecks the built site.site-dist/(gitignored), becausenpm run buildwrites the CLI todist/.npm run build,prepackandnpm packare unchanged: the package still has the same 50 files.tsconfig.jsonstill covers onlysrcandtest, so the site's files stay out ofnpm run typecheck.@tenphi/cookbookandastroare dev dependencies. Cookbook needs Node.js 22.19 or later; CI uses Node 24.assets/harnesspm.svg): three stacked layers, for the three layers of harnesspm.How deploy works
.github/workflows/deploy-docs.ymlruns on every push tomainand on demand. It uses Node 24,npm ci,npm run build:docsandnpm run docs:check, thenactions/configure-pages,actions/upload-pages-artifactwithsite-distandactions/deploy-pages..github/workflows/ci.ymlhas a new "Docs site" step on the Node 24 job:npm run build:docs && npm run docs:check.astro.config.tssetssite: 'https://harnesspm.tenphi.me', anddocs.config.tssets the sameurl.What the owner sets up
In Settings → Pages:
harnesspm.tenphi.me, then turn on Enforce HTTPS once the certificate is ready.In DNS: a
CNAMErecord fromharnesspmtotenphi.github.io.With an Actions deployment, GitHub ignores a
CNAMEfile, so the repository has none.AGENTS.mdhas a new "Docs site" section that says this, how to run the site and where pages live. It also says to update the home page when UI Kit publishes its harness.Other changes
package.json:homepageis nowhttps://harnesspm.tenphi.me, and the four scripts above. Apatchchangeset covers the homepage and the spec links.README.mdlinks to the site and no longer names a stale version.4a08838, thedoctorfix that says how to turn on a pending unit once, with its own changeset.Checks
npm run typecheck✅,npm test✅ (75 tests),npm run check✅,npm run build✅npm run build:docs✅ (36 pages, also withCI=true),npm run docs:check✅ (36 pages, 67 assets, no broken links),npm run docs:doctor✅docs/research/agent-capabilities.md(one under Claude Code, one under Codex). I left the research page as it is.🤖 Generated with Claude Code
https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV