Skip to content

Two workflows the toolkit had opinions about and no words for - #96

Merged
blakebauman merged 1 commit into
mainfrom
feat/ship-and-observability-skills
Aug 26, 2026
Merged

blakebauman merged 1 commit into
mainfrom
feat/ship-and-observability-skills

Conversation

@blakebauman

Copy link
Copy Markdown
Member

Follows #95. Two skills, and one correction to CONTRIBUTING.

/preflight ends at "ready to commit" and /watch-ci begins after the push. Between them sits the step all thirteen of the last PRs went through — branch, title, the body a reviewer actually reads — and nothing described it. Separately, observability carries the same lockstep discipline as the config schema and had neither a hook nor a skill until #95 added the hook, so adding a metric failed a test whose existence was not discoverable from the edit.

/ship

Written from walking #95 by hand rather than from first principles, which is where most of it came from:

  • Branch names keep the type/ prefix the titles dropped. feat/downstream-keepalive with the title A retry answering an upstream's question arrived looking like a first try. The branch classifies; the title explains. Not obvious from either one alone.
  • The title convention, which is the genuinely unguessable part and is the one thing here I could not settle from the repo — see below.
  • The commit body and the PR body are different documents. The commit body is the rationale (git log 41c5757 is the model, closing on what the work surfaced). The PR body is written for a reviewer, and the movement that earns the format is "The part that needs review" — where the author says what they are least sure of. The gateway can keep its own streams alive, at a price worth stating #94 opens that section with "three consequences, two of which I initially got wrong," then measures all three.
  • Answer the template checklist, don't tick it. "Proxy-path changes: none" is an answer; a checked box on a change with no proxy-path diff is noise.

/observability

The pack lockstep in both directions, plus two traps found by reading observability_pack_test.go rather than the code it tests:

  • declaredMetrics extracts quoted string literals from metrics.go only. A name built by concatenation, or declared in another file, is invisible to the check — it passes green while shipping a metric nothing watches. Worth knowing before trusting the test as a backstop.
  • Pack references match after _bucket/_sum/_count is stripped, so querying fold_request_duration_seconds_bucket is fine; the base name is what must be declared.

It also states the consequence of the v1 freeze that catches people: it covers metric names and label sets, so adding a label to an existing metric is a break while a new name is additive. That is why the tenant series are separate metrics rather than a tenant label on fold_requests_total — the reasoning is in metrics.go, and now in a place someone looks before writing the label.

Spans and audit fields get the same treatment, flagged explicitly as having no test behind them.

The part that needs review

The title convention is a judgement call I asked about rather than inferred, and the split is mine to defend. CONTRIBUTING said area: imperative summary. That stopped being true at #78 — every PR since is prose. But release: and docs: commits going straight to main kept their prefixes throughout, including docs: repoint the conformance receipt at the v1.15.0 run an hour ago.

I have encoded that as a rule with a reason — housekeeping has no problem to name, so it gets a prefix; a PR does, so it gets a sentence. That reads as coherent rather than as two conventions overlapping, but the split is a post-hoc reading of thirteen PRs, not something anyone wrote down. If the real rule is simpler ("prose for anything with a PR"), the CONTRIBUTING wording should shrink to match.

/ship says never merge without the user asking, and states why: branch protection has enforce_admins off and requires no reviews, so nothing mechanical sits between a green check and a merged PR. Encoding a social rule in a skill is weaker than a branch-protection setting. It is written down because the alternative is nowhere.

Verification

Checklist

  • make check — no Go touched
  • Tests for new behavior: none applicable, these are skill documents
  • Proxy-path changes: none
  • Wire-behavior changes: none
  • README updated — .claude/README.md gains both rows; CONTRIBUTING's title section rewritten
  • Pin bumps: none

/preflight ends at "ready to commit" and /watch-ci begins after the push.
Between them sits the step all thirteen of the last PRs went through, and
nothing described it: the branch, the title, the body a reviewer reads.
Separately, observability carries the same lockstep discipline as the config
schema — checked in both directions by observability_pack_test.go — and had
neither a hook nor a skill, so adding a metric failed a test whose existence
was not discoverable from the edit.

- /ship — branch as type/slug, then the title convention, which is the part
  that is genuinely hard to guess: a PR title is a prose sentence naming the
  *problem*, with no area: prefix, while commits that go straight to main
  keep the prefix because they are housekeeping with no problem to name.
  Then the commit body as rationale, the PR body written for a reviewer —
  the movement that earns the format is "the part that needs review", where
  the author says what they are least sure of and what they got wrong first
  — and the template checklist answered rather than ticked.

- /observability — the pack lockstep in both directions, and the two traps
  in how it reads the source: it extracts quoted literals from metrics.go
  only, so a name built by concatenation or declared elsewhere passes the
  test while shipping unwatched, and histogram series match after the
  _bucket/_sum/_count suffix is stripped. Plus the consequence of the v1
  freeze that catches people: it covers names *and label sets*, so adding a
  label to an existing metric is a break while a new name is additive —
  which is why the tenant series are their own metrics. Spans and audit
  fields get the same treatment without a test to lean on.

CONTRIBUTING said commit messages follow "area: imperative summary". That
stopped being true at #78, and every PR since has been prose. The line now
describes what the repo does, with the split stated.
@blakebauman
blakebauman merged commit 1638a03 into main Aug 26, 2026
8 checks passed
@blakebauman
blakebauman deleted the feat/ship-and-observability-skills branch August 26, 2026 05:29
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