[DRAFT] Implement skills profile override layer#1166
Draft
simple-agent-manager[bot] wants to merge 11 commits into
Draft
[DRAFT] Implement skills profile override layer#1166simple-agent-manager[bot] wants to merge 11 commits into
simple-agent-manager[bot] wants to merge 11 commits into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Do not merge
Draft PR for idea 01KT05WE0HRQMKTRK5ZM3ZPKB8. This implements Skills as a first-class profile override layer and must not be merged to production without explicit follow-up approval.
Summary
Validation
pnpm lintpnpm typecheckpnpm testpnpm buildpnpm quality:migration-safetypnpm quality:file-sizespnpm --filter @simple-agent-manager/api test -- tests/unit/skill-submit-paths.test.tspnpm --filter @simple-agent-manager/web exec playwright test tests/playwright/skills-ui-audit.spec.tspnpm --filter @simple-agent-manager/web exec playwright test tests/playwright/project-chat-composer-audit.spec.tsStaging Verification (REQUIRED for all code changes - merge-blocking)
Staging Verification Evidence
Not run: this PR is intentionally draft/do-not-merge per task instructions. Local validation and CI were completed before handoff. Staging verification remains required before any future merge/readiness conversion.
UI Compliance Checklist (Required for UI changes)
.codex/tmp/playwright-screenshots/.End-to-End Verification (Required for multi-component changes)
Data Flow Trace
User task submit:
ProjectChatComposer/TaskSubmitFormpassskillIdtoapps/api/src/routes/tasks/submit.ts, which resolves viaapps/api/src/services/skills.ts:resolveSkillProfile, merges runtime assets inapps/api/src/services/profile-runtime-assets.ts, persiststasks.skill_id/tasks.skill_hint, and dispatches workspace runtime requirements.Trigger submit:
apps/api/src/services/trigger-submit.tsreads trigger skill metadata, resolves skill/profile/project layers, persists task skill metadata, and dispatches with merged runtime env/files.MCP/SAM dispatch:
apps/api/src/durable-objects/sam-session/tools/dispatch-task.tsandapps/api/src/routes/mcp/dispatch-tool.tsaccept optionalskillId, resolve the same merged config, and persist the skill metadata.Retry subtask:
apps/api/src/durable-objects/sam-session/tools/retry-subtask.tscarries the original task skill fields into the retried task and reuses resolved task settings.Untested Gaps
Full live staging verification was not run because this is a draft/do-not-merge PR. Automated local coverage includes API CRUD/runtime routes, resolver precedence, runtime env encryption, submit path source-contract coverage, trigger submit propagation, full
pnpm test, and local Playwright UI audits.Post-Mortem (Required for bug fix PRs)
N/A: feature implementation, not a production bug fix.
Specialist Review Evidence (Required for agent-authored PRs)
needs-human-reviewlabel added and merge deferred to humanExceptions (If any)
Agent Preflight (Required)
Classification
External References
N/A: implementation used repo-local product ideas, existing profile/runtime route patterns, schema conventions, and test patterns; no external API contract or third-party documentation was needed.
Codebase Impact Analysis
Affected paths include
apps/apimigrations/schema/routes/services/DO tools for skills and dispatch integration,apps/webSkills navigation/list/form/selectors and chat/task submit wiring, andpackages/sharedskill/resource/trigger types. The change crosses D1 persistence, API validation/auth, runtime asset encryption/merging, task dispatch paths, and UI.Documentation & Specs
N/A: no persistent user-facing docs were updated in this draft implementation. The source references are idea
01KT05WE0HRQMKTRK5ZM3ZPKB8and related idea IDs in the task request; PR evidence documents the implemented behavior and validation.Constitution & Risk Check
Checked additive migration safety, owned-project authorization, encrypted runtime secret handling, task/trigger skill metadata persistence, and no hardcoded resource defaults beyond existing configurable layer defaults. Key risks were inconsistent submit-path wiring and secret leakage; both are covered by focused tests and reused profile-runtime encryption/masking patterns.