Add portable ISA extension development and native UI skills
This commit is contained in:
@@ -0,0 +1,123 @@
|
||||
# Validation Checklist
|
||||
|
||||
For an extension that declares `modelRecommendations`, first follow the
|
||||
end-to-end procedure in
|
||||
[Model recommendations](21-model-recommendations.md#2111-validation-before-publication).
|
||||
|
||||
Packaging:
|
||||
|
||||
- Run the extension root `npm run build`.
|
||||
- Confirm `dist/<id>.isax/extension.json` exists.
|
||||
- Confirm `dist/<id>.isax/payload.tar.xz` exists.
|
||||
- Confirm the distribution `payloadSha256` matches the packaged payload.
|
||||
- If the source requests `mod`, confirm the package-root manifest contains the normalized `permissions` and exact `modEntry`, and confirm the payload contains that module.
|
||||
- Confirm `payload.tar.xz` does not contain `extension.json`.
|
||||
- For local dashboard registration, select the final `.isax` directory with
|
||||
Browse and confirm it contains regular `extension.json` and
|
||||
`payload.tar.xz` files. Confirm a package with either file missing, a wrong
|
||||
suffix, a payload digest mismatch, links, traversal entries, or an invalid
|
||||
install manifest is rejected before upload.
|
||||
- Confirm the local flow uploads the payload as an artifact with resource type
|
||||
`extension` and that installation resolves a fresh permission-checked signed
|
||||
link rather than persisting one.
|
||||
- If the source manifest has `modelRecommendations`, confirm the validated
|
||||
`schemaVersion: 1` block is present inline in the distribution
|
||||
`extension.json`.
|
||||
- Confirm recommendations use unique portable keys, supported model types,
|
||||
valid source/location combinations, HTTPS or loopback URLs, safe relative
|
||||
output paths, and no credential fields.
|
||||
- Confirm `normalHttp.autoDownload` is absent or `false` and every
|
||||
`openAICompatibleAPI` source omits `apiKey`.
|
||||
|
||||
Before shipping an extension or documenting a new capability, verify:
|
||||
|
||||
- Manifest parses and the entry file exists.
|
||||
- Declared native assets exist.
|
||||
- Only required permissions are requested.
|
||||
- A `mod` extension has one existing safe relative `modEntry`; a non-mod extension has no `modEntry`.
|
||||
- The mod script registers its exact extension ID exactly once, synchronously, and keeps the iframe entry usable when activation is declined.
|
||||
- Mod styles, roots, direct DOM state, and listeners are removed after reload, close, update, activation failure, and replacement.
|
||||
- Helper-created host contributions use `appendStyle`, `appendRoot`, or `addEventListener`; every remaining direct host mutation has registered or returned cleanup.
|
||||
- Automatic installation leaves the host module inert until an interactive activation acknowledgement.
|
||||
- Normal bridge traffic cannot invoke the host loader, access the parent document, or create host contributions.
|
||||
- Host mod UI uses documented mount points, does not hide the host warning/status, and has usable light, dark, hover, focus, active, and disabled states.
|
||||
- Implemented APIs match the real host dispatcher.
|
||||
- `get_app_info` advertises the filesystem commands the extension uses.
|
||||
- Extension storage uses `ensureGroupFolder()` only when group-shared storage is
|
||||
needed.
|
||||
- Existing workspace files are accessed only after `openWorkspaceFile()` or
|
||||
`openWorkspaceFolder()` returns a local grant.
|
||||
- Read-only grants reject upload, replacement, and delete.
|
||||
- Syncable files are written below the returned extension group folder with
|
||||
`metadata.syncable = "true"`.
|
||||
- The extension does not implement its own offline sync for syncable files.
|
||||
- Dashboard-backed project files follow
|
||||
[the project-sync standard](20-dashboard-backed-project-sync.md), omit
|
||||
`metadata.syncable` unless offline editing is an explicit requirement, and
|
||||
reconcile incoming canonical changes while mounted.
|
||||
- Canonical inventory preserves unavailable/invalid outcomes and never treats
|
||||
them as confirmed remote deletion.
|
||||
- Local grants can be revoked in Settings and access stops after revocation.
|
||||
- Project pickers check `get_app_info.projects.commands`; archive and restore
|
||||
are shown only when `projects_set_archived` is advertised.
|
||||
- The default project list hides archived projects. Archive management calls
|
||||
`projects_list` with `includeArchived: true` and distinguishes `archived`
|
||||
projects from deleted or unknown ids.
|
||||
- Project archive and restore are idempotent, preserve the stable project id,
|
||||
and never delete, move, or orphan extension-owned project files.
|
||||
- Audio extensions request `audio_capture`, survive iframe minimization, and
|
||||
expose a working host-level stop control.
|
||||
- The extension checks `get_app_info.audioCapture` and
|
||||
`get_app_info.transcription` before showing media actions.
|
||||
- The microphone grant is host-owned and revocable; revocation stops an active
|
||||
recording for that extension.
|
||||
- Audio responses, events, shared files, logs, and project metadata contain no
|
||||
audio bytes or local audio paths.
|
||||
- Missing launch groups and empty speech-to-text provider lists produce clear
|
||||
unavailable states without a workspace-wide model fallback.
|
||||
- First-use local model download handles only `transcription_model_downloading`
|
||||
as retryable waiting; `transcription_model_not_downloaded` is surfaced.
|
||||
- The job ID is persisted immediately, restored views call `transcription_get`,
|
||||
and event listeners are removed when the view is disposed.
|
||||
- `failed`, `cancelled`, and `interrupted` jobs are handled, active jobs are
|
||||
cancelled before deletion, and only terminal jobs are deleted.
|
||||
- Remote transcription requires host confirmation for every job and never
|
||||
trusts iframe-provided consent, endpoint, or API-key values.
|
||||
- Speech-to-text models are resolved only from the exact launch group; there is
|
||||
no workspace-wide fallback.
|
||||
- Transcript/project persistence succeeds durably before local audio cleanup.
|
||||
- Light and dark themes both work.
|
||||
- One notification centre is mounted at the extension root and imports the
|
||||
shared `isa-extension-notifications.js` and `.css` contracts.
|
||||
- Operational messages appear only in the root notification centre; contextual
|
||||
validation, progress, empty, and durable status remain inline.
|
||||
- The same outcome is not duplicated inline and in a notification, notification
|
||||
history is bounded/deduplicated, and keyed conditions update in place.
|
||||
- Error notifications pass caught values through `normalizeExtensionError`;
|
||||
known error codes are translated and serialized JSON is never primary copy.
|
||||
- Notifications support individual dismiss, clear-all, timeout countdown,
|
||||
recovery actions, mobile/safe-area layout, and reduced motion.
|
||||
- Error notifications use alert semantics; all other tones use polite status
|
||||
semantics and appearing notifications do not steal focus.
|
||||
- Email payloads use the documented contract only.
|
||||
- Dashboard distribution metadata and disclosure are complete if the extension
|
||||
is intended for distribution.
|
||||
- Required model recommendations cannot be deselected; recommended items can
|
||||
be toggled individually and selected together.
|
||||
- Existing recommendation matching uses exact HTTP URL/output or API base
|
||||
URL/provider-model identity plus compatible model types, never display name.
|
||||
- Selected missing models are created in workspace inventory with no implicit
|
||||
group links.
|
||||
- API keys entered during recommendation review never appear in extension
|
||||
metadata, stored manifest JSON, logs, or subsequent UI state.
|
||||
- A required model failure prevents extension creation, leaves the review
|
||||
retryable, and a retry reuses models created by an earlier partial attempt.
|
||||
- Adding a `normalHttp` recommendation does not start a model-byte download;
|
||||
device download and group assignment remain separate actions.
|
||||
- Recommendation keys are not used as runtime model IDs; the extension
|
||||
discovers only models authorized for its exact launch context.
|
||||
- The extension remains usable or shows a clear setup state when no
|
||||
recommendation is linked to the launch group.
|
||||
- Documentation tells existing administrators that recommendation changes in
|
||||
an update are not provisioned automatically and uninstall leaves models in
|
||||
workspace inventory.
|
||||
Reference in New Issue
Block a user