Skip to content

Implementation guide: derive unfinished-loops query from recent conversation topics - #107

Draft
Dithilli wants to merge 3 commits into
mainfrom
issue-73-static-loops-query
Draft

Implementation guide: derive unfinished-loops query from recent conversation topics#107
Dithilli wants to merge 3 commits into
mainfrom
issue-73-static-loops-query

Conversation

@Dithilli

@Dithilli Dithilli commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Detailed implementation guide for #73. See docs/plans/issue-73-static-loops-query.md — appends recent conversation titles to the static intent phrase so the loops query adapts per-session, with a documented (out of scope) alternative for explicit loop tagging.

Ref #73 — planning/design doc, not the implementation.

Dithilli added a commit that referenced this pull request Jul 13, 2026
… 4, PR #87)

Phase 0 of proposal 04, reconciled to post-0.19.0 main. Read-only audit of
the startup-orientation loops block:

- scripts/audit-loops.ts: owner-run live runner that calls the REAL
  gatherOrientation (extracted in #111) for a byte-identical as-injected
  block, plus the hook's exact underlying client.search call for per-result
  diagnostics; deterministic JSONL for a diffable daily ledger; --simulate
  a1,a2,dynamic,after30,after60 compares proposal-04 candidates and PR #107's
  dynamic-query shape side by side without touching production behavior.
- lib/loops-audit.ts + lib/loops-audit.test.ts: pure parsing/formatting/
  summary helpers, hermetically tested in npm test (the live layer never is),
  mirroring The Ruler's scripts/eval-retrieval.ts + lib/eval-matchers.ts split.
- docs/loops-audit-rubric.md: judging rubric, metrics, decision rule with
  remedy tiers (tune static string → #107 dynamic query → explicit tagging),
  and the two-week owner workflow.
- Content in output is opt-in via HYPERSPELL_AUDIT_CONTENT=1 with
  delete-after-window, per the HYPERSPELL_SCORE_LOG precedent; the ledger
  directory is gitignored.

Zero production change: gatherOrientation, the handler, and the default
loopsQuery are untouched; all existing tests pass unmodified.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016M7SehQ6Ysh7Cvs2oEYgcG
Dithilli added a commit that referenced this pull request Jul 13, 2026
… 4, PR #87)

Phase 0 of proposal 04, reconciled to post-0.19.0 main. Read-only audit of
the startup-orientation loops block:

- scripts/audit-loops.ts: owner-run live runner that calls the REAL
  gatherOrientation (extracted in #111) for a byte-identical as-injected
  block, plus the hook's exact underlying client.search call for per-result
  diagnostics; deterministic JSONL for a diffable daily ledger; --simulate
  a1,a2,dynamic,after30,after60 compares proposal-04 candidates and PR #107's
  dynamic-query shape side by side without touching production behavior.
- lib/loops-audit.ts + lib/loops-audit.test.ts: pure parsing/formatting/
  summary helpers, hermetically tested in npm test (the live layer never is),
  mirroring The Ruler's scripts/eval-retrieval.ts + lib/eval-matchers.ts split.
- docs/loops-audit-rubric.md: judging rubric, metrics, decision rule with
  remedy tiers (tune static string → #107 dynamic query → explicit tagging),
  and the two-week owner workflow.
- Content in output is opt-in via HYPERSPELL_AUDIT_CONTENT=1 with
  delete-after-window, per the HYPERSPELL_SCORE_LOG precedent; the ledger
  directory is gitignored.

Zero production change: gatherOrientation, the handler, and the default
loopsQuery are untouched; all existing tests pass unmodified.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016M7SehQ6Ysh7Cvs2oEYgcG
Dithilli added a commit that referenced this pull request Jul 13, 2026
…udit-first (#87)

* docs(proposal): startup-orientation loops tuning (idea #4 from #66)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* feat(audit): unfinished-loops audit tooling — Loose Threads (#66 idea 4, PR #87)

Phase 0 of proposal 04, reconciled to post-0.19.0 main. Read-only audit of
the startup-orientation loops block:

- scripts/audit-loops.ts: owner-run live runner that calls the REAL
  gatherOrientation (extracted in #111) for a byte-identical as-injected
  block, plus the hook's exact underlying client.search call for per-result
  diagnostics; deterministic JSONL for a diffable daily ledger; --simulate
  a1,a2,dynamic,after30,after60 compares proposal-04 candidates and PR #107's
  dynamic-query shape side by side without touching production behavior.
- lib/loops-audit.ts + lib/loops-audit.test.ts: pure parsing/formatting/
  summary helpers, hermetically tested in npm test (the live layer never is),
  mirroring The Ruler's scripts/eval-retrieval.ts + lib/eval-matchers.ts split.
- docs/loops-audit-rubric.md: judging rubric, metrics, decision rule with
  remedy tiers (tune static string → #107 dynamic query → explicit tagging),
  and the two-week owner workflow.
- Content in output is opt-in via HYPERSPELL_AUDIT_CONTENT=1 with
  delete-after-window, per the HYPERSPELL_SCORE_LOG precedent; the ledger
  directory is gitignored.

Zero production change: gatherOrientation, the handler, and the default
loopsQuery are untouched; all existing tests pass unmodified.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016M7SehQ6Ysh7Cvs2oEYgcG

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant