Skip to content

docs: refresh README for v0.4–v0.6 features#53

Merged
scotthavird merged 1 commit into
mainfrom
claude/support-envelope-v1.2-Gzsge
May 16, 2026
Merged

docs: refresh README for v0.4–v0.6 features#53
scotthavird merged 1 commit into
mainfrom
claude/support-envelope-v1.2-Gzsge

Conversation

@scotthavird
Copy link
Copy Markdown
Contributor

Summary

Pure docs update. Four stale sections of the README brought into sync with what the CLI actually does after PRs #47#51 (auto-update, watch, full hook coverage for all 5 tools, Codex + Copilot support).

1. "Canonical Event Schema" → "Wire format"

The headline schema example in the README was a pre-v1.2 envelope shape (event_type, event_id, adapter_version) — exactly what we removed in #47's legacy-path cleanup. Replaced with the actual v1.2 envelope we ship today:

{
  "envelope_version": "1.2",
  "cli_version": "v0.5.0",
  "tool": "claude-code",
  "hook_event": "UserPromptSubmit",
  "captured_at": "...",
  "native_payload": { ... },
  "enrichment": {
    "git": { ... },
    "source": "github",
    "correlation": { "trace_id": "...", "span_id": "..." },
    "host": "...", "os": "darwin", "arch": "arm64"
  }
}

Added a field-by-field table and a clear "CLI is thin, adapters live server-side" framing.

2. Event Types table → dropped

The old prompt_submit / tool_pre / session_start enum was what the CLI used to emit before #47's cleanup. We now ship raw native event names (UserPromptSubmit, preToolUse, agentStop, etc.) and the canonical mapping is a server-side concern. Keeping it in the CLI README was actively misleading.

3. Project Structure tree refreshed

Added the cmd/ files that landed since the last refresh: upgrade.go, watch.go, insights.go, skills.go, skills_local.go, correlation.go, debug.go. Added the new internal/ packages: outbound/, updater/, correlation/.

4. Privacy & Security expanded

Added two bullets documenting the outbound mirror file (~/.config/promptconduit/outbound.ndjson, mode 0600, redaction rules, 64KB body cap, 50MB rotation) and the background self-upgrade behavior (once-per-24h unauthenticated GitHub releases check) including the opt-out paths.

Diff stats

+95 / -82 lines, README.md only. No code changes.

Test plan

  • go build ./... && go vet ./... && go test ./... clean (unchanged — no code touched)
  • Markdown sanity: fenced-block count even, table rows look right, all ## / ### headings render in TOC order

https://claude.ai/code/session_019CWBC2E8pQuShejfsKYrvp


Generated by Claude Code

Four stale sections caught up to current behavior:

1. Canonical Event Schema (now "Wire format")
   Replaced the old `event_type`/`event_id`/`adapter_version` example
   (pre-v1.2 envelope shape, removed when we cleaned up the legacy
   /v1/prompts/ingest-multipart and /v1/transcripts/sync paths in #47)
   with a real v1.2 envelope: envelope_version, cli_version, tool,
   hook_event, captured_at, native_payload, and enrichment (git +
   source + correlation + host/os/arch). Added a field-by-field table
   and a note that the CLI is intentionally thin — server-side
   adapters do all categorization.

2. Event Types table — dropped
   The old `prompt_submit` / `tool_pre` / `session_start` taxonomy was
   what the CLI used to emit before #47's cleanup. We now ship raw
   native event names (`UserPromptSubmit`, `preToolUse`, `agentStop`,
   etc.) — the canonical mapping is a server-side concern, not a CLI
   one, and listing it in the CLI README was both wrong and likely to
   drift. Removed.

3. Project Structure tree
   Added the cmd/ files that landed since the last refresh
   (upgrade.go, watch.go, insights.go, skills.go, skills_local.go,
   correlation.go, debug.go) and the new internal/ packages
   (outbound/, updater/, correlation/). Annotated the entries that
   are new so a fresh reader knows what they do.

4. Privacy & Security
   Added bullets describing the outbound mirror file at
   ~/.config/promptconduit/outbound.ndjson (mode 0600, redaction,
   64KB body cap, 50MB rotation) and the once-per-24h GitHub releases
   check that drives auto-update, including the opt-out paths
   (`--disable-auto-update=true`, `PROMPTCONDUIT_AUTO_UPDATE=0`).

Net diff: +95 / -82 lines, all in README.md. No code changes.

https://claude.ai/code/session_019CWBC2E8pQuShejfsKYrvp
@scotthavird scotthavird marked this pull request as ready for review May 16, 2026 14:01
@scotthavird scotthavird merged commit 66564f5 into main May 16, 2026
1 check passed
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.

2 participants