feat(framework): resolve resources shipped with installed plugins
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with plugins/aidd-context/skills/02-project-memory/actions/04-sync.md, where the relative hooks/update_memory.js call assumes the consumer working directory, then read Draft PR #979's standalone rule writer for how it resolves a script beside the loaded skill. The maintainer has not chosen the architectural boundary (CLI, plugin metadata, or host integration), so agree that first. Done means a documented resolution contract with tests for supported installation modes and the failure cases listed in the acceptance criteria.
索引モデルが issue の本文から書いたものです。
説明
Problem to solve
A skill cannot reliably locate a resource shipped with its plugin across installation modes and hosts.
This surfaced in project-memory sync: the skill invoked node hooks/update_memory.js --check from the consumer project, although the script belongs to the installed plugin. This relative invocation incorrectly assumes that the plugin's hook is available under the consumer project's working directory. Marketplace caches, managed installs, and flat layouts can place plugin files elsewhere.
Draft PR #992 handles the immediate workflow with explicit manual sync instructions. Those instructions do not claim the executable hook’s protections against hard links or path substitution. A general resource lookup contract remains useful to other skills and plugin resources.
Proposed solution
Define a documented way for a skill or other plugin component to request a plugin-owned resource by plugin identity and source-relative path. It should return a verified installed resource or an explicit unsupported, missing, or ambiguous result.
Leave the architectural boundary open for maintainer input: the contract may involve the CLI, plugin metadata, host integration, or a combination. A CLI command is one option, but it may not cover host-managed installs where the CLI or its provenance is unavailable.
Additional context
Acceptance criteria
- Document the supported installation modes and how plugin-owned resources are located in each.
- Require resource resolution only for installation modes where trustworthy installation provenance or origin can be established. Modes without that evidence must fail explicitly rather than guess.
- For managed installs, use recorded source-to-installed-path provenance where it exists; do not reconstruct historical destinations from current profile settings.
- Resolve resources when invoked from a consumer project outside the framework source tree. Never treat the consumer project root as the plugin root.
- Reject absolute paths, traversal, or symlink resolution that escapes the selected plugin resource boundary.
- Do not execute the target or write to the project as a side effect of resolving it.
- Define explicit behavior for missing resources, incomplete or stale provenance, absent CLI, standalone skills, multiple installed versions, and shared destinations. Ambiguous contexts must fail explicitly rather than guess.
- Cover supported host and installation combinations, plus failure and boundary cases, with reproducible tests.
- Keep resource location distinct from execution-time filesystem safety; resolution alone must not weaken existing hook protections or claim equivalent guarantees.
Prior art in this repo
04-sync.md— the workflow where the working-directory assumption surfaced; Draft PR #992 replaces the immediate invocation.- #914 — Kilo-native generation, where the issue surfaced; this proposal is a separate framework capability.
- #698 and PR #706 — hook delivery and host-specific plugin-root tokens. These address hook installation and hook command paths, not a general way for a skill to locate plugin resources.
- #859 — global installation and distribution concerns. It is closed; its maintainer conclusion assigns host-specific installation surfaces to their owning integrations. It does not define a resource lookup contract.
- PR #778 — documents the boundary between event hooks and capabilities invoked by a person or skill; it does not resolve installed resource paths.
- Draft PR #979 — its standalone rule writer resolves its own script beside the loaded skill. That is relevant precedent, but not a general contract across resource types, installation origins, and versions.
Out of scope
- Expanding Kilo generation in #914 or changing Draft PR #992.
- Adding another rule writer alongside Draft PR #979.
- Hard-coding host-specific directories into generic skills.
- Promising support for every host-managed marketplace without evidence.
- Treating path resolution as proof that later script execution is race-safe.
- Requiring a full architecture redesign before the supported cases are established.
- 主要言語
- TypeScript
- スター
- 481
- フォーク
- 45
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 91
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ai-driven-dev/framework のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ai-driven-dev/framework#1311 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
ai-driven-dev/framework#1244 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ai-driven-dev/framework#1197 ·
メンテナーはふだん 1 日以内に返信
-
refactor(aidd-context): apply the new skill template to learn対応中かも @blafourcade が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ai-driven-dev/framework#1186 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ai-driven-dev/framework#1163 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ai-driven-dev/framework の issue をすべて見る
似ている issue
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keys対応中かも @pcbeingused333 が今日担当しました。 オープンBug db: d1-sqlite Payload OSS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
payloadcms/payload#19766 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
device-management-toolkit/sample-web-ui#3711 ·
メンテナーはふだん 1 日以内に返信
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elastic/kibana#306401 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
agentes-chat/agentes-chat#927 ·
メンテナーはふだん 1 日以内に返信
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tab対応中かも @seenimohamed が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ardia-browser/ardia#2769 ·
メンテナーはふだん 1 日以内に返信