Skip to content

Release v0.1.3 - #10

Merged
anilmurty merged 1 commit into
mainfrom
release-v0.1.3
Apr 7, 2026
Merged

anilmurty merged 1 commit into
mainfrom
release-v0.1.3

Conversation

@anilmurty

Copy link
Copy Markdown
Contributor

Summary

Bump version to 0.1.3 with changelog for web UI and LiteLLM integration.

Added

  • Local web UI served by ocw serve (Status, Traces with span waterfall, Cost, Alerts, Drift)
  • GET /api/v1/status endpoint
  • Drift endpoint lists all agents when agent_id omitted
  • LiteLLM provider integration

After merge

Create a GitHub release with tag v0.1.3 to trigger PyPI publish.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@anilmurty
anilmurty merged commit fcb2dc2 into main Apr 7, 2026
4 checks passed
@anilmurty
anilmurty deleted the release-v0.1.3 branch April 7, 2026 22:41
anilmurty added a commit that referenced this pull request Jun 19, 2026
…#10,#13)

Smoke-test playbook (tests/manual-new-release-tests.md):

- #3 (and #8/#9/#11/#12/#14/#16 — same root cause): code blocks are now
  command-only; the inline "# comments" and "# [ ]" checklists that the markdown
  copy button was pulling into copied commands moved to prose / "- [ ]" lists
  around each block. Added a note explaining the convention.
- #10: corrected the Section 4 trim expectation — with [capture] prompts=false
  (default), trim checks the capture prereq first and prints the capture hint,
  NOT the tokenjam[bloat] install hint (only reachable once capture is on).
- #13: export file is "claude-code-<date>.jsonc", not ".json".

Doc-only; no code changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
anilmurty added a commit that referenced this pull request Jun 19, 2026
docs: smoke-test playbook — command-only blocks + trim/jsonc fixes (#3, #10, #13)
anilmurty pushed a commit that referenced this pull request Jul 2, 2026
The Claude Code backfill ran one existence-check SELECT plus one INSERT per
span in `_insert_session_idempotent` — ~2 DuckDB round-trips per span, so a
large history (~120k spans) paid ~240k statements (~100s). #13 bounded only
the quickstart first-run path; the full `tj backfill claude-code` / daemon
path still paid the full per-span cost.

Replace the per-span loop with a bulk path that processes a whole session in
a BOUNDED number of statements regardless of span count:

- Partition new-vs-existing span_ids in ONE chunked `WHERE span_id IN (...)`
  query (`_existing_span_ids`) instead of N existence SELECTs.
- Bulk-insert the new spans in a single `executemany` (`_SPAN_INSERT_SQL` +
  `_span_insert_params`, kept in lock-step with `DuckDBBackend.insert_span`).
- On `--reingest`, batch-load the existing rows' attributes in ONE chunked
  query (`_load_attrs_bulk`), compute the per-key attribute merge in Python,
  then apply the updates in a single `executemany`.

The #10 idempotency + reingest contract is preserved exactly: new spans
insert; existing spans without `--reingest` are skipped untouched; existing
spans with `--reingest` get `sub_agent_id` updated and `attributes` per-key
merged (overlay `{**stored, **parsed}`, parsed wins, never wipes a stored
key). The no-`conn` fallback path is unchanged. Drops the now-unused
single-span `_load_attrs` helper.

Tests: all existing #3/#10/#13 backfill tests pass unchanged. Adds four #15
tests — bulk insert lands every new span; existing spans are skipped without
`--reingest`; `--reingest` still merges attributes (overlay, no wipe) +
updates sub_agent_id; and a counting-connection test asserting a 400-span
session inserts in a BOUNDED number of statements (well under N execute()
calls, via executemany) rather than ~2 per span.

Co-Authored-By: Claude <[email protected]>
(cherry picked from commit 6f94fe0)
anilmurty pushed a commit that referenced this pull request Jul 2, 2026
Enabling [capture] after a Claude Code session is already ingested never
landed message content / tool_input on the existing rows: the idempotent
INSERT skips on span_id conflict, and the --reingest path updated only
sub_agent_id, leaving the attributes column untouched. So #4's
recurring-inclusion detection (which reads that content) only worked
against a fresh DB.

The --reingest UPDATE now also overlays the freshly-parsed span's
attributes over the stored ones (parsed wins per key) via a small
_merge_attributes helper. This ADDS the content keys
(gen_ai.prompt.content / completion.content / tool.input) without
discarding any keys the stored row already carried (e.g. from live
ingest). Capture-off reingest stays a no-op — the parsed attributes are
just {"source": ...}, which the stored row already has — so it never
wipes content a prior capture-on backfill stored.

Two tests added: (1) ingest with capture OFF, enable capture, re-run with
--reingest -> existing spans now carry content/tool_input, no fresh DB,
no new rows; (2) a capture-off --reingest does not delete previously
stored content.

Co-Authored-By: Claude <[email protected]>
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