Skip to content

feat(profile): project workflow profile into skill package (SKILL.md) - #188

Merged
loocor merged 11 commits into
mainfrom
feat/workflow-guide-authoring
Aug 20, 2026
Merged

loocor merged 11 commits into
mainfrom
feat/workflow-guide-authoring

Conversation

@loocor

@loocor loocor commented Aug 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Persist root and recursively reachable external Markdown author state in SQLite as the canonical Workflow Guide.
  • Model every Capability occurrence as canonical name, exposure, and an occurrence-specific guide, while deriving the effective exposure with direct > meta_on_demand > unbound.
  • Replace the legacy Workflow Step/alias editor with six flat Notebook insert actions: In-Place Markdown, External Markdown, Reference, Capability, Script, and Asset.
  • Project repairable static Skill packages with revision-checked save, preview, repair, synchronized bindings/materials, and confirmed orphan reclamation.

Motivation

Workflow Profiles need one authoritative authoring model. Root and external Markdown can both reference capabilities and package materials, so both participate in the same recursive graph and are stored in SQLite before being projected as readable files. This keeps save, refresh, repair, reachability, and reference reclamation consistent without maintaining Workflow Step or capability-alias shadow models.

Data and migration impact

  • Finalizes the unreleased v0016_create_workflow_guides schema directly; no compatibility or one-time data migration is required.
  • Stores Guide Markdown, external Markdown, package-file metadata, and projection fingerprints in SQLite. Capability occurrence data remains embedded in the authoritative Markdown directives.
  • Keeps legacy Material paths registered during Repair and reclaims only newly unreachable capability names and package files after exact revision confirmation.
  • Stages Workflow Profile metadata, Skill name, Guide projection, and filesystem changes around the same database transaction.
  • Does not change Client Surface or runtime attachment behavior.

Validation

  • cargo test -p mcpmate-migrations --tests — 35 passed.
  • Workflow Guide backend unit tests — 23 passed, including legacy Material preservation during Repair.
  • cargo test -p mcpmate --test profile_workflow_authoring — 8 passed.
  • Targeted Profile metadata rollback, package reclamation, recursive ordering, and projection repair tests — passed.
  • cargo clippy --all-targets --all-features -- -D warnings — passed.
  • cargo fmt --all -- --check and git diff --check — passed.
  • bun test src/lib/workflow-guide-directive.test.ts src/lib/api.profile-authoring.test.ts — 22 passed.
  • bun run lint — passed with 125 existing warnings and no errors.
  • bun run build — passed.
  • Isolated production Playwright UAT — 1 passed in 4.8 seconds against a fresh temporary data directory; covered the six insert actions, occurrence-level Capability guidance, recursive external Markdown, Reference/Script/Asset uploads, preview, save, refresh, persistence, projection deletion, and Repair.
  • Full default backend library run — 1,032 of 1,035 passed concurrently; all three shared-state/transient failures passed when rerun exactly.
  • Full interop backend library run — 1,033 of 1,035 passed concurrently; both shared-state/transient failures passed when rerun exactly with interop enabled.
  • MCP Inspector 2.3.0 tools/list — passed with the three MCPMate built-in tools after approving the isolated Inspector client.

Review

  • Addressed and resolved all 11 Codex review threads, including repair ownership and diagnostics, audit accuracy, committed-write handling, localization, recursive narrative order, front matter parsing, and metadata reprojection.
  • Completed English, Simplified Chinese, and Japanese localization for the six insert actions, Capability controls, package controls, and related accessibility labels.
  • Independent read-only final review found no remaining Critical, Important, or Minor issues. Its initial suggestion to deduplicate repeated capabilities was withdrawn because every occurrence intentionally remains an independent workflow step with its own guide.
  • Changed-code simplification removed a redundant UAT API override without changing behavior.
  • Production UAT screenshots were retained outside Playwright's temporary failure output directory for review.

Out of scope

  • Automatic LLM-based Skill proposal generation and final call-instruction authoring.
  • The next authoring phase must normalize all prose for a repeated capability to its effective exposure: direct invocation by canonical capability name for direct, or details/call instructions for meta_on_demand.
  • Client Surface/runtime publication changes.
  • Non-blocking Workflow Guide visual-spacing and Markdown heading-indentation parser polish.

