Skip to content

feat: OpenCode UX — add-role merge, remove-role, doctor --check-host (#32 W5+W6) - #47

Merged
OBenner merged 3 commits into
mainfrom
feat/32-opencode-ux
Nov 15, 2026
Merged

OBenner merged 3 commits into
mainfrom
feat/32-opencode-ux

Conversation

@OBenner

@OBenner OBenner commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Scope

Issue #32 — W5 (add-role manifest merge, remove-role, relative home paths) + W6 (doctor --check-host for OpenCode). W4 (role prompt template) landed earlier as 84ba779.

W5 — 9788be1

  • mergeManifestParticipants / removeManifestParticipant: re-init merges new roles into the existing manifest instead of overwriting it (gap G1 from the live tester onboarding); removal refuses to drop the last role.
  • All three init paths (kimi-work / generic / opencode) merge instead of rewrite; OpenCode denyTools render from the full merged roster (G3).
  • relativeHomePaths: generated OpenCode/generic MCP configs reference credentials and synloq home relative to the config file — project checkouts can move ([P1] Remove absolute paths from generated configs #7 second render path).
  • New synloq remove-role command: operator-authenticated before any irreversible step, deletes the OpenCode session (skips gracefully when the host is down), revokes the token and outstanding claim codes, removes the manifest participant and the opencode.json entries, cleans team state. Kimi Work chats stay manual (host cannot delete them).
  • OpencodeApiClient.deleteSession; removeOpencodeMcpServers with correct handling of absent keys.

W6 — 54245b9

  • OpenCode-bound roles gain an additive hostCheck section in synloq doctor: opencode.json entry consistency (present/missing/unreadable) and credential health offline, session liveness (alive/dead) only behind --check-host.
  • Host failures degrade to unknown with a note — doctor never throws on host errors and stays offline-safe by default.
  • New read-only opencodeMcpServerNames helper; --check-host wired in the CLI with the same discovery as remove-role.

Verification

  • pnpm verify green in the worktree: 81 files / 723 tests (8 new for W6, plus W5 coverage across manifest merge, remove-role with a fake OpenCode server, relative paths).
  • Docs: docs/add-role.md covers add-role merge, remove-role, and the new doctor section.
  • No protocol changes; report fields are additive and backward-compatible.

Left for follow-ups (out of scope here): relay registry already hot-reloads additions via ParticipantDirectory (G4 closed by #36 T2); per-role host in the manifest is ADR-0004 layers 1–2, tracked in #44.

…hs (#32 W5)

- mergeManifestParticipants/removeManifestParticipant: re-init merges new
  roles into the existing manifest instead of overwriting (G1); removal
  refuses to drop the last role
- initialize-team/generic-host/opencode-host: manifest write is a merge;
  OpenCode denyTools render from the full merged roster (G3)
- relativeHomePaths: opencode/generic MCP configs reference credentials and
  synloqHome relative to the config file, so project checkouts move freely (#7)
- new remove-role CLI command: operator-authenticated, deletes the OpenCode
  session (skips gracefully when the host is down), revokes the token and
  outstanding claim codes, removes the manifest participant and opencode
  MCP entries, cleans up state
- OpencodeApiClient.deleteSession; removeOpencodeMcpServers with correct
  handling of absent keys
- OpenCode-bound roles gain an additive hostCheck in the doctor report:
  opencode.json entry consistency (present/missing/unreadable) and credential
  health always (offline), session liveness only behind --check-host
- Liveness uses the host client's GET /api/session/{id}; an unreachable or
  erroring host degrades to session "unknown" with a note — doctor stays a
  diagnostics surface and never throws on host failures
- New read-only opencodeMcpServerNames helper; --check-host flag wired in
  the CLI with discovery identical to remove-role
OBenner added a commit that referenced this pull request Nov 15, 2026
… live runbook

gitleaks-action v2 requires GITHUB_TOKEN to scan pull requests (breaking
change); the Secret scan job failed on PR #47 with that exact error.

Also add docs/runbooks/2026-11-15-claude-desktop-live-dod.md: live
verification for the Claude Desktop Code tab as an inbox-only surface.
Per-role project dirs with project-scope .mcp.json (ADR-0004 signal),
isolation check against the shared-config risk, E5 probes for
hooks/channels without granting active delivery.
@OBenner
OBenner merged commit 5f940f7 into main Nov 15, 2026
3 checks passed
@OBenner
OBenner deleted the feat/32-opencode-ux branch November 15, 2026 10:08
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