Skip to content

profile-distribution - #13

Merged
enekos merged 4 commits into
masterfrom
feat/profile-distribution
Jun 15, 2026
Merged

enekos merged 4 commits into
masterfrom
feat/profile-distribution

Conversation

@enekos

@enekos enekos commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Profile distributions feature plus the plumbing that accumulated on this branch.

Commits

  • feat(profile): profile distributions v0 — install / update / info / list
  • dogfood: bench_agent recipe + fix hardcoded path
  • feat(httptracer) — stdlib TracingTransport wrapping any http.Client, emits structured slog (dns/connect/tls/ttfb/total + reused-conn). Opt-in via MAIRU_HTTPTRACE=1. Wired into the Kimi client, OpenAI embedder, and ctxclient.
  • feat(pii-redact) — SQL value-walker (internal/walkers/sql.go) + standalone cmd/pii-redact CLI + config wiring; tuned the embedded gcp-logging.json profile to fix the ID leak/overredact behaviour.
  • chore(profile): drop unused profile.Exists — dead helper introduced by v0.

Notes

  • Branch mixes three concerns (profile distributions, httptracer, pii-redact) — that's the reality of how the work landed; happy to split further if you'd rather.
  • go build/go vet/go test ./... green on the mairu module; pii-redact module builds + tests clean.
  • ⚠️ internal/acpbridge/TestSessionEchoRoundTrip is flaky under the full parallel suite (timing; passes in isolation) — pre-existing, not from this branch.

enekos and others added 4 commits June 1, 2026 10:33
Two changes that ship together because the recipe wraps the .sh and
inherited its bug:

1) Fix bench_agent.sh: it had `cd /Users/enekosarasola/mairu/mairu` —
   an absolute path that only exists on one specific machine. Replaced
   with `cd "$(dirname "${BASH_SOURCE[0]}")/mairu"` so the script works
   from any checkout of the repo.

2) Add tartalofile.tt with a `bench_agent` recipe that thin-wraps the
   (now-portable) .sh.

The awk parsing of `go test -bench` output stays in shell.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
TracingTransport wraps any http.Client and emits structured slog records
(dns/connect/tls/ttfb/total + reused-conn flag). Wired into the Kimi client,
OpenAI embedder, and ctxclient so every LLM/embedding/context HTTP call is
traceable without an APM agent.
… profile

Adds internal/walkers/sql.go to redact PII inside SQL statement values,
a standalone cmd/pii-redact CLI entrypoint, and config wiring. Updates the
embedded gcp-logging.json profile to fix the ID leak/overredact behaviour.
@enekos
enekos merged commit 292f5cf into master Jun 15, 2026
1 check failed
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