This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
test(plugin-detail): derive the docs activity-map transcription from the map - #8098
Merged
baozhoutao merged 2 commits intoSep 6, 2026
Merged
Conversation
…the map `content/docs/plugins/plugin-detail.mdx` restates `ACTIVITY_TYPE_TO_FEED_TYPE` in prose and nothing read that sentence: the doc gates read component type literals, fenced code blocks, fence languages, links and route closure, never a sentence. objectui#6932 (PR objectui#7871) is what that costs — two `record:activity` statements on the page that were true when written and false on `main`. The new pin locates the mapping paragraph by its opening sentence, never by line number, and derives its expectation from the map in both directions: every key with a feed type appears under that feed type, every `undefined` key is named without one, and no type the paragraph names is absent from the map. A missing anchor fails loudly rather than checking nothing. The bound is written into the docblock rather than sold past: this covers the map transcription only, not the free-prose behaviour statements objectui#6932 corrected. It is also not the pin `recordActivityFeed.test.ts` forbids — that ban is about the platform-DECLARED vocabulary, a different object, transcribed by hand from upstream. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Contributor
Author
|
Standing down on Generated by Claude Code |
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
baozhoutao
marked this pull request as ready for review
September 6, 2026 15:40
baozhoutao
deleted the
claude/issue-7876-activity-feed-transcription-pin
branch
September 6, 2026 15:56
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #7876
Ruling A on the card, confirmed by triage
5557286492: a derived transcription pin. One new test file; the page itself is untouched.What this closes, and what it does not
content/docs/plugins/plugin-detail.mdxrestatesACTIVITY_TYPE_TO_FEED_TYPEin prose at:221-225, and nothing read that sentence —check:doc-typesreads component type literals,check:doc-snippetsreads fenced code blocks,check:doc-fences/docs:check-links/check:docs-route-closureread fence languages, links and route closure. None of them reads a sentence, which is how #6932 (PR #7871) came to find tworecord:activitystatements on this page that were true when written and false onmain.How it works
`sys_activity` rows map to feed items like this:); the slice runs to the next blank line. A missing or duplicated anchor throws with a stated reason, so a page restructure reds instead of vacuously passing.undefinedkey must be named in the paragraph and not listed under any feed type; and no activity type the paragraph names may be absent from the map.undefinedkey; the anchor matched exactly once; the paragraph yields ≥ 1 type under a feed type and ≥ 1 named without one. A separate leg asserts the slice stopped at the paragraph (the prose at:239naming the constant must not be inside it).Not the pin
recordActivityFeed.test.tsforbidsThat file bans deriving
PLATFORM_BUILTIN_ACTIVITY_TYPESfrom the map — that list is the platform-declared vocabulary, hand-transcribed from upstream, so deriving it would compare the map with itself. The object here is different: prose on an.mdxpage authored independently of the map, which is exactly what a derived expectation is for. Its neighbourfeedTypeProducerCensus-5877.test.tsnames the same page in order to declare it out of the producer census; this is the pin that reads it. ItsrepoRootresolution is reused rather than re-invented. The map is read fromrenderers/recordActivityFeed, never from app-shell's separateactivityItemType.tsmapping.Drift check on today's page
The prose and the map agree on
main, so the page is not touched. Re-derived:created/updated/deleted/assigned/shared→field_change,completed→task,scheduled→event,system→system, andcommented/mentioned/login/logoutnamed as skipped / account events — the map's 12 keys exactly.Ablation — five legs, each mutating the page on disk, restored under a
trapwith absolute pathsBlob hashes recorded before and after every leg; each restore is
git checkout HEAD -- <abs path>verified back toa1b07f6…withgit diff HEADexit 0.completed→taskbecomes →event- "completed": "task" / + "completed": "event"sharedfrom the mapped list- "shared": "field_change" / + "shared": undefinedmentionedfrom the skip sentence- "named": true / + "named": falsearchived, which the map does not declareundeclared: [ 'archived' ]completed→taskpair where it appears outside the paragraph (:229)Leg E is the ruling's "prose elsewhere on the page must not be read as the transcription", measured: the identical text moved outside the slice leaves the pin green. Leg A's first anchor attempt was rejected by the script because that text occurs twice on the page — which is how E got written.
Gates, all pinned to
cb3ba202c(the merged head)pnpm exec vitest run packages/plugin-detail/→ 133 files / 1205 tests passed ·pnpm --filter @object-ui/plugin-detail type-check→ 0, andtsc -p tsconfig.test.json --listFilesnames the new file (so the type program is not vacuous over it) ·lint→ 0 errors, 0 findings in the new file ·check:control-bytes→ 0, plus a manual control-byte scan of both changed paths (no hits) ·node scripts/check-changeset-presence.mjs→ 0, empty frontmatter accepted as "releases nothing" ·check:governed-queue-guard --test→ NOT GOVERNED ·check:doc-types→ 0 · plus the derived setcheck:doc-example-readers,check:published-tsconfig-exclude,check:unreferenced-sources,check:esm-specifiers,check:self-import→ all 0. Both files that name this page (check-doc-component-types.mjsand the census test) were run.origin/mainmoved from295804a63toc546cdfddmid-run; merged in and everything above was re-run on the merged head. The merge is disjoint frompackages/plugin-detail/**andcontent/docs/plugins/**.Live E2E (informational)is red on every branch today for an upstream reason (#7990) — not this change.Related, none of them addressed here: #6932 and its PR #7871 are the instance that motivated the card; #5877 owns the neighbouring census pin.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Generated by Claude Code