From ad66650369f239eac255cfc278b7539310f01f99 Mon Sep 17 00:00:00 2001 From: Hare Date: Thu, 16 Jul 2026 07:40:32 +0900 Subject: [PATCH] fix: remove stale knowledge guidance --- crates/ticket/src/tool.rs | 4 ++-- crates/tui/src/input.rs | 2 +- docs/design/overview.md | 2 +- docs/report/test-validity-20260612/yoi.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ticket/src/tool.rs b/crates/ticket/src/tool.rs index 2d6d1b7c..c25540f3 100644 --- a/crates/ticket/src/tool.rs +++ b/crates/ticket/src/tool.rs @@ -154,7 +154,7 @@ fn base_tool_description(name: &str) -> &'static str { /// Build the model-visible Ticket tool description for a configured Ticket backend. /// /// `record_language` is the durable Ticket record/tool-body language, distinct from -/// worker response language and Memory/Knowledge language. Keeping this on the tool +/// worker response language and Memory language. Keeping this on the tool /// surface ensures every Ticket-capable Worker sees the policy without hidden context /// injection or role-launch-only prose. pub fn ticket_tool_description(name: &str, record_language: Option<&str>) -> String { @@ -162,7 +162,7 @@ pub fn ticket_tool_description(name: &str, record_language: Option<&str>) -> Str if let Some(language) = record_language.filter(|language| !language.trim().is_empty()) { description.push_str("\n\nTicket record language: "); description.push_str(language.trim()); - description.push_str(". Use this language for durable Ticket record and Ticket tool body text, including Ticket item bodies, thread comments/plans/decisions/implementation reports, reviews, resolutions, intake summaries, and orchestration plan notes. This policy is distinct from worker.language for normal prose and memory.language for Memory/Knowledge. Preserve protocol literals, file paths, commands, logs, identifiers, and quoted external text when translation would reduce fidelity."); + description.push_str(". Use this language for durable Ticket record and Ticket tool body text, including Ticket item bodies, thread comments/plans/decisions/implementation reports, reviews, resolutions, intake summaries, and orchestration plan notes. This policy is distinct from worker.language for normal prose and memory.language for Memory. Preserve protocol literals, file paths, commands, logs, identifiers, and quoted external text when translation would reduce fidelity."); } description } diff --git a/crates/tui/src/input.rs b/crates/tui/src/input.rs index af498f83..1d059a1b 100644 --- a/crates/tui/src/input.rs +++ b/crates/tui/src/input.rs @@ -235,7 +235,7 @@ impl InputBuffer { } /// Replace `atoms[start..self.cursor]` (the in-flight `@` / - /// `#` token) with the corresponding chip atom + /// active `@` file token) with the corresponding chip atom /// and place the cursor right after the chip. Used by the completion /// confirm path. pub fn replace_with_file_ref(&mut self, start: usize, path: String) { diff --git a/docs/design/overview.md b/docs/design/overview.md index 78e3f6b2..3902dc9a 100644 --- a/docs/design/overview.md +++ b/docs/design/overview.md @@ -15,7 +15,7 @@ That rule shapes the crate split. The runtime can restart, attach, compact, or d - `client` contains reusable one-shot socket/runtime-command mechanics so lower crates do not depend on the product CLI. - `manifest` resolves Profiles, Manifests, model/provider references, scopes, prompts, and tool permission policy into a runtime contract. - `tools` implements built-in tools with bounded output and policy-aware execution. -- `memory` owns generated memory, Knowledge records, linting, staging, and audit observations. +- `memory` owns generated memory summary/decision/request records, linting, staging, and audit observations. - `workspace-server` is the local Workspace control-plane seam. It can project Tickets, Workers, lifecycle, usage, and orchestration events, but browser/API operations must stay on opaque backend identities instead of raw local paths, sockets, Worker names, or session files. - `tui` is a UI over Worker authority; it should not invent durable state. diff --git a/docs/report/test-validity-20260612/yoi.md b/docs/report/test-validity-20260612/yoi.md index c43b969f..c28a27bc 100644 --- a/docs/report/test-validity-20260612/yoi.md +++ b/docs/report/test-validity-20260612/yoi.md @@ -97,7 +97,7 @@ - `show` における path traversal / invalid id rejection - paused/done/archived/all に対する list filtering -- `memory_lint.rs` には妥当な focused tests があるが、decisions と Knowledge records を明示的にはカバーしておらず、symlink/directory の特殊性、読めない file、summary fragments を超えた stdout human-output details もカバーしていない。 +- `memory_lint.rs` には妥当な focused tests があるが、decisions を明示的にはカバーしておらず、symlink/directory の特殊性、読めない file、summary fragments を超えた stdout human-output details もカバーしていない。 - `session_cli.rs` は意図的に薄いが、ほとんどは最小 fixture を通じて delegated analytics output shape を検証している。より広い analytics correctness は `session-analytics` に属する。`yoi` crate には、unknown subcommands/options と duplicate path handling の test がまだない。