Skip to content

Document UltiTools 7.2 plugin loading and teardown - #284

Merged
wisdommen merged 2 commits into
alphafrom
docs/7.2-stage1-loading
Dec 3, 2026
Merged

wisdommen merged 2 commits into
alphafrom
docs/7.2-stage1-loading

Conversation

@wisdommen

Copy link
Copy Markdown
Member

Summary

Synchronize the English and Chinese developer guides with UltiTools-API 7.2 stage 1. The changes are version-scoped; the 7.1.0 release notes retain their historical limitations. No new pages, sidebar entries, or compiled examples are added.

Pages and framework basis

Page under docs/src/guide/ (and its Chinese counterpart) Change and basis
quick-start.md Document cache validation before registerSelf(), failed-load rollback, unload order, and when getInstance() returns null. Framework PRs #1175 and #1176.
advanced/ioc-container.md Explain discovery within one code source, package warnings, symlink handling, the shared-output limit, and local-only command callback injection. Framework PRs #1174 and #1175.
advanced/external-plugin-api.md Explain external code-source discovery, shared and nested packages, injection and registration rules, scoped completers, failure diagnostics, rollback and disconnect order. Framework PRs #1174–#1176.
advanced/auto-register.md Remove the private PluginManager method reference and distinguish module switches from external automatic registration. Framework PRs #1175–#1176.
advanced/player-cache.md Describe early validation and the diagnostic naming the author's bean class. Framework PR #1175.
advanced/testing.md Show per-module additionalModuleCodeSources and explain the listener stand-in and packaged-JAR test boundaries. Framework PRs #1174–#1175.
essentials/data-storage.md Explain entity discovery provenance, reservation before component construction, and release on failure or detach. Framework PRs #1174–#1176.
release-notes/7.1.0.md Mark the old JAR scanning limits as specific to v7.0.0 and v7.1.0. Framework PR #1174.

Framework basis: COMPATIBILITY.md, section 7.2 and the player-cache validation entry in FEATURES.md.

Related issues

  • Refs #1107: separate module JARs with the same or nested scan packages.
  • Refs #1127: package directory entries are no longer required in v7.2.0.
  • Refs #1121: external plugin scan source and shared class-directory limit.
  • Refs #1129: external completer cleanup and the split between local-only and parent-fallback injection.
  • Refs #1009: shutdown continues after an external disconnect fails.

Validation

  • The bilingual documentation assertions failed before the edits and passed after them.
  • npm run build, bilingual parity, container fixtures and full-site container checks passed. New anchor targets were checked against rendered HTML.
  • UAT: not required — documentation only

Synchronize the bilingual module, external plugin and testing guides with
source-scoped discovery, host validation, rollback and teardown in 7.2.
Keep pre-7.2 scan limitations in the versioned release notes.

Refs UltiKits/UltiTools-Reborn#1107
Refs UltiKits/UltiTools-Reborn#1127
Refs UltiKits/UltiTools-Reborn#1121
Refs UltiKits/UltiTools-Reborn#1129
Refs UltiKits/UltiTools-Reborn#1009

Co-Authored-By: Codex (gpt-6.2-sol) <[email protected]>
@wisdommen

Copy link
Copy Markdown
Member Author

Review (single cross-family pass; author: Codex/GPT, reviewer: Claude Opus): no findings.

Checked against UltiTools-Reborn main @ b979659d5:

  • Scan semantics (own code source, no directory entries needed, shadowed same-name class skipped with a warning, empty @ComponentScan package warns, no symlinked package dirs, shared-output nested packages) match ComponentScanner / PluginCodeSource and COMPATIBILITY.md.
  • @UltiToolsTest(additionalModuleCodeSources = @UltiToolsTest.ModuleCodeSource(module, marker)) matches testkit/.../UltiToolsTest.java:57; listener stand-in note matches the 7.2 compatibility entry.
  • TabCompletionManager.getInstance().register(String, TabCompleter) exists and is attributed to the connection.
  • Module load/unload order (reservation → container → cache validation → registerSelf() → framework registrations; reverse on unload, onUnregister() before container close, static instance/data scope cleared) matches PluginHost/HostAssembly ledger order, and was also observed on Paper during stage 1 UAT.
  • Command-callback interfaces no longer fall back to UltiTools; LifecycleEventOwner/Namespaced fallback documented as a remaining known limitation (tracked in By-type parent fallback can still inject the framework plugin for interfaces other than command callbacks UltiTools-Reborn#1177).
  • zh/en pages carry the same statements; 7.1.0 limitations kept, now scoped to 7.0/7.1.

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Deploying ultitools-dev-doc with  Cloudflare Pages  Cloudflare Pages

Latest commit: a41ca71
Status: ✅  Deploy successful!
Preview URL: https://0d2d8a50.ultitools-dev-doc.pages.dev
Branch Preview URL: https://docs-7-2-stage1-loading.ultitools-dev-doc.pages.dev

View logs

@wisdommen

Copy link
Copy Markdown
Member Author

Peer review (fresh reviewer subagent; supersedes the earlier coordinator comment above). Checked against UltiTools-Reborn main @ b979659d5 and, for "before", b4ba4f3fc.

Verdict: mergeable, no blocking findings. Three accuracy suggestions, to be fixed in this PR:

  1. guide/quick-start.md:116 (en + zh): the unload order (wait for async commands → stop UI sessions → cancel tasks → remove cache registrations → onUnregister() → close container) already held in 7.1 (PluginManager.java 886–960 at b4ba4f3fc; #1176 body: "Modules still stop…"). Only clearing the data scope and the static instance field are new in 7.2. Word it as "In v7.2.0, …" and mark just those two points as new; the zh "自 v7.2.0 起" reads as if the whole order changed.
  2. guide/advanced/external-plugin-api.md:68 (en + zh): disconnecting external plugins before unloading modules already happened in 7.1 (PluginManager.close() 1113–1114 calls disconnectAll() at b4ba4f3fc). New in 7.2: one plugin's failed disconnect no longer stops later plugins/modules from being torn down, and each failure is logged by name (#1176 / #1009).
  3. guide/advanced/testing.md:423 (en + zh): still advises listing "other module JARs that may share its base package" in alsoInstall. Since 7.2 each JAR scans only its own code source, so this is pre-7.2 advice; scope it to versions before 7.2.0 or drop the clause.

Verified accurate (sample): connect failure message and cause (UltiToolsAPI.java:86-107), load order and rollback (HostAssembly.java:71-234), detach waits for async commands for both hosts (HostAssembly.java:245-273), static instance cleared only if it still points to the module (PluginManager.java:3271-3296), command-callback injection local-only (SimpleContainer.java:563-576), own-code-source scanning and shadow skip (PluginCodeSource.java:41-100, ComponentScanner.java:203-228), player-cache validation (PlayerCacheManager.java:170-182), testkit ModuleCodeSource (UltiToolsTest.java:57-68). zh/en parity checked across all 16 files; anchors resolve.

🤖 Generated with Claude Code

Separate existing unload and shutdown ordering from the 7.2 cleanup
changes. Drop the same-package fixture requirement from packaged scan
testing now that discovery stays within the JAR's code source.

PR #284 review suggestion 1: module unload order
PR #284 review suggestion 2: external-first shutdown
PR #284 review suggestion 3: packaged component testing

Co-Authored-By: Codex (gpt-6.2-sol) <[email protected]>
@wisdommen
wisdommen merged commit 70db0cf into alpha Dec 3, 2026
25 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.

1 participant