Skip to content

docs(plan): Mecatl Studio knowledge acceptance plan - #1759

Merged
samuv merged 1 commit into
studio/schedulesfrom
plan/studio-knowledge
Sep 23, 2026
Merged

samuv merged 1 commit into
studio/schedulesfrom
plan/studio-knowledge

Conversation

@samuv

@samuv samuv commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds docs/acceptance/studio-knowledge.md (Bounded): per-capability-gated configured and learned skills, revision-checked learned-skill actions, learning proposals and session reflection, and user-memory consolidation plans, with the knowledge workspace.

Review focus

  • Six surface-specific 501 codes; the two inventory lists degrade to supported: false instead.
  • Optimistic concurrency: expectedRevision / expectedVersion required non-empty, conflicts relayed from the daemon and never retried.

Checker: check-acceptance-plan.sh passes; task docs passes. Stacked delivery: nothing in this series merges until the whole stack is reviewed; the plan's approval-by-merge event is deferred to the end, as its Delivery line records.

Contract amendments

  • Action flags. They offer each action only in the states the daemon accepts: activate for an evaluated staged version, reject for draft/evaluated/staged, archive for active, and rollback for an active version that supersedes another (AC2.1).
  • Rollback. It requires targetVersion; the old default of the active version could never succeed (AC2.2).
  • Stale revision. It is relayed as 409 proposal_conflict (AC2.3).
  • Diff. The learned-skill detail renders a real line diff from the daemon's whole-body diff (AC5.2).
  • AC1.2. It now names the four lists that degrade.

Development stage

  • Plan / Interface
  • Implementation
  • Combined
  • Spike / Routine / Cleanup

Contract linkage

  • Work classification: Bounded
  • Classification rationale: adds the knowledge product surface (skills, learned skills, proposals, reflection, user memory) inside the boundary ADR 0351 fixed
  • Decision record: None — the boundary and the published-SDK rule are ADR 0351's; this plan only fills in a feature contract that ADR anticipated
  • Human waiver of spine: Yes — the directing human chose stacked (gh stack) delivery for the whole Studio series: nothing merges until every layer is reviewed, so the plan's approval-by-merge event is deferred to the end (recorded in each plan's Delivery line), and each implementation layer records the exact plan commit it built against.
  • Acceptance plan: docs/acceptance/studio-knowledge.md
  • Human decisions resolved and recorded: Yes
  • Plan / Interface PR: this PR
  • Approved commit baseline: absent until the stack root merges (stacking exception above)
  • Combined/exemption rationale: N/A

Interface conformance

  • Interface contract under review: Fourteen /api/v1 routes over skills, learned skills, proposals, reflection, and user memory; six surface-specific 501 codes; required expectedRevision / expectedVersion tokens with daemon conflicts relayed. No gRPC, Go, CLI, or tool-schema change.

Issue relationship

Relates to #1749 (parent #1736; stack #1766). Non-closing: the step completes when both of its layers merge.

Type of change

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

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)

Plan layer: the acceptance-plan checker and task docs pass. The Studio gates (task studio:check, task ac-trace) run on the implementation layer above, since this layer adds no apps/ code.

User-facing change

None — a plan document and, for the bootstrap, ADR 0351.

Special notes for reviewers

Part of a fourteen-layer stack; review bottom-up. Nothing merges until the whole series is reviewed.

@samuv
samuv added this pull request to stack #1766 September 22, 2026 08:01
@samuv samuv self-assigned this Sep 22, 2026
@samuv
samuv force-pushed the plan/studio-knowledge branch from 62e9ab7 to 0725d40 Compare September 22, 2026 09:03
@samuv
samuv force-pushed the plan/studio-knowledge branch from 0725d40 to 2480fc7 Compare September 22, 2026 09:13
@samuv
samuv force-pushed the plan/studio-knowledge branch from 2480fc7 to 53679c5 Compare September 22, 2026 09:22
@samuv
samuv force-pushed the plan/studio-knowledge branch from 53679c5 to be72d71 Compare September 22, 2026 09:59
@samuv
samuv force-pushed the plan/studio-knowledge branch from be72d71 to 94ea259 Compare September 23, 2026 08:56
@samuv
samuv force-pushed the plan/studio-knowledge branch from 94ea259 to 9303e61 Compare September 23, 2026 09:40
@samuv
samuv force-pushed the plan/studio-knowledge branch from 9303e61 to a4adfeb Compare September 23, 2026 10:47
@samuv
samuv force-pushed the plan/studio-knowledge branch from a4adfeb to 429f648 Compare September 23, 2026 11:54
Bounded plan for the third Studio feature layer: per-capability-gated
configured and learned skills, revision-checked learned-skill actions,
learning proposals and session reflection, and user-memory consolidation
plans, with the knowledge workspace and its ported tests as proofs.

Tracking: #1736

Signed-off-by: Samuele Verzi <[email protected]>
@samuv
samuv force-pushed the plan/studio-knowledge branch from 429f648 to e90b74c Compare September 23, 2026 12:54
@samuv
samuv merged commit 3a1ca34 into main Sep 23, 2026
31 checks passed
@samuv
samuv deleted the plan/studio-knowledge branch September 23, 2026 13:15
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