Drop Felix references; harness stands as a platform on its own

Removes every Felix mention from public-facing surfaces so the framework
reads as a standalone agent platform rather than an extracted module.

User-visible changes:
- HTTP User-Agent on web_fetch / web_search: Felix/1.0 → harness/1.0
- bash tool path-substitution prefix: '[felix]' → '[harness]'
- On-disk paths: <workspace>/.felix/ → <workspace>/.harness/
  (todos.json + spill/ tree); tests updated in lockstep.
- OTel trace attributes: felix.trace_id / felix.total_ms /
  felix.phase_count → harness.* equivalents.

Doc-comment changes:
- Examples (lta-agent, data-agent) lose 'non-Felix consumer' framing.
- README drops the 'extracted from Felix' lede and the 'What was lifted
  from Felix' section, replaced with a 'Design' overview that points
  to developer.md.
- Runtime / tool / compaction doc comments rewritten so behaviour
  notes describe what the harness does without naming the prior origin.
- Test-fixture text 'you are felix' → 'you are an assistant'.

Verified: zero 'felix' (case-insensitive) in tracked .go / .md files.
All 16 packages build and pass tests.
This commit is contained in:
sausheong committed 2026-05-08 00:24:06 +08:00
1 parent 8ed38d7b66
commit 123a233cb7
22 files changed
+107 -85

No files matched your search

+3 -3
View File
@@ -48,9 +48,9 @@ func transcriptDelimiterSuffix() string {
// - Section 6 ("All user messages") is the load-bearing anti-drift
// mechanism. Without it, summarizers collapse multiple distinct user
// asks into a single sentence keyed off whichever topic came first,
// which causes the next turn to misframe the conversation (Felix bug
// post-mortem: model said "previous conversation covered Colima" when
// the most recent topic was Wasm/Extism).
// which causes the next turn to misframe the conversation — the
// resumed model says "previous conversation covered X" when the
// most recent topic was actually Y.
// - Section 9 ("Optional Next Step") demands verbatim quotes from the
// most recent messages so the resumed turn doesn't drift on task
// interpretation.
+4 -3
View File
@@ -13,9 +13,10 @@ import "github.com/sausheong/harness/session"
// that preserves K turns. Caller should refuse to compact rather than over-
// compacting.
//
// A user message is always a clean boundary by construction in Felix's
// runtime (user msg → assistant text → tool_call → tool_result → next user
// msg). Splitting before a user message therefore never orphans a tool pair.
// A user message is always a clean boundary by construction in the
// harness runtime (user msg → assistant text → tool_call → tool_result
// → next user msg). Splitting before a user message therefore never
// orphans a tool pair.
func Split(history []session.SessionEntry, K int) (toCompact, toPreserve []session.SessionEntry, ok bool) {
if K <= 0 || len(history) == 0 {
return nil, nil, false