Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/o8d/route-templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"/api/command-center/snapshot",
"/api/cortex/ask",
"/api/cortex/ask/answer",
"/api/cortex/codebase-memory",
"/api/cortex/cross-repo-proposals",
"/api/cortex/diagnostics",
"/api/cortex/directives",
Expand Down
3 changes: 1 addition & 2 deletions docs/internals/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ Workers authenticate via `Authorization: Bearer cwk_*` per-request, not the pane
|---|---|---|
| POST | `/api/cortex/ask` | Full streaming Q&A pipeline (classifier → composer → SSE). |
| POST | `/api/cortex/ask/answer` | Non-streaming JSON sibling of `/ask` used by the `cortex_ask` MCP tool. |
| GET | `/api/cortex/codebase-memory` | Live state of the boot indexer (#741), feeds the Recall card pill. |
| GET | `/api/cortex/cross-repo-proposals` | List cross-repo directive proposal candidates. |
| POST | `/api/cortex/cross-repo-proposals` | Dismiss a cross-repo proposal. |
| GET | `/api/cortex/diagnostics` | Substrate eval summary (#749) — answers "is SQLite still fine?". |
Expand Down Expand Up @@ -433,7 +432,7 @@ device flow and every stateful panel route require the operator bearer.
| Method | Path | Purpose |
|---|---|---|
| GET | `/api/setup/claude-desktop` | Read current Claude config + report install status. |
| POST | `/api/setup/claude-desktop` | Merge o8 + codebase-memory MCP entries into Claude config. |
| POST | `/api/setup/claude-desktop` | Merge the o8 MCP entry into Claude config. |
| GET | `/api/setup/config` | Read `~/.o8/setup.json`. |
| POST | `/api/setup/config` | Write `~/.o8/setup.json`. |
| GET | `/api/setup/detect` | Detect installed tools (Codex, Claude, Gemini, opencode, embeddings, API keys). |
Expand Down
5 changes: 0 additions & 5 deletions docs/internals/next-threads-panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ note says project files are not wired. The current evidence Library therefore
cannot provide Claude-style input-file knowledge, upload replacement/versioning,
retrieval provenance or project-memory editing.

The separate [codebase-memory status route][codebase-memory] reports indexer
state and can kick its boot pass; it is not a project knowledge-file or memory
editing API. Do not treat that status chip as an inherited-context receipt.

No new endpoint is required for the initial Threads inventory and evidence
port. Full uploaded knowledge or shared project-memory editing needs a separate
server contract and review; stop at that boundary rather than implementing a
Expand Down Expand Up @@ -279,5 +275,4 @@ the behavior they add.
[exchange-route]: ../../src/app/api/agents/message/route.ts
[artifact-route]: ../../src/app/api/panel/threads/artifact/route.ts

[codebase-memory]: ../../src/app/api/cortex/codebase-memory/route.ts
[native-projects]: ../../native/o8-next/src/projects_model.rs
18 changes: 5 additions & 13 deletions docs/operations/o8d-a1-reads.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ No peer header grants local authority.
| `/api/panel/prs/[number]/timeline` | pull_requests | surfaces/pull_requests/model.rs | gate |
| `/api/review/last-turn` | diff | diff_ui_scope.rs | gate; `git worktree list`, `git --no-optional-locks status` and the committed diff run on the read-only child boundary (#5652), so the read takes no `.provider-keys.lock` and never rewrites a worktree index |
| `/api/tasks` | session | browser_panel/remote/client.rs | gate + panel |
| `/api/cortex/codebase-memory` | settings | settings_indexing.rs | gate |
| `/api/cortex/diagnostics` | settings | settings_indexing.rs | gate |
| `/api/orchestrator/packet-transcript` | sidebar | surfaces/sidebar/thread_list_client.rs | gate + panel; Codex discovery runs `sqlite3 -readonly` on the read-only child boundary (#5652), so the read takes no `.provider-keys.lock` |
| `/api/orchestrator/archive` | session | composer/command_client.rs | gate + panel; reads the repository registry, saved threads and compaction archives |
Expand Down Expand Up @@ -393,17 +392,12 @@ registry add/remove/repoint recomputes. The startup hook is called by
The default project-membership path uses shared database bootstrap and reads
project/membership rows without inserting any.

`/api/cortex/codebase-memory` and `/api/cortex/diagnostics` are registered
for Settings using the production GETs. The design uses a persisted state bridge:
Next remains the sole boot-indexer owner through `src/lib/startup/next.ts` and
`startStatusBootHooks`. The existing one-shot guard is unchanged. The native
`/api/cortex/diagnostics` is registered for Settings using the production GET.
The design uses a persisted state bridge: Next remains the sole diagnostics
owner through `src/lib/startup/next.ts` and `startStatusBootHooks`. The native
HTTP entry point marks its process as a Cortex reader before loading any handler. If the existing
bootstrap POST loads Next startup hooks there, both the indexer and probe
publisher refuse ownership. Every boot or repo transition atomically replaces `codebase-memory-live.json`, including
pending, indexing, cached, ready, deferred, skipped and error entries.
Successful HEAD receipts remain in `codebase-memory-state.json`. Neither GET
imports or starts the indexer, and the native process has no indexer trigger.
A cold read returns the empty state without creating a directory or file.
bootstrap POST loads Next startup hooks there, the probe publisher refuses
ownership. A cold read returns the empty state without creating a directory or file.

Timing producers persist each sample in `recall-metrics.db`. An immediate SQLite
transaction owns each append, legacy import and FIFO eviction; existing Next
Expand Down Expand Up @@ -469,8 +463,6 @@ Changed-file ESLint and `git diff --check` also pass.

Owner source files:

- Codebase-memory: `src/app/api/cortex/codebase-memory/route.ts`,
`src/lib/codebase-memory/indexer.ts`, `src/lib/codebase-memory/live-state.ts`.
- Diagnostics: `src/app/api/cortex/diagnostics/route.ts`,
`src/lib/cortex/diagnostics.ts`, `src/lib/cortex/diagnostics-state.ts`,
`src/lib/runtime/process-cwd-snapshot.ts`, `src/lib/panel/status-boot.ts`.
Expand Down
11 changes: 0 additions & 11 deletions native/o8-next/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ pub(crate) struct Settings {
pub painted: Rc<Cell<u64>>,
scroll: gpui::ScrollHandle,
navigation: navigation::State,
indexing: indexing::State,
storage: storage::State,
diagnostics: diagnostics::State,
connections: connections::State,
Expand Down Expand Up @@ -239,7 +238,6 @@ impl Settings {
painted: Rc::new(Cell::new(u64::MAX)),
scroll: gpui::ScrollHandle::new(),
navigation: navigation::State::default(),
indexing: indexing::State::default(),
storage: storage::State::default(),
diagnostics: diagnostics::State::default(),
connections: connections::State::default(),
Expand Down Expand Up @@ -462,9 +460,6 @@ impl Settings {
self.scroll
.set_offset(gpui::point(gpui::px(0.), gpui::px(0.)));
self.load(false, cx);
if section == "indexing" {
self.load_indexing_counts(true, cx);
}
self.load_panel(false, cx);
}
fn load_panel(&mut self, force: bool, cx: &mut Context<Self>) {
Expand All @@ -480,9 +475,6 @@ impl Settings {
if self.section == "storage" {
self.load_storage(force, cx);
}
if self.section == "indexing" {
self.load_indexing(force, cx);
}
if force && self.section == "voice" && self.voice_panel == VoicePanel::History {
if let Some(history) = &self.voice_history {
history.update(cx, |history, cx| history.load(cx));
Expand Down Expand Up @@ -759,9 +751,6 @@ mod diagnostics;
#[path = "settings_storage.rs"]
mod storage;

#[path = "settings_indexing.rs"]
mod indexing;

#[path = "settings_navigation.rs"]
mod navigation;

Expand Down
1 change: 0 additions & 1 deletion native/o8-next/src/settings_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ pub const SECTIONS: &[(&str, &str)] = &[
("keys", "API keys"),
("storage", "Worktrees & storage"),
("git", "Git & PRs"),
("indexing", "Indexing"),
("mcp", "MCP"),
("mobile", "Mobile"),
("machines", "Machines"),
Expand Down
Loading
Loading