Skip to content

Commit 93d126a

Browse files
docs(architecture): refresh known bugs and deferred backlog
1 parent 7b466cd commit 93d126a

1 file changed

Lines changed: 32 additions & 35 deletions

File tree

contrib/ARCHITECTURE.md

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -112,48 +112,45 @@ Agent may write:
112112

113113
These files are execution protocol files, not user deliverables.
114114

115-
## 6) Known v0 Limits
115+
## 6) Known Bugs
116116

117-
1. Markdown body is untyped/unvalidated (no strict input/output schema).
118-
2. No standalone `plan` command.
119-
3. No MCP/tool integration schema yet.
120-
4. No multi-agent orchestration.
121-
5. No Claude provider adapter yet.
117+
### 6.1 Interrupted Runs Recorded as Failure
122118

123-
## 7) TODO (Next)
119+
Steps to reproduce:
124120

125-
## 7.1 Interrupted Session Semantics
121+
1. Start `cf apply -f <program.md>` in interactive mode.
122+
2. Interrupt with `Ctrl+C`.
123+
3. Run apply again and inspect the last-session preview/history.
126124

127-
Problem today:
125+
Expected:
128126

129-
- `Ctrl+C` is recorded as `failure`, which can later show `snapshot unavailable` in preview.
127+
- Interrupted runs are shown as `interrupted`/`canceled`.
130128

131-
Need:
129+
Actual:
132130

133-
1. introduce explicit interrupted/canceled session reason in session outcome/history
134-
2. preview should show `interrupted`/`canceled` instead of generic `failure` when applicable
135-
3. program diff fallback should use last successful snapshot when last session has no snapshot
136-
4. inject this context clearly to agent in next session prompt
131+
- Interrupted runs are recorded and shown as generic `failure`.
137132

138-
## 7.2 Changes/Diff Reliability
133+
## 7) Backlog (Out of Scope for now)
139134

140-
Need:
135+
These items are intentionally deferred. Each item describes desired product capability, not implementation.
141136

142-
1. make changed-file reporting consistent between normal mode and debug mode
143-
2. improve noise filtering for generated/build-cache files
144-
3. keep preview/apply/history change summaries aligned
145-
146-
## 7.3 Apply Contract Polish
147-
148-
Need:
149-
150-
1. tighten prompt contract so reruns focus on required deltas
151-
2. clarify when agent should rework vs verify vs no-op
152-
3. keep status semantics (`success`/`partial`/`failure`) explicit and consistent
153-
154-
## 7.4 Future Decisions (Out of Scope for v0)
155-
156-
1. MCP and broader tool integration model
157-
2. multi-agent orchestration model
158-
3. additional providers beyond Codex
159-
4. strict typed program schema for markdown body
137+
1. Program variables support
138+
Goal: allow programs to define reusable runtime inputs with clear behavior.
139+
2. Memory support
140+
Goal: support durable context across sessions with predictable usage rules.
141+
3. Plan support
142+
Goal: support planning as a first-class workflow, separate from execution.
143+
4. Interrupted/canceled session handling
144+
Goal: represent and communicate non-completed runs clearly to users.
145+
5. Changes/diff reliability and consistency
146+
Goal: for the same session, preview, apply output, debug output, and history should report the same changed-file set and line counts, with generated/noise files handled consistently.
147+
6. Agent-reported changes as single source of truth
148+
Goal: remove legacy local diff-based change reporting and use agent-reported change data consistently across apply, debug, and history.
149+
7. MCP and broader tool integration model
150+
Goal: support richer external tool and integration patterns.
151+
8. Multi-agent orchestration model
152+
Goal: support coordinated workflows that involve more than one agent.
153+
9. Additional providers beyond Codex
154+
Goal: support multiple model providers in a consistent user experience.
155+
10. Improved session storage and retrieval performance
156+
Goal: keep history/state operations fast and scalable as usage grows.

0 commit comments

Comments
 (0)