Repository navigation
Commit f868e68
Part of #15952
Clause-②: no
Docs-only. This PR lands the docs half of #15952; the card stays open
for the scaffold half, which is held (see below).
## What changed
**`content/docs/protocol/kernel/plugin-spec.mdx`, "Plugin Testing"** is
the one file in the diff (`git diff --stat origin/main...HEAD`: 1 file,
+84 / -62).
- The section is rewritten around what ships. The ghost callout and all
seven `@objectstack/testing` / `createTestContext` /
`createTestEnvironment` mentions are gone.
- The page is hand-written: it is listed in
`scripts/docs-audit/handwritten-docs.json`, and no generator writes it.
- It now covers `bootStack`, the in-process handle (a method table),
refusal assertions on `code` and status, a runtime plugin booted through
`extraPlugins`, and `bootStackOnce`.
- It uses only handle methods that exist in the published
`@objectstack/verify@17.7.0` and on `main`. Each was read from
`packages/verify/src/handle.ts` and from the 17.7.0 tarball's README and
`.d.ts`.
No changeset: nothing here publishes (`skip-changeset`).
## The scaffold half is held
Branch `claude/issue-15952-scaffold-held`, at `812d8dbf94`, keeps the
full implementation. It has no PR of its own. It contains:
- the blank template's `test` script, `@objectstack/verify` + `vitest`
devDependencies, `vitest.config.ts` and the one starter test
`note.test.ts`;
- `create-objectstack`'s template exclude;
- the Scaffold E2E `test` step;
- the `create-objectstack` minor changeset.
On that head a freshly scaffolded app runs `pnpm test` green. The half
is held, on the seat's order on the card, for two measured reasons:
1. **#22912: `npm install` of a vitest-4 project crashes on npm 10
(upstream).** Node 22's bundled npm 10.9.x fails with `TypeError: Cannot
read properties of null (reading 'edgesOut')`. The one-line repro is a
manifest holding only `"vitest": "^4.0.0"`. Shipping the starter's
vitest devDependency would break `npm install` for the blank starter on
Node 22. The half resumes when #22912's one-line manifest installs on
npm 10.
2. **Open question 1 on #15952: two required repo gates count the
template payload test as `create-objectstack`'s own suite.** The gates
are `check-registry-log-declared` and `check:test-source-alias`. Both
walk every `*.test.ts` under a package without the tsconfig `exclude`
payload boundary that `check-undeclared-dep-imports` already reads, and
both exited 1 at `812d8dbf94`. That question is deferred with the held
half.
## Verification (head `dfead30310`)
- **Acceptance grep:** `git grep -n "objectstack/testing" -- content/
skills/ packages/` finds 0 hits (exit 1). The three-symbol expression
`objectstack/testing\|createTestContext\|createTestEnvironment` also
finds 0 hits (exit 1). Before, at `9fdb12752c`, there were 7 hits, all
in this page.
- **Gates:** `dispatch-gates --commands` was derived with no paths at
`dfead30310`: 40 families. All 40 were run, plus
`check-registry-log-declared` and `check:test-source-alias`, the two
that were red with the payload test, and every one exited 0. `--ran`
reconciles 40 run, 0 NOT-MEASURED, 0 UNRUN.
- **Anchors:** `check:doc-anchors` resolves every internal `#fragment`
link, including the section's new `#runtime-contract` link.
## Acceptance notes
- The published skills still teach a hand-assembled `LiteKernel` test
(`skills/objectstack-platform/references/operations.md`, and
`references/plugin-development.md` under "Testing Plugins"). None
mentions `@objectstack/testing`, so the acceptance grep is clean.
Pointing them at `bootStack` is a governed (Tier H) `skills/**` edit.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01VoSxBQujKLZKPwK2u5ehQ6)_
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1bd612b commit f868e68
1 file changed
Lines changed: 84 additions & 62 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
793 | 795 | | |
794 | | - | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
795 | 807 | | |
796 | 808 | | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
806 | 832 | | |
807 | | - | |
808 | | - | |
| 833 | + | |
| 834 | + | |
809 | 835 | | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
818 | 845 | | |
819 | 846 | | |
820 | 847 | | |
821 | 848 | | |
822 | | - | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
823 | 853 | | |
824 | | - | |
825 | | - | |
826 | | - | |
| 854 | + | |
827 | 855 | | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
860 | 877 | | |
861 | 878 | | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
862 | 884 | | |
863 | 885 | | |
864 | 886 | | |
| |||
0 commit comments