Skip to content

harness.adoption-core: adopt marathon 0.22.0 - #26

Merged
JaimeStill merged 10 commits into
mainfrom
adopt
Nov 21, 2026
Merged

JaimeStill merged 10 commits into
mainfrom
adopt

Conversation

@JaimeStill

Copy link
Copy Markdown
Contributor

harness.adoption-core · task 1/1 · adopt

Summary

repo diff new
go-core 72 files, +402 −1,236 docs/graph-design.md (the graph note's reasoning, out of context/)
sqlate 74 files, +310 −1,560 context/second-engine.md (planned)
  • Both repos pin marathon 0.22.0. Each check runs lint-context and lint-references after its
    existing steps (sqlint included), and fails when either fails.
  • Both repos run mise-action v5.2.10. sqlate's stack runs PostgreSQL 19.0-alpine; acceptance
    passes and the quick start names 19.
  • Capability maps: go-core has nine built entries. sqlate has seven built, plus dollar-quoting
    and a second engine as planned.
  • Every comment is one of the five kinds. .sql headers and --| lines are untouched. nolintlint
    is on, and both STANDARDS.md files have the comment rule with the SQL-header and
    template-metadata clause.

Core changes

  1. go-core's graph note became docs/graph-design.md. It keeps the pain points, kept
    behavior, decision reasoning, rejected alternatives, and "Implementation invariants". The
    migration section, sketches, evidence and stale roadmap pointer are dropped.
  2. sqlate now tests an invariant that only a comment held. readKeyed must run before the
    caller's scan.
    func TestList_IssuesACursorWhenTheScanReadsIntoRawBytes(t *testing.T)
  3. Guard.Run's refusal is documented and tested. A guard that misses at the expected version
    returns ErrRefused; the old comment wrongly called that branch unreachable.
    TestGuard_MissAtTheExpectedVersionIsRefused covers it.
  4. Reasoning moved into docs and names. sqlate's docs/features.md gains the cursor-hash
    purpose, the migration lock's release, pgtest's cleanup, and PostgreSQL 19's NOT NULL
    reporting. Exported docs gain a few lines, such as ErrConnectionFailed and Session.

Verify

mise run check: ✓ in both repos (Go gates, golangci-lint with nolintlint, sqlint, lint-context,
lint-references)

  1. mise run currency in each repo → nothing reported, exit 0.
  2. sqlate: flock … mise run acceptance → builds postgres:19.0-alpine; postgres and pgtest
    are ok; torn down.
  3. Run the lint loop with env -i PATH=/usr/bin → FAIL: lint-context is not on PATH; run mise install, exit 1.
  4. git diff --stat main...adopt -- '*.sql' '**/CHANGELOG.md' '**/go.mod' → empty.

Decided without you

  1. Both repos keep the check inline in mise.toml, with [settings] task.run_auto_install = false. Their currency.sh is go-database's reviewed script, line for line.
  2. go-core's graph page drops pain point 10, the composition-terms contradiction, which was fixed
    in the architecture repository.
  3. sqlate's map mentions pgtest inside the postgres entry rather than giving it an entry of its
    own.
  4. Dropped decisions W1 and W2. Their rules land in harness-adoption.md through this goal's sync.

Redirects and escalations

  1. Mid-build correction: the shared slice instructions first barred additions to exported docs.
    The fix came before core's comment slices finished, and they used it.

Merge danger: two-way door · blast radius: the two repos' docs, comments, tooling and sqlate's
dev stack. No API change and no release.

Needs you: none

Sync

  • coordinator
    • context/graph-ergonomics.md:11-13: point at go-core's docs/graph-design.md (what it holds;
      no sketches or migration)
    • context/harness-adoption.md, "Settled for every adoption goal": SQL file headers are package
      documentation (in sqlate, template metadata) and stay; CHANGELOG entries record only go.mod
      requirement changes
    • roadmap/index.toml: remove harness.adoption-core from active
    • roadmap/harness.adoption-core.toml: delete
  • architecture
    • standards/go-elemental/principles/release-and-ci.md, "One check per repository": name
      lint-context and lint-references among the lints after the module loop
  • next: none. The remaining harness.adoption goals are already active, and the v1 goals wait
    until every adoption syncs.

mise-action moves to v5.2.10 and the development and integration
PostgreSQL to 19.0-alpine; the quick start names PostgreSQL 19 and shows
the new FROM line. mise run acceptance passes on 19 after a db:reset of
the old volume. No CHANGELOG line: no go.mod requirement changes.
The capability map lists the seven packages as (built) entries, each linking its
doc.go; pgtest is named inside the postgres entry rather than given its own
entry. The dollar-quoting note is linked from a (planned) entry, so the Notes
section that duplicated it goes. The second-engine paragraph moves into
context/second-engine.md as its open points, homed at the backlog goal
second-providers in standards-lab/roadmap/index.toml.
…ve kinds

Unexported-identifier docs, test-function docs and in-body comments go.
Reasoning a reader needs moves to exported docs: ErrConnectionFailed says a
context deadline is not a connectivity failure, and Session says why
QueryRowContext is left out.
Unexported-identifier docs, test-function docs and in-body comments go.
Scripted test responses carry names (ran, failed, rowWritten, rowMissing,
rowFound) in place of trailing step labels.
Unexported-identifier docs, test-function docs and in-body comments go.
docs/features.md takes the reasoning with no other home: the cursor hash
guards against accident, not forgery, and the migration lock's release
survives the run's cancellation.
Unexported-identifier docs, test-function docs, test-file package
comments and in-body comments go from the postgres and sqlint modules.
Names take what trailing labels said: continuedPageOffset,
firstGuardWhereLine and firstGuardSetLine, refusedByPredicate and
publishable, and the probe Force's failure message names the top set.
docs/features.md takes the reasoning with no other home: PostgreSQL 19
records NOT NULL as a named constraint yet its violation reports none,
pgtest drops after a failed create, and the compose PostgreSQL's health
check probes over TCP rather than the socket.
…ons, STANDARDS comment rule

golangci-lint enables nolintlint with require-explanation and
require-specific for every module, from the one root .golangci.yml each
module's run reads, with go-core's header and references. Comments go
from mise.toml, .gitignore, .claude/marathon.toml and compose.yml; the
check and upgrade descriptions take what their in-script comments said.
compose.yml, the Dockerfile and both sqlint.toml files point at
README.md or docs/features.md with a reference line; README.md says the
stack's port sits beside a service's own on 5432. scripts/currency.sh
keeps its header and its sections become named functions. STANDARDS.md
cites comments.md for Go source, tests, scripts and every configuration
file, and a SQL file's header is its package documentation and its
template metadata.
…t-references

mise.toml pins github:standards-lab/claude-plugins at 0.22.0 (marathon/v prefix) and sets
task.run_auto_install = false, as go-core. The check runs both lints after the module loop and
sqlint through a run_lint function that fails on a lint missing from PATH with a message naming
mise install, and exits nonzero when either lint fails. The description and README check line
name every step, sqlint included.
@JaimeStill
JaimeStill merged commit 0177da1 into main Nov 21, 2026
1 check passed
@JaimeStill
JaimeStill deleted the adopt branch November 21, 2026 10:19
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