Repository navigation
feat(spec-002): ACP execution spine, real portable-pty runner, topological wave DAG & FTS5 memory - #25
Open
trac41799 wants to merge 20 commits into
Open
feat(spec-002): ACP execution spine, real portable-pty runner, topological wave DAG & FTS5 memory#25trac41799 wants to merge 20 commits into
trac41799 wants to merge 20 commits into
Conversation
…roject context into guidelines
…nd BuildApp selector (M2)
…m spec parser, and orchestrator UI wiring
…ace UI consolidation
…board tests for R601
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… and polish KG Explorer & Runner dropdown
…doffs, Route, and Playbooks (UX-08..UX-11)
…polish handoff/router UAT flows
This branch was successfully 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.
Summary
Implements Spec 002 (
002-acp-execution-spine) across Milestones 1–4 using SDD-BDD-TDD and independent adversarial review:spawn_agentIPC payload insrc/stores/agentStore.ts(IPC.spawnAgentwith{ agentId, projectPath, command, args, envVars }) and passes activecurrentProject.pathinAgentPanel.tsx/Runner.tsx.src-tauri/src/pty.rsto allocate realportable-pty(0.8) 120×36xterm-256colorpseudo-terminals (WindowsConPTY/ Unixopenpty) with.cmd/.batshim support,resize_pty_cmd,drain_output, child reaping onkill_process, andoutput_callback/status_callbackwired toagent_events.rsinlib.rs.PtyTerminal.tsxto subscribe toagent-output, forwardterminal.onDatatowriteToAgent, and sync dimensions viaResizeObserver→IPC.resizePty.AGENT_CONFIGSinRunner.tsxand wiresLoad Profile,+ Newpreset,Analyze, andDocs.AcpAgentAdapter(src-tauri/src/agent_adapters/acp.rs) over newline-delimited JSON-RPC 2.0stdio(initialize→session/new→session/prompt,session/cancelonkill(),session/updatetext & cumulativesession_cost(),-32601for unknown methods).resolve_in_worktree+canonicalize_with_missing_tail) onfs/read_text_file,fs/write_text_file, andsession/request_permission.pi(pi-acp),opencode-acp(opencode acp),gemini(gemini --acp),claude(@agentclientprotocol/claude-agent-acp), andcodex(@agentclientprotocol/codex-acp) inAdapterRegistry::new_with_dbwith Vault environment injection, exposed inBuildApp.tsxandOrchestrate.tsx.HANDOFF_<ref>.mdon clean ACP turn completion when missing.validate_wave_plan) andget_wave_plans(get_wave_plans_cmd) insrc-tauri/src/orchestrator.rs.wave_executor.rs(execute_topological_waves_with_adapters) to supervise, finalize, and merge tierkworktrees intobase_branchbefore spawning tierk+1.link_shared_dependenciesinsrc-tauri/src/worktree.rscreating anode_modulesjunction (Windows) / symlink (Unix).parse_spec_or_promptinsrc-tauri/src/spec_parser.rssupporting both## Phase Nplans and freeform markdown PRDs/prompts.src/pages/Orchestrate.tsx.src-tauri/src/memory.rs(rusqlite::params!/params_from_iter), eliminating SQL injection and single-quote crashes.023_memory_fts5.sql(memory_facts_fts+ sync triggers) and updatesmemory::hybrid_searchto rank via FTS5bm25().guideline_spawn::append_project_context_to_guidelineintowave_executor.rsto inject project memory facts and stack anti-pattern warnings into.acc/GUIDELINE.md.Sidebar.tsxinto 4 core workflow groups (Workspace,Knowledge & Assets,Review & Outcomes,Settings) and gates experimental Bagua/Leiden controls behindsettingsStore.experimentalFeatures(defaultfalse).Gate Results
cargo +stable-x86_64-pc-windows-msvc test→258 passed; 0 failed; 3 ignored(lib) +42 passed; 0 failed(integration_tests)npm test -- --run→36/36 files passed, 347/347 tests passed(ipc-contract.test.ts5/5)npx tsc --noEmit→0 errorsnpm run lint→0 errors, 13 warningspython -m pytest local-daemon/tests/test_router.py→28 passed in 0.12sAdversarial Review Verdict (
origin/main...HEAD)Verdict:
clean-with-nits(46 files changed, +5413 / -397). Transparently documented non-blocking nits:acp.rs:282passes"mcpServers": []insession/newrather than loading active project MCP configs.acp.rs:803-816validate_permission_paramschecks standard path/command keys (path,paths,file_path,target_path,cwd,dir,uri,command,cmd).Orchestrate.tsxexposes Execute Wave Plan + Verify & Finalize without a dedicated mid-wave Cancel button yet.assets.rsload_vault_env_varsreads the existingsecrets_vault.encrypted_valuecolumn layout.