Skip to content

Pen v0.2 - #5

Merged
krijnrijshouwer merged 91 commits into
mainfrom
feature/pen-v0.2
Aug 26, 2026
Merged

krijnrijshouwer merged 91 commits into
mainfrom
feature/pen-v0.2

Conversation

@krijnrijshouwer

@krijnrijshouwer krijnrijshouwer commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

This branch turns the repo into a publishable SDK. The old @pen/* workspace — 35 packages, all sitting at 0.0.0, never published — becomes @input/pen-*: 24 published packages on a single 0.3.0 train, each carrying a first-release changeset. Nothing shipped under either scope, so there is no upgrade path to preserve.

Three things changed together: the package surface, the selection write path, and the layer that keeps both honest.

Package surface

Eleven single-purpose extensions folded into two, and one was dropped rather than folded:

  • @input/pen-ai with /suggestions, /autocomplete, /skills, /tools, /stream — was ai-suggestions, ai-autocomplete, ai-skills, ai-tools, delta-stream.
  • @input/pen-interop with /html, /markdown, /json, /xml — was import-html, import-markdown, export-html, export-markdown, export-json, export-xml.
  • database is gone. It was a React-rendering table extension; nothing else in the tree depended on it.

A host now adds one dependency per concern instead of one per format and direction, and the published closure is checked rather than assumed. dag-check holds the layers to types → crdt → core → extensions. core-clean-install proves installing @input/pen-core pulls no extension, renderer, or preset. published-exports requires . and ./package.json on every manifest, and workspace-pins rejects workspace:* pins and dist re-exports from anything published.

Selection and anchors

SelectionManagerImpl is gone. SelectionAuthority is the only writer of selection state — commit, validation, and record are separate modules instead of one class — and editor.anchors owns the positions that must survive a commit.

The invariant that holds it up: no requestAnimationFrame or setTimeout retry in a selection path. That is a lint rule now (no-selection-timers) with an empty waiver list, so the next timer has to argue for itself in a pull request instead of arriving as a one-line fix. The \u200B empty-block sentinel is out of storage; the renderer placeholder is a <br data-pen-empty=""> and never round-trips into the document.

spec/ is the contract

spec/ describes shipped behavior only — no roadmap, no future work:

  • charter/ (4 documents) — layering, document model, mutation pipeline, package map.
  • rules/ (21 documents) — normative families with stable IDs: A1, S4, SEC1, API6, and so on.
  • packages/ (26 documents) — one current-state spec per specified package.

Rule IDs are cited in test names, so rg SEC1 packages/ answers "what enforces this". When the implementation proves a rule wrong, the rule is amended in the same PR; divergence between code and spec is a defect rather than a TODO.

Verification

One gate list. scripts/gates.json holds 21 gates. Both pnpm verify and the Repo gates CI job read that file and run it in the same order, so the local command and the pull-request checks cannot drift. A local failure prints the name of the GitHub check it corresponds to.

Structural lint. packages/tooling/eslint-plugin adds 20 rules for things review cannot reliably catch: new members on the closed op union, deep imports past a package entry point, browser globals at module scope in headless code, HTML injection sinks, unscheduled layout measures, unlocalized user-facing literals.

Real engines. packages/tooling/conformance is a private Playwright harness that runs the spec suites in Chromium, WebKit, and Firefox. Chromium blocks the merge; the other two report while their failures are worked down. jsdom cannot represent selection, IME, or geometry, so those rules are covered here or not at all.

Release plumbing. The changesets fixed group keeps every published package on one train version. stamp-first-train fails closed on a surprise version. A committed api-report.md per package is diffed against the built .d.ts, strip-internal keeps @internal out of published types, types-purity keeps @input/pen-types types-only, and publishing runs with provenance behind a Verdaccio closure check.

Two gates ratchet rather than pass or fail: TSDoc coverage may only go up, and ESLint is capped at its current warning count so it may only go down.

Why this is better

The rules that mattered most were the ones nobody could enforce. "No timer in selection", "no deep imports", "types stays types-only", "@internal must not ship" were review conventions, and conventions lose to a deadline. Each is a gate now, and each names the spec rule behind it.

For a host, the import surface is roughly half the size and the dependency closure is proven instead of trusted. For a contributor, the whole pull-request gate set runs locally with one command, rather than pushing and guessing against thirty-odd checks spread over ten workflows. For a reviewer, a question about behavior has one place to be answered — the rule ID — instead of a code search and an opinion.

Running it

pnpm verify                                            # the PR gate set, minus browser suites
pnpm build && pnpm typecheck && pnpm test
pnpm test:e2e                                          # playground
pnpm --filter @input/pen-conformance run test:chromium  # conformance

krijnrijshouwer and others added 20 commits July 8, 2026 21:03
' to '@input'

- Updated package names in various files to replace '@pen' with '@input', ensuring consistency across the codebase.
- Modified the .npmrc file to include an authentication token and set the registry for package management.
- Adjusted the playwright configuration to reflect the new package naming convention.
- Enhanced the .gitignore file to include the .npmrc file for better version control.
- Updated README and documentation to guide users on the new package names and installation instructions.
- Changed access settings in package metadata to 'restricted' for better control over package visibility.
- Introduced a comprehensive roadmap document outlining improvements for the Pen library to support local-first applications, synchronized AI workflows, and cross-client collaboration.
- Defined product boundaries, goals, and wave orders for implementing CRDT state vectors, structured mutation origins, and headless editor capabilities.
- Emphasized the importance of generic primitives for collaboration and AI-assisted editing while maintaining a headless, open-source architecture.
- Established clear non-goals to avoid product-specific semantics, ensuring focus on core functionalities and extensibility.
- Added '@input/pen-document-ops' to pnpm-lock.yaml for better workspace management.
- Removed deprecated warning for the 'without' option in createEditor, simplifying the editor initialization process.
- Updated editor extension resolution logic to streamline the installation of user extensions.
- Refactored AI extension interfaces to enhance functionality and maintainability, including new methods for handling document changes and inline history shortcuts.
- Improved test structure by consolidating common editor creation logic and enhancing selected text deletion tests for better clarity and coverage.
…repo

Introduces AGENTS.md as the repo-wide contract for coding agents (architecture
layering, specs-as-contract, mutation-path and headless invariants, commands,
testing posture, git conventions), plus the pen-deslop and ligne-blanche skills,
an investigate workflow, and a spec-reviewer subagent that maps a diff to the
spec rule IDs it must honor.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ation orders

Specifies the next iteration of Pen: change summaries with position mapping, a
single selection authority, typed facets replacing string slots, a command
registry, the eight-phase commit pipeline, scheduled DOM read/write phases, and
bidi support. Adds the independent audit record (F1-F21, including render-time
XSS through stored link marks and surrogate-pair splitting on delete) with the
security, accessibility, and API/packaging specs that remediate it, and twelve
wave work orders carrying entry gates, deletion lists, and runnable exit gates
so every normative rule ID is claimed by a wave.

Co-authored-by: Cursor <cursoragent@cursor.com>
…riants

Stands up the lint infrastructure Wave H step H.1 owes the rest of the v2 train:
a permissive flat config at the root, a private @input/pen-eslint-plugin the
later waves mount their custom rules on, and a lint script per package. The
first rule enforces SEC2 by banning markup sinks; the dynamic-code ban (SEC8)
uses core rules. CI picks both up through the existing pnpm lint step.

Baseline is 0 errors and 6,649 warnings, concentrated in the mechanically split
AI extension parts, so the gate blocks regressions while Wave H burns the debt
down. Fixes three innerHTML teardowns in the Vue tests and a redundant escape in
defaultSkills rather than exempting them.

Co-authored-by: Cursor <cursoragent@cursor.com>
A model streaming "para one\n\npara two\n\npara three" produced five blocks: the
blank lines each became an empty paragraph, so accepting a multi-paragraph
suggestion inserted visible blank blocks between the paragraphs. The prose path
used the shared line splitter, which preserves interior empty lines by contract
because pen-ai's replacement ranges need the 1:1 line mapping.

Splits prose on paragraphs in the autocomplete caller instead, leaving that
contract intact. Leading and trailing newline runs still produce empty blocks,
which is where the caret lands after acceptance. Resolves the contradiction
between extension.part5 and the structuredCandidate unit test, red since d240d77.

Co-authored-by: Cursor <cursoragent@cursor.com>
The test asserted that some element still carries affected-range styling while
the inserted suggestion does not. shouldShowSelectionContext suppresses the
selection context highlight entirely once final-text suggestions exist, so the
guard could never hold and the suite has been red since d240d77. The narrower
guarantee it was protecting is already covered by reviewPresentation.

Records finding F23: diagnosing this surfaced ai/src/decorations/affectedRange.ts
as dead code superseded by review/contextDecorations.ts, still imported by
sixteen split files. Wave H step H.2 deletes it.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ionality

- Revised AGENTS.md to clarify the role of extensions and removed the mention of the database extension.
- Enhanced CONTRIBUTING.md with a new section on the Contributor License Agreement and clarified changeset requirements.
- Updated eslint.config.mjs to enforce new rules and added comments for better understanding of security contexts.
- Modified package.json to include new scripts for release checks and size limits, ensuring better package management.
- Adjusted Playwright configuration to support multiple web servers for testing.
- Cleaned up pnpm-lock.yaml by removing unused dependencies and ensuring consistency across package versions.
- Added new examples to README.md to guide users on using React and Vue apps.
- Expanded SECURITY.md to include supported versions and reporting guidelines for vulnerabilities.
- Removed deprecated test files and updated core package files to reflect recent changes in database handling and editor functionality.

These changes aim to enhance the developer experience and maintain the integrity of the codebase.
…tion.

Clipboard JSON, HTML sanitizer, facet-aware URL sinks, and phase-2 proto-key rejection now match SEC1–SEC9, with the hostile corpus and local exit-gate proof recorded.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…log.

Co-authored-by: Cursor <cursoragent@cursor.com>
…dd localization gates.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Updated CONTRIBUTING.md to clarify API report requirements and changeset processes.
- Added new ESLint rules for security contexts in eslint.config.mjs, focusing on unescaped markup concatenation and aria-hidden visibility.
- Modified CI workflows to include checks for API reports, types-package purity, and internal stripping.
- Adjusted pnpm-lock.yaml and package.json to standardize workspace dependency specifications.
- Introduced new scripts for release checks and improved type safety in TypeScript configurations.

These changes aim to improve developer experience, maintain code quality, and ensure compliance with security standards.
- Changed the licensing description in AGENTS.md and CONTRIBUTING.md to reflect the transition to the MIT License.
- Updated LICENSE.md to include the full MIT License text.
- Revised README.md to clarify the licensing terms and usage instructions for the SDK.
- Adjusted SUPPORT.md to align with the new licensing structure.
- Enhanced examples in the documentation to improve user guidance.

These changes aim to provide clearer licensing information and improve the overall documentation for better user understanding.
…ithout enforcing timings.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ation

- Adjusted size limits for various packages in `.size-limit.baseline.json` to reflect recent changes and improvements.
- Updated `CONTRIBUTING.md` to clarify the status of examples as pnpm workspace members and revised licensing information.
- Enhanced `eslint.config.mjs` with new rules for managing v1 extension fields and improved error handling.
- Modified `package.json` to correct script paths and added new scripts for better package management.
- Updated README files in examples to include necessary peer dependencies and clarify installation instructions.

These changes aim to improve package management, documentation clarity, and code quality across the project.
…ols' in transports and enhance documentation for inline node segments and search functionality.

- Added '@input/pen-ai-tools' as a workspace dependency in both 'packages/transports/direct' and 'packages/transports/sse'.
- Improved documentation to clarify the round-tripping of inline node segments through the shared content pipeline and JSON/XML exporters, as well as search capabilities for table cells.
…oling

Checkpoint of the parallel wave lanes, taken on the first state where all
four gates pass together: build 40/40, typecheck 38/38, test 78/78, lint
clean.

Notable fixes made while verifying, each a regression left by a lane that
had already moved on:

- schema/handles.ts: the sentinel consolidation replaced an early return
  that guarded both textContent paths with a call that guarded only the
  unresolved one, so textContent({ resolved: true }) began returning the
  \u200B sentinel through a host-visible read API.
- core originShape contract test imported DocumentMigration from
  pen-types, where it does not exist; it lives in core's migrations/types.
- awarenessValidator: the control-character strip is deliberate defense
  and now carries a reasoned no-control-regex disable rather than a
  masked lint error.
- bench envelope/compare: attach the caught error as cause.

Also corrects three defective verification clauses in the wave files. Every
shell command embedded in spec-v2/waves was extracted and run as a set for
the first time; three could not do the job their prose claimed, and the
technique is recorded in spec-v2/waves/README.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
…rt correctly

Six parallel lanes landed against bb354ea; all four gates stay green
(build 40/40, typecheck 38/38, test 78/78, lint clean) and the standalone
gate scripts now pass as well.

Lane results:

- Conformance: the typing budget no longer exits 0 when the last-run file
  is missing, which was the worst case because a missing file looked
  exactly like success. Numbers stay record-only with a loud banner rather
  than being raised to hide the Wave 7 target.
- Docs coverage: the gate stopped skipping @input/pen-dom's ./field-editor/*
  subpath, which was the one surface the API triage tells extension authors
  to import from. Ratchet re-recorded once, 1796 -> 2008; the rise is the
  wider denominator, not a documentation regression.
- Size: five packages re-recorded with wave-attributed causes, three
  deferred while their lanes were mid-edit and re-recorded here once a
  rebuild reproduced the byte count twice.
- Above-floor allowlist: a site may now be a path or { path, reason }, and
  stale sites fail by name.
- Inline atom delete: both behaviours pinned in tests and deliberately left
  divergent. Every binding one-shot deletes today while the spec ports a
  select-first affordance, so converging is a product decision, not a fix.
- Focus sink: all three attribute writes exempted from Wave 3 scheduling,
  each for a different reason; the adoption inventory is now the adopt and
  exempt markers together, not adopt alone.
- Wave 03/05: the gate cycle is closed by moving the absolute clause to the
  wave that deletes the two files it depends on.

Gate repairs found while integrating:

- gate-mutation's above-floor proof asserted a "bare path" message that the
  schema change deleted. It still exited non-zero, for an unrelated reason,
  so it read as healthy while proving nothing. Replaced with proofs of the
  properties actually enforced, plus a positive control, and record() can
  now express "can it pass" as well as "can it fail".
- gated-scope and the Wave D and Wave E notes claimed a ratchet, a skipped
  glob surface and empty allowlist sites that are all now out of date.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment thread scripts/doc-refs.mjs Fixed
krijnrijshouwer and others added 2 commits August 21, 2026 14:01
…and correct three selection-spec claims that could not hold

Wave 05 step 5.2: the empty-block sentinel is now declared once, in
@input/pen-types utils/logicalText.ts, down from ten declarations under
four names across eight files. INLINE_ATOM_CARET_BOUNDARY_TEXT survives as
a documented alias because it means a different thing with the same
character. Non-test sites fall from 28 to 8; the rest belong to core and
step 5.3.

Bench: a Pen-removed null implementation is now timed alongside every
bench, and attributeBenchResult refuses a wall-clock without one, so the
harness floor cannot be forgotten rather than merely remembered. The
concurrent-peers bench asserts peer B observed the timed insert after the
clock, not only during setup.

Durability: the DUR4 parity test compared createHeadlessEditor with
createEditor, which are the same factory in Node. Replaced with a no-DOM
assertion that can fail; real parity stays in the Playwright scenario and
the exit gate stays open.

Selection spec corrections, each measured rather than inferred: section
4.3 claimed all six v1 heuristics have v2 successors, and
resolveProgrammaticInputRange has none because it resolves an input range
rather than classifying a selectionchange. selectionBridge.ts has five
production importers outside pen-dom through the published field-editor
subpath, so deleting it is an API migration. no-selection-timers exists
and scopes to filenames containing "selection", so it sees two of the nine
remaining rAFs.

Also: sixteen entry gates ticked against commands actually run, seven
migration-guide sections written as first-publish rather than upgrade
guidance, and Wave 07's browser-fuzz clause relocated to the wave that
builds the browser fuzzer.

Co-authored-by: Cursor <cursoragent@cursor.com>
…onformance helpers

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread scripts/doc-refs.mjs Fixed
krijnrijshouwer and others added 5 commits August 21, 2026 14:18
…layground errors

Co-authored-by: Cursor <cursoragent@cursor.com>
…mer rule to its stated scope, and shrink the extension API surface

Wave 05 step 5.3: SelectionManagerImpl is gone and SelectionAuthority owns
the write path. A1 validates both endpoints and clamps to logical rather
than stored length, so a caret in an empty paragraph lands at 0 instead of
inside the sentinel. A2 coalesces structurally including affinity and
excluding goalX, and the duplicate version counter on Editor is deleted --
a version owned in two places made A2 and S6 false by construction. A4
threads the origin the command registry was already computing and
discarding. A5 maps selection through summary.mapRange on commit, where
the method was previously empty, and commit snapshots stop hard-coding
origin and affinity. A6 makes updateDocument the only full reset.

affinity and head now survive the command path instead of being stripped
by the result builders, which is what Wave 06's entry gate was waiting
for. Seven React assertions omitted head and one fixture claimed a
one-atom block while the real document held an empty paragraph; both are
the new rules working, and the fixture is aligned rather than the rule
weakened. A3 is deliberately deferred: flipping selectionChange to carry
the record is a typecheck cliff across fourteen listeners.

no-selection-timers scoped to filenames containing "selection", so it saw
two of the nine remaining rAFs in field-editor. Scope is now an explicit
in-config module list unioned with that basename net, so a new selection
module cannot silently escape and a new focus module has to be declared.
Six newly visible timers carry reasons naming what they wait for and which
wave provides it; sessionReconciler is declared out of scope rather than
waived, because those mean different things.

Extensions: 49 accidental barrel exports unexported across thirteen
packages while Pen is still unpublished and it costs nothing. Sentinel
consumer sites are down to the single definition and the offset-domain
seam. The docs ratchet moved 2008 to 1968; both of the day's movements are
recorded separately, since widening what the gate reads and narrowing what
the package promises mean opposite things.

readOnly: thirteen characterization tests pin the split between the facet
and the prop, so the owner's decision shows up as a deliberate test edit.

Co-authored-by: Cursor <cursoragent@cursor.com>
…urfaces

Wave 05 step 5.1: replace computed isCollapsed / isMultiBlock / blockRange
property reads with the pure helpers in core across pen-dom, the extensions,
and the React binding. The stamped properties stay for now, which is what
lets each package convert independently while the workspace stays green.

Delete the two handleBeforeInput rAFs in expandedContentEditableBackend: the
command-dispatch branch of the same method already activated the caret in the
same turn, so both deferred paths now do too, and their timer waivers are gone.

Give pen.caretUp / pen.caretDown defined headless behaviour: geometry when
setVerticalCaretMeasure is registered, a logical cross at a block edge, and a
caret-geometry-unavailable diagnostic no-op mid-block. Correct the docs page,
which claimed these names had no handler at all.

Unexport 22 accidental symbols from the react, test and bench barrels, and
re-record MAX_UNDOCUMENTED once at 1949.

Co-authored-by: Cursor <cursoragent@cursor.com>
WebKit is a blocking CI engine and was failing history.spec.ts on a quiet
confirm run, as was Firefox, both at the Enter before undo ever ran. Chromium
takes the EditContext backend into pen.splitBlock; WebKit and Firefox take the
contenteditable backend, where splitBlockAtOffset applied the op without
writing selection and a later selectionchange echoed the stale native range
back over the authority. Split now writes the caret with an explicit origin,
and the echo filter ignores native ranges on a different block than the stamp.

Delete commandsNavigation.ts: ArrowUp/Down already reached the keymap, so the
block below it was a dead fallback. mountEditor registers the G5 vertical
caret measure, and applyListTabBehavior moves to commandsListTab.ts.

Stamp the real document blockRange on multi-block command selections instead
of [anchor.blockId], and enforce N2 for fully-selected divider and table
writes only; the mixed-boundary case stays open as an owner decision.

Unexport 8 accidental core symbols and re-record MAX_UNDOCUMENTED at 1948.
Refresh dom's api-report and command inventory, which still named the deleted
module and made the docs gate fail closed on an unreadable glob member.

Co-authored-by: Cursor <cursoragent@cursor.com>
The Enter-split caret fix shipped in the previous commit did not work in a
browser, which only a live confirm revealed: authority did move to the new
block, then a leftover native range on WebKit and Firefox wrote it back. The
stamp meant to block that echo was wiped in the same turn, because
commitProgrammaticTextSelection triggers activate, and _startSession's
deactivate resets the coordinator. _startSession now carries a stamp that
targets the incoming block across that reset.

history.spec.ts is 3/3 on Chromium, WebKit and Firefox, independently
reproduced; the suite drops from 28.8s to 5.1s because the polls now succeed
instead of timing out. WebKit is no longer red as a blocking engine.

Firefox stays reporting-only. Its selectAll spec fails in-suite 3/3 and passes
isolated 3/3 on a quiet machine, which is an order-dependent defect rather
than the load flake an earlier entry assumed.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Restructure the test suite by consolidating related tests into dedicated files, enhancing the organization of test cases related to editor functionalities, including multi-block selection and table operations.
- Update test descriptions for better clarity, ensuring that each test's purpose is easily understood and aligns with the overall testing framework improvements.
- These changes contribute to a more maintainable and readable test codebase, supporting ongoing efforts to enhance code quality and testing practices.
- Delete .fmtcheck.ts and .fmtcheck.tsx files from various test directories, enhancing maintainability by removing unused test configurations.
- This cleanup aligns with ongoing efforts to improve project organization and reduce clutter in the codebase.
krijnrijshouwer and others added 20 commits August 26, 2026 19:40
- Update the action.yml file to improve the description of the 'needs' input, providing clearer context on its usage and serialization.
- Modify static-gates.yml and supply-chain.yml workflows to disable package-manager caching in the setup-node action, ensuring compatibility with the current project structure and preventing errors related to missing binaries.
- These changes contribute to better documentation and smoother CI workflow execution, aligning with ongoing efforts to enhance project maintainability and clarity.
- Update static-gates.yml to include a build step for gates that require built output, improving the efficiency of the CI workflow.
- Modify gates.json to specify which gates need a build, ensuring proper execution order in the build plan.
- Refactor the buildPlan function in verify.mjs to separate gates based on their build requirements, maintaining fast failure for non-build gates.

These changes contribute to a more streamlined and effective CI process, aligning with ongoing efforts to enhance project maintainability and performance.
…ty and functionality

- Update the description formatting in verify.mjs for better clarity.
- Refactor conditional checks in verify.mjs to enhance readability.
- Introduce new constants and functions in workflow-integrity.mjs to handle job-level contexts and improve error handling for action manifests.
- Enhance self-test messages in workflow-integrity.mjs to provide clearer feedback on failures.

These changes contribute to a more maintainable and understandable codebase, aligning with ongoing efforts to improve project clarity and functionality.
The playground declares no source aliases, so its dev server resolves every
@input/pen-* import through the package exports, and those name dist/ only.
The e2e job went checkout -> install -> playwright test with no build, so
Vite answered "Failed to resolve entry for package @input/pen-dom" and all
three engines met a blank page — a missing step that read as a product bug.

Each engine takes its own turbo cache lane; the setup action's contract asks
parallel jobs not to contend over one key.

Co-authored-by: Cursor <cursoragent@cursor.com>
main's README carries two blank lines after the logo where this branch
carries one, so the merge inherited main's copy of that hunk and Prettier
rejected it. Pull-request runs check out the merge rather than the branch
tip, which is why validate was red against a README that is clean on both
parents when read alone.

Co-authored-by: Cursor <cursoragent@cursor.com>
…vive CI

packages/extensions/interop/vitest.config.ts replaces the root config rather
than extending it, so the package ran on Vitest's 5000ms default — the budget
the root config already documents as unchosen rather than selected.

The IOP5 bounds suites prove the ingest caps by reaching them: the node-count
cases parse INGEST_MAX_NODE_COUNT + 3 = 10,003 blocks. Idle that is 355ms for
HTML and 1042ms for markdown, but on a loaded ubuntu runner the same three
cases measured 8232ms, 10732ms and 14179ms, so validate and every node-matrix
leg failed on the machine they landed on rather than on anything asserted.

30s matches @input/pen-bench and clears the worst measured run by about 2x.
CH9's half-budget rule still holds by an order of magnitude: the slowest case
idle is 1042ms against a 15s half-budget.

Co-authored-by: Cursor <cursoragent@cursor.com>
…can meet

CH8 asks that a budget the runner cannot meet reliably be re-recorded with the
new number written down rather than left permanently red. This one straddled
its target: 49.86ms idle, and on ubuntu-latest 117.78ms on one run against
272.25ms and 277.69ms on two others across the same commit range. A 2.4x
spread around a 200ms line made the gate report which runner it drew.

500ms clears the worst observed run by ~1.8x and still fails a 2x regression.
This is the heaviest bench in the set and the only one that moved; the 1ms and
10ms critical targets stay green on the same runner.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ng to rg

The scenario asserted that prefers-reduced-motion appears only in motion.ts by
spawning ripgrep. ripgrep is a developer tool, not a runner one: ubuntu-latest
does not ship it, so spawnSync returned no status and every conformance leg
failed on "AX6: rg failed for prefers-reduced-motion" — the machine, not the
property.

The walk names the directories ripgrep skipped for free through .gitignore;
dist/ matters most, since it holds a compiled copy of the very file the
assertion expects to be unique. Verified to return the same single path as the
rg invocation it replaces.

Co-authored-by: Cursor <cursoragent@cursor.com>
…izes

translate.x/y are parsed back out of style.transform, which Chromium writes to
four decimals. A planned 36.03125 reads as 36.0312 — a delta of exactly
0.00005, where toBeCloseTo precision 4 demands strictly less than 0.00005. The
assertion was pinned to the serializer's own rounding step, so it failed on
float dust for any coordinate carrying a 5 in the fifth decimal rather than on
any paint error.

Precision 3 leaves ten times the worst serialization error. box.x/y come from
getBoundingClientRect, are never serialized, and stay at 4.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Rename workflow jobs for better readability, ensuring each job has a descriptive name.
- Update job names in various workflows to avoid repetition and enhance clarity for contributors.
- Introduce a new structure for job naming in matrix jobs to prevent raw tuple display in GitHub checks.

These changes aim to improve the overall maintainability and user experience of the CI/CD process.
…tency

- Revise the CONTRIBUTING.md file to clarify the naming conventions and requirements for CI workflows, enhancing readability for contributors.
- Rename workflow files and job descriptions to align with the new static analysis structure, replacing deprecated terms.
- Update references in the conformance README and migration documentation to reflect changes in job naming and structure.

These updates aim to improve the overall understanding and usability of the project's contribution guidelines and CI processes.
A check run is named for its job alone, so the seven aggregate jobs all
named Summary would have collapsed into one required context and left six
workflows gating nothing. Each aggregate now names what it covers, and
workflow-integrity gains a NAMES rule for the whole convention: every job
declares a name, does not repeat its workflow, interpolates its matrix
axis, and is unique across workflows.

Co-authored-by: Cursor <cursoragent@cursor.com>
The conformance matrix moved to include rows so each leg can carry a
display label for its check name. The inventory test pinned the old
inline-list spelling, so it failed on the shape rather than on coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
…eates

The seed is deterministic and finishes in 11.6s idle, but pnpm test runs
every package at once and the same run measures 42.8s locally under that
load. On ubuntu-latest that lands past the old 120s budget, so the test
was failing for the runner rather than for the tree.

Co-authored-by: Cursor <cursoragent@cursor.com>
The 300s test budget was not the remaining failure. All 657 tests passed
and then vitest exited 1: birpc's default RPC window is 60s, and a
synchronous 10k-op loop on ubuntu-latest runs past that, so onTaskUpdate
times out after the assertions have already succeeded.

Co-authored-by: Cursor <cursoragent@cursor.com>
10k ops in pnpm test was a nightly soak on a pull-request worker: 11s
idle, 200s under turbo on ubuntu-latest, past birpc's 60s RPC window.
Nightly already runs this file at 1M ops. The PR path now uses 200 ops,
matching the I1 properties smoke, and CI caps vitest at two workers so
packages stop oversubscribing the runner.

Co-authored-by: Cursor <cursoragent@cursor.com>
Playwright's Linux WebKit now delivers formatBold inside a cell, so the
old webkit-does-not-route claim failed the runner rather than Pen.
Chromium and WebKit are pinned to keep the route; Firefox is pinned
not to. Yield an-fuzz on a macrotask so nightly 1M ops can still ack
Vitest's worker RPC.

Co-authored-by: Cursor <cursoragent@cursor.com>
@krijnrijshouwer
krijnrijshouwer marked this pull request as ready for review August 26, 2026 20:21
…mentation accuracy

- Set a maximum warning limit of 1215 for the ESLint linting command to prevent unbounded warning growth.
- Corrected ownership references in documentation scripts to point to the appropriate files.
- Removed the obsolete migration guide check script and its entry from the gates configuration, as it is no longer relevant.

These changes enhance the linting process and ensure documentation reflects the current structure and practices.
- Updated the linting check to ensure the root `lint:eslint` script is a repo-wide `eslint .` pass, allowing for trailing flags.
- Improved error messaging for clarity on linting requirements.

These changes aim to enforce a consistent linting strategy across the repository.
@krijnrijshouwer
krijnrijshouwer merged commit e5acc06 into main Aug 26, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants