Repository navigation
Add CLAUDE.md as a short card - #10
Merged
Merged
Conversation
The repo had no CLAUDE.md. This adds a 57-line card in four parts: what the package is, the gate (the verify ladder from ci.yml in order, plus the public-surface check), the hazard (a wrong conversion of a PHI-bearing date fails silently), and five rules, each with the PR or measurement that proved it. The gate notes that `corepack pnpm` alone does not pin pnpm for attw: its nested `pnpm pack` resolves to the global pnpm, which refuses under corepack. A corepack shim first on PATH covers the nested call too. Harness-Task: 78 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds this repo's first
CLAUDE.md: a 57-line card a session can read in seconds. It has four parts: what the package is, the gate, the hazard, and the rules that bind here.The card
@cosyte/*parsers return. It is tooling beside the parsers, not a parser.verifyladder from.github/workflows/ci.yml, in its order, thenpnpm check:no-internal-refsfor theno-internal-refs / public-surfacerequired check. It names all four required checks and points at.github/CI.md.fractiononly throughsrc/fraction.ts:fraction * 1e9rendered 0.999999999999 s as.1(S0188-cosyte-dates-companion-package-1: build @cosyte/dates to 0.1.0 #4, second commit, impl gate finding F1).earlierandlater: relabelling a thrown error told a fixed-offset zone it had a transition (S0188-cosyte-dates-companion-package-1: build @cosyte/dates to 0.1.0 #4).versionor a changelog heading: a hand-set 0.1.0 could never publish (Prepare the 0.1.0 release: version path, changeset, examples and metadata #7)..cosyte-release-tooling/**in the ESLint ignores: linting it failed a release run on main (Prepare the 0.1.0 release: version path, changeset, examples and metadata #7).pull_request:toscorecard.yml: the action refuses non-default refs (measured 2026-08-29, recorded in.github/CI.md).The pnpm note comes from this session.
corepack pnpm run attwfailed here withERR_PNPM_BAD_PM_VERSION: attw's nestedpnpm packresolved to a global pnpm 12, which refuses to switch versions under corepack. With a corepack shim first onPATH, every nested call gets the pinned 10.34.5 and the ladder passes.The repo had no old
CLAUDE.md, agent notes orCONTRIBUTING.md, so no text was moved and no links pointed at a dropped section. No changeset: nothing undersrc/changes.Every command the card names, and how it was checked (checked, not run)
pnpm install --frozen-lockfilecommand -v pnpm->/usr/local/bin/pnpm; CI installs pnpm throughpnpm/action-setuppnpm run buildjq -r '.scripts | keys[]' package.jsonlistsbuildpnpm run attwattwpnpm run examplesexamplespnpm run typechecktypecheckpnpm run lintlintpnpm run format:checkformat:checkpnpm run testtestpnpm run test:tztest:tzpnpm check:no-internal-refscheck:no-internal-refspnpm changesetchangesetpnpm packcommand -v pnpmbash scripts/check-no-emdash.shcommand -v bash->/usr/bin/bash;git ls-files scripts/check-no-emdash.shcorepack pnpm,corepack enable pnpm --install-directory <dir>command -v corepack->/usr/local/bin/corepack.github/workflows/ci.yml,.github/CI.md,.changeset/README.md,package.json,CHANGELOG.md,src/fraction.ts,eslint.config.js,.github/workflows/scorecard.ymlgit ls-files <path>: each trackedsrc/,test/,examples/,docs-content/git ls-files <dir>: each non-empty.cosyte-release-tooling/**is an ignore pattern ineslint.config.js(present there), not a repo path.pull_request:is a workflow key.Checks run
wc -l < CLAUDE.mdprints 57.verifyladder passed locally with pnpm 10.34.5 (Node 24): install, build, attw, examples, typecheck, lint, format:check (covers the root*.md), test (175 passed), test:tz (175 passed under each zone), em-dash scan.pnpm check:no-internal-refspassed too.rg -n '[\x{2013}\x{2014}]' CLAUDE.mdfinds nothing.Harness-Task: 78
🤖 Generated with Claude Code