Project

  • MCPMate Project #4
  • Project item: feat(profile): project workflow profile into skill package (SKILL.md)

loocor added 2 commits August 20, 2026 12:19
- Keep database state authoritative for workflow guide documents.
- Coordinate projection, reclamation, and repair across package files.
- Expose revision-checked APIs with migration and integration coverage.
- Make document-first authoring available from Workflow Profiles.
- Keep reference inspection, preview, save, refresh, and repair visible.
- Cover the production-style browser workflow with Playwright UAT.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Deploying mcpmate-site with  Cloudflare Pages  Cloudflare Pages

Latest commit: 46b1514
Status: ✅  Deploy successful!
Preview URL: https://8cd23f28.mcp-umate.pages.dev
Branch Preview URL: https://feat-workflow-guide-authorin.mcp-umate.pages.dev

View logs

@loocor
loocor marked this pull request as ready for review August 20, 2026 05:57
@loocor

loocor commented Aug 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@loocor loocor self-assigned this Aug 20, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9126e5c788

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

loocor added 3 commits August 20, 2026 16:23
- Store occurrence-level capability exposure and guidance as the database authority.
- Reproject profile metadata and recursive external Markdown through coordinated transactions.
- Remove the obsolete workflow-step and alias authoring contracts.
- Present six flat insertion actions and occurrence-level capability guidance.
- Remove obsolete workflow-step, alias, and display-name authoring paths.
- Add isolated production UAT coverage with persistent screenshot evidence.
- Include legacy Material paths in the Repair ownership set.
- Prove registered legacy files survive projection cleanup.
@loocor

loocor commented Aug 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

loocor added 3 commits August 20, 2026 16:38
- Remove the redundant local storage API override.
- Keep the isolated dev core route as the single UAT source.
- Route insert controls through the Profiles translations.
- Add matching English, Chinese, and Japanese labels.
- Localize the remaining workflow guide controls and ARIA labels.
- Render effective capability exposure through locale resources.
@loocor

loocor commented Aug 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

1 similar comment
@loocor

loocor commented Aug 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b08302e17

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread backend/src/core/profile/authoring.rs Resolved
- Preserve root drafts and return exact package file identities.
- Recover interrupted file leases and roll back failed Skill renames.
- Simplify insertion panels and align parser and localized preview behavior.
@loocor

loocor commented Aug 20, 2026 •

Copy link
Copy Markdown
Owner Author

Final review follow-up is available in 4307087c.

Resolved feedback:

  • preserve Profile-aware dirty root drafts across cache updates;
  • return exact uploaded package-file identity;
  • recover registered deletion leases before Repair verification;
  • track compatible Markdown fence delimiters and lengths;
  • localize remaining preview labels;
  • roll back Skill renames when Guide initialization fails;
  • invalidate derived Workflow specification after external Guide saves;
  • replace the six-item insert menu with only the selected panel plus Back.

Validation:

  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • cargo test --features interop --test profile_workflow_authoring -- --test-threads=1 (8 passed)
  • focused Rust regressions for fence parsing, lease recovery, and rename rollback
  • bun run test (427 passed)
  • bun run lint (0 errors; existing warnings only)
  • bun run build
  • isolated production Playwright UAT (1 passed)
  • MCP Inspector 2.3.0 tools/list after isolated-client approval
  • independent branch-range review: no Critical, Important, or Minor findings

All seven new review threads were answered and resolved.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4307087c83

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread backend/src/core/profile/materials.rs Resolved
loocor added 2 commits August 20, 2026 19:47
- Preserve Guide metadata and document-local projection offsets.
- Serialize package reads and recover interrupted file replacements.
- Reserve package paths across registries and localize resize controls.
- Preserve Guide-derived steps when saving profile guidance.
- Restore the workflow rules drawer step with guarded hydration.
@loocor
loocor merged commit 8cf6012 into main Aug 20, 2026
13 checks passed
@loocor
loocor deleted the feat/workflow-guide-authoring branch August 20, 2026 15:49
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