Repository navigation
Conversation
Exploration deliverable for petertzy#360, in the style of the existing AIWorkPanelFeasibilityStudy.md. Zero code/config/dependency changes. Covers all seven suggested acceptance outputs: core-vs-extension boundary with decision rule, layered capability architecture plus the Work-panel capability model and invocation contract, deny-by-default permissions/security model, enablement lifecycle (folder-drop only, no marketplace), explicit built-in/out-of-scope lists, a Local Model Bridge PoC sketch gated on petertzy#357, and a feasibility verdict of "technically feasible, organizationally gated". Every factual claim was verified against current sources before writing: the /api/ai/work contract and stale-result guard, the pre-existing project primitives (find_note_files, SQLite FTS5 indexing), the unsandboxed files-router surface, provider/key-storage infrastructure, and the AIPanel tab shell.
This branch has not been deployed
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.
Fixes nothing code-wise; contributes to #360 (exploration deliverable).
What
Adds
docs/ProjectExtensionsFeasibilityStudy.md— the exploration/architecture study requested by #360, in the same style as the existingdocs/AIWorkPanelFeasibilityStudy.md. Docs-only, zero code/config/dependency changes.Coverage — all seven suggested acceptance outputs
Grounded in the actual codebase
Every factual claim was verified against current sources before writing:
POST /api/ai/worksingle-document contract + stale-result guard + undoable apply (backend/routers/ai.py,frontend/src/hooks/useAIActions.ts)find_note_files()+ SQLite FTS5 indexing inbackend/knowledge_logic.pybackend/routers/files.pyserves absolute-path read/write with no sandbox — acceptable for user-initiated calls today, but must gain project clamping + review mediation the moment a model or extension can drive it (§6.3)chat / work / translate / settings) as the capability rendererSequencing (per the issue's Important Considerations)
The study is explicitly gated behind #357 (project-wide AI workflows, currently assigned to @petertzy): §10 recommends no extension code be merged until #357 ships, a project-root concept exists, and one concrete third-party need is identified. Until then this document is the deliverable.
Verification
AIWorkPanelFeasibilityStudy.mdprecedent (header block, numbered sections, tables, verdict)