docs/backend-migration/handoffs/frontend-dev-assistant-verify-2026-04-23.md
Date: 2026-04-23
Branch: feat/backend-migration-assistant-verify
Owner (outgoing): frontend-dev (verification track)
Next owner: e2e-tester for Task B; coordinator for Task C
option 1 approved) → PASS. 11 sub-probes against backend on :25811,
all HTTP 200; write→read persistence + DELETE→read cleanup
both verified for rule and skill endpoints. UI rendering covered
via Task B (e2e-tester), per Skill-Library pilot pattern.docs/backend-migration/modules/assistant.md
(includes full probe transcript with exact curl commands).af5477360 — test(assistant): align hook mocks with auto-unwrapped ipcBridge returns — fixes 6 mock sites in
tests/unit/assistantHooks.dom.test.ts where the legacy
{success, data} envelope had to become a raw array.The assistant e2e suite is the authoritative UI verification. Candidate files (already present, some recently updated per git log):
tests/e2e/features/assistants/core-interactions.e2e.ts
tests/e2e/features/assistants/edge-cases.e2e.ts
tests/e2e/features/assistants/ui-states.e2e.ts
tests/e2e/specs/assistant-settings-crud.e2e.ts
tests/e2e/specs/assistant-settings-skills.e2e.ts
tests/e2e/specs/assistant-settings-permissions.e2e.ts
Expected coverage: the 7 spot-check flows from the original plan (list load, drawer open, rule read, rule edit+save+persist, delete, auto-skills picker populated).
~/.cargo/bin/aionui-backend (42.9 MB, Apr 22 23:22).out/renderer/index.html.GET /api/extensions/assistants
POST /api/skills/assistant-rule/{read,write}
DELETE /api/skills/assistant-rule/{assistantId} ← path-param, not body
POST /api/skills/assistant-skill/{read,write}
DELETE /api/skills/assistant-skill/{assistantId} ← path-param, not body
assistantId returns 404
with a misleading Skill not found: assistant-rule message. If an
e2e helper ever constructs DELETE manually, confirm it passes the id
in the URL.ipcBridge.fs.*.invoke() and
ipcBridge.acpConversation.*.invoke() resolve to the raw payload,
not the {success, data} envelope. Future tests that mock these
must mirror that shape — see the fix commit for the pattern.GET /api/extensions/assistants with
an empty data dir returns data: []. For realistic UI runs, seed
the dir or run against a user profile that already has presets.docs/backend-migration/modules/assistant.md)
for the full verification matrix and risks.docs/backend-migration/plans/2026-04-23-assistant-module-verification-plan.md?
The dir did not exist when this agent started; proceeded from the
Task #1 description only. If a canonical plan exists elsewhere, the
module log and this handoff may need cross-linking.{success: true, data: mock patterns across
the rest of the test tree be a follow-up ticket? (see "Risks" in the
module log.)docs/backend-migration/handoffs/coordinator-skill-library-2026-04-23.md
§Lessons learned as the precedent for "UI rendering handled in the
e2e suite, not by frontend-dev". That file does not exist on
disk (only this handoff is present under handoffs/). I kept the
cross-reference verbatim in the module log because it was a literal
instruction; coordinator please confirm the correct path or create
the referenced handoff so the cite resolves.tests/unit/assistantHooks.dom.test.ts (+15 / -18)
docs/backend-migration/modules/assistant.md (new)
docs/backend-migration/handoffs/frontend-dev-assistant-verify-2026-04-23.md (new, this file)