Skip to content

fix: read the trust key table's sources and report dates from a committed capture of the public records - #78

Merged
thebenignhacker merged 1 commit into
mainfrom
integrate/2026-10-28-a
Oct 28, 2026
Merged

thebenignhacker merged 1 commit into
mainfrom
integrate/2026-10-28-a

Conversation

@thebenignhacker

Copy link
Copy Markdown
Member

This pull request lands 1 commit in pkg/patterns.

Included

  • fix: read the trust key table's sources and report dates from a committed capture of the public records

Verified on this exact tree

  • go build ./...: exit 0
  • go vet ./...: exit 0
  • golangci-lint run --concurrency 4 --max-same-issues 0 --max-issues-per-linter 0 ./...: exit 1, 91 issues (errcheck 50, staticcheck 41); the same command on origin/main at 3cf00b2: exit 1, 90 issues (errcheck 50, staticcheck 40); the one issue not in the origin/main list: pkg/patterns/internal/trustgen/main.go:331:14: ST1005: error strings should not end with punctuation or newlines (staticcheck)
  • go test -race -count=1 -p 4 -v ./...: exit 0; 8 packages ok, 2 packages with no test files; 438 top-level tests passed (1362 including subtests), 0 failed, 0 skipped

Not included

None

Closes

None

How to merge

Rebase and merge, so that each change stays its own commit on main.

…tted capture of the public records

trustgen reads each row's source and reported from
pkg/patterns/testdata/trust-captured/source-records.txt: one line per
public record, with the UTC time it states for itself, its role and the
keys it lists. A row's source is the sorted URLs of the records that list
it, and its reported is the UTC date of the earliest of those that reports
its status. The generator refuses a record that lists no row, a row that
no status record lists, a row with a record dated before its earliest
status record, and a time that is not UTC.

The table test derives each row's source and reported from the committed
capture, and refuses a table with a row reported a day before its earliest
record or citing a record that does not list it.
@thebenignhacker
thebenignhacker merged commit 9d78a82 into main Oct 28, 2026
4 checks passed
@thebenignhacker
thebenignhacker deleted the integrate/2026-10-28-a branch October 28, 2026 22:57
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