Skip to content

fix(mecatui): clarify trust and memory copy - #1656

Merged
danbarr merged 4 commits into
mainfrom
fix/mecatui-trust-memory-copy-1651
Sep 17, 2026
Merged

danbarr merged 4 commits into
mainfrom
fix/mecatui-trust-memory-copy-1651

Conversation

@danbarr

@danbarr danbarr commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Explain workspace trust in terms of the project instructions, soul, other project guidance, and ALLOW grants it enables while preserving DENY/ASK behavior.
  • Rewrite workspace-tool enrollment around the user action, approval, timing, and recovery consequences.
  • Clarify skill and user-model terminology while preserving Soul as the intentional product concept and identifying user-versus-project provenance.

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR
  • Spike / Routine — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

  • Work classification: Routine
  • Classification rationale: Focused security-sensitive UI copy and regression tests; safe defaults and runtime behavior are unchanged.
  • Decision record: None — no durable architectural decision.
  • Human waiver of spine: No
  • Acceptance plan: N/A — Routine work tracked by mecatui: clarify trust, workspace-service, and memory copy #1651.
  • Human decisions resolved and recorded: N/A — no open product or interface decision.
  • Plan / Interface PR: N/A
  • Approved commit baseline: N/A
  • Combined/exemption rationale: Routine work is acceptance-plan exempt.

Interface conformance

  • No interface change. Existing trust, provenance, consent, idle-session, persistence, and agent-read-only boundaries are preserved and described more clearly.

Issue relationship

Closes #1651

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Offline test suite (task test)
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Additional checks:

  • go test ./cmd/mecatui ./cmd/mecatui/ui
  • task build
  • git diff --check
  • Inspected refreshed skills, Soul, and saved-memory goldens

The full offline suite is left to CI; focused tests exercise every changed TUI path. The panel reported six important findings across its independent axes; all were addressed before publication.

Changes

File Change
cmd/mecatui/trust.go Clarify remembered, one-run, declined, drifted, and non-interactive trust outcomes, including Soul in the admitted project guidance.
cmd/mecatui/ui/workspace_enrollment.go Explain workspace-tool approval, progress, failure, cancellation, and recovery.
cmd/mecatui/ui/soul.go, usermodel.go, skills.go Preserve the “Soul (persona)” concept, clarify its provenance and ownership, and use clearer saved-memory and learned-skill language.
Focused tests and goldens Cover trust disclosure, enrollment states, Soul source ownership, and clearer user-facing terminology.

User-facing change

Users can now tell what trust and workspace-tool connection enable, which restrictions still apply, whether the active Soul comes from the user or project, and how saved memory works without losing established product terminology.

Special notes for reviewers

The Soul panel remains read-only to the agent. User and project sources intentionally have different ownership and change guidance.

danbarr and others added 3 commits September 16, 2026 16:49
Keep the canonical Soul product concept in the persona panel and trust disclosure while retaining clearer provenance and ownership guidance.
@jhrozek

jhrozek commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Updated the trust and Soul copy while keeping the scope narrow. Trust disclosure now includes the Git-backed authority and read-only child worktree operations it enables; drift messaging no longer incorrectly attributes AGENTS.md / CLAUDE.md changes to the trust anchor; and Soul drift now describes content as changed since it was last approved. No changes were made to the remaining memory, skill ownership, footer layout, or broader test-coverage findings. Focused tests pass.

@danbarr

danbarr commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the fixup. I pushed a small follow-up in 7bfde43.

The trust disclosure now separates project-provided content and ALLOW rules from the conditional Git status, worktree, and read-only child Shell capabilities. That keeps the consent boundary explicit without implying that project authority is inherently Git-backed or that trust controls every Git operation.

The Soul drift label now says "changed since Mecatl last recorded it" because the baseline can be established automatically on first use as well as explicitly with --approve-soul. I also added focused coverage for the full trust disclosure and both user and project Soul drift labels. The focused mecatui tests pass.

@danbarr
danbarr merged commit 853ed2b into main Sep 17, 2026
35 checks passed
@danbarr
danbarr deleted the fix/mecatui-trust-memory-copy-1651 branch September 17, 2026 12:52
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 21, 2026
2 tasks
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.

mecatui: clarify trust, workspace-service, and memory copy

2 participants