Repository navigation
Changelog
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning with a
pre-1.0 convention: the major version stays 0, and a breaking change bumps
the minor version instead.
[Unreleased]
Security
- Resolve the latest Go security patches in CI while preserving the 1.26/1.27
matrix; document the local-toolchain standard-library advisories. - Reject PostgreSQL pool sizes that overflow int32 before opening a connection.
- Keep extreme pagination values from overflowing into negative page numbers.
- Update vulnerable website serialization, worker-pool and UUID dependencies;
use a documented, private deepmerge security fork with prototype-poisoning
regression tests until a compatible upstream fix is available. - Audit the complete website/build dependency tree in the existing docs jobs
and on scheduled vulnerability scans; keep Go scanning unchanged. - Pin build/runtime and integration images by digest, with Dockerfile updates
through Dependabot and documented manual checks for Compose-only images. - Add query, SQL compilation, validation and merge-patch fuzz targets. Their
seeds run in normal tests; bounded campaigns run every 15 days on Go 1.27
(four sequential 5-minute targets, two workers, 30-minute job timeout). - Include both hyrule and hyrule-serve in the Linux/Windows release matrix,
with checksums and existing artifact provenance covering all eight binaries.
CI maintenance
-
Wait for an actual Pub/Sub emulator HTTP response before Compose reports it
ready. Bound the CI readiness probe and retry connection resets (curl exit 56)
as well as refused connections, preventing a startup race before integration tests.
Use curl from the pinned emulator image and emit healthcheck diagnostics on failure;
the current image does not provide a system python3 executable. -
Refresh external-example module graphs before integration and vulnerability
checks, since their local replace follows root dependency updates. -
Run the Go 1.27 integration suite once with race and coverage instead of three
times; preserve full Go 1.26 and native Windows checks. Coverage failures now
retain their test output in .local/coverage-test.log. -
Make the relay lease handoff test independent of a 300ms database timing window,
preserving real Mongo exclusivity/expiry checks under race and coverage. -
Cancel superseded PR workflow runs and group Dependabot version updates by
ecosystem to reduce redundant checks. Existing dependency PRs are unchanged.
Adoption, compatibility and supply chain
- Breaking (next minor):
hyrule newnow defaults to a single SQLite API
runnable withgo run .; use--layout=platformfor the previous Mongo
multi-service scaffold. Existing manifest-free platform projects still work.
Generated projects pin the installed CLI release; development CLI builds require
--framework-version.service createresolves dependencies for the single layout. - Experimental
platform/sqlite,restsqliteandapp.BackendSQLite: persistent
local CRUD, transactions, real unique indexes, UUID/version ETags, RFC 7396
merge patch and scalar queries. No outbox, dry run, soft delete or YAML support. - Upgrade klauspost/compress to v1.20.2 for GO-2026-6865.
- Support Go 1.26/1.27; PR CI runs real adapter integrations, race/vet checks,
generated/external examples, EN/PT docs and the existing 95% runtime gate. - Compatibility/support and v1 maturity policies, contribution/review process,
security reporting (seven-day initial response), issue/PR templates and roadmap. - Compiling pkg.go.dev examples and clarified app documentation; tested Gin/Chi/Echo
handler composition in a standalone example, without core router dependencies. - Maintainer-dispatched Linux/Windows CLI releases with checksums, verified GitHub
SLSA provenance, immutable version checks and bounded Go proxy index requests.
No release/tag is published by this PR; pkg.go.dev/deps.dev ingest asynchronously. - Pinned, least-privilege Actions; CodeQL, vulnerability scans, Dependabot and
scheduled Scorecard. Branch protection/private reporting activation is tracked
separately in docs/releasing.md; workflow files alone do not activate settings.
Added
- Automatic OpenAPI 3.1 and embedded Swagger UI at
/api/openapi.jsonand
/api/docs(/swaggerredirects). Enabled by default for Go/YAML resources
on both backends;DisableSwagger/disableSwaggerhides individual resources
without changing their API routes. Documentation endpoints are public and reserved.
Changed
-
Require 95% runtime framework coverage in
make coverand CI, with all normal
tests still executing against both real backends.make cover-allretains the
previous aggregate scope (examples/tools included) and 85% gate separately. -
Preserve context causes when read timeouts become HTTP 503, so wildcard PATCH
recognizes retry budget exhaustion during a real database read. HTTP status
and message remain unchanged; useerrors.Asfor the classified*rest.Error. -
Breaking: per ADR-0001,
app,behaviors/*,declarative,outbox,platform/*,rest, and
testkitmoved frominternal/to the module root. Import paths change
fromgithub.com/Gui-Rondon/hyrule/internal/<pkg>to
github.com/Gui-Rondon/hyrule/<pkg>.internal/domainis the only package
that stays internal. Behavior is unchanged; this is purely a move
(confirmed by an external scratch module importingrest,app,
declarative, andplatform/mongodbwithout touchinginternal/).
rest.Storeitself stays Mongo-shaped per
ADR-0002 —
no change to its contract in this round. -
Breaking (pre-1.0, per ADR-0005),
as part of the Postgres portability work below:rest.WriteOptions.IfMatch
is now theIfMatchtype, not a plainstring; thelookupparameter of
Service.Get/Find/Patch/Replace/DeleteandListQuery.Filter/
Sort/Projectionare nowany, notbson.M/bson.D— abson.M
literal still satisfiesanywithout caller changes, confirmed against
every existing caller in this repo. -
Per ADR-0002's revision:
a resource picks a backend by settingResource.Adapter
(rest.Adapter, a new interface aResourcewrites through for
parsing/combiningwhere/sort/projection, CRUD, id generation,
merge-patch, uniqueness and error classification) instead of implementing
a newStore.Resource.Storestill works exactly as before —rest
wraps it in amongoAdapterautomatically whenAdapteris unset. See
adapter.md.
Fixed
-
Stop and join Mongo background workers before disconnecting on every Run
return path, matching the Postgres lifecycle and allowing worker cleanup to
finish against the database. -
Reject unknown
app.Spec.Backendvalues before bootstrap selects a database;
zero-value Mongo and explicitBackendPostgreskeep their existing behavior. -
Refresh the standalone example's module graph/checksums for the shared
Mongo/Postgres bootstrap. Add real dual-backend HTTP contract and pool
configuration coverage. -
Consolidate EN/PT backend setup, transactional outbox, dry run, opt-in adoption
and gate evidence. Document public API migration notes and the two e2e
add/add conflicts that still require resolution before a future main merge. -
cmd/hyrule/templates/new/Makefile.tmpl'sbuildtarget now fails
with a clear message whenSERVICEis empty, instead of running a
brokengo build. Also creates.local/explicitly before writing
to it (already implicit in Go ≥1.21'sgo build -o, kept explicit
for clarity and to not depend on that behavior). -
Added
cmd/hyrule/e2e_test.go'sTestScaffoldBuilds: the first
automated test that actually runshyrule new→hyrule service create→go mod tidy/go vet→make buildon a generated
project and checks for a real binary, rather than only checking
which files got written. The generated project's owngo testruns
too whenMONGO_TEST_URIis set, skipped otherwise (no Docker
required for the rest of the test).
Added
restpostgres:rest.Adapterimplemented for Postgres
(postgresAdapter/NewAdapter), over ajsonbdocument column plus
relational metadata columns (id/created_at/updated_at/version/
deleted) — RFC 7396 merge-patch (diverging from Mongo's deep merge,
on purpose), optimistic concurrency via theversioncolumn with a
real retry budget underIf-Match: *, SQLSTATE-based error
classification.platform/postgresgrew from aStore-shaped scaffold
into the DSL compiler this needs:CompileFilter
($eq/$ne/$gt/$gte/$lt/$lte/$in/$nin/$exists/$has/$hasSome/$hasEvery/ $not/$and/$or),SchemaSpec/Kind,Transactor,EnsureFunctions
(thehyrule_safe_*SQL functionsKindDateTimefiltering/sorting/
indexing depends on), andEnsureIndexes/IndexSpec(declarative
indexes, narrower than Mongo's — no TTL/text/hashed/2dsphere).
examples/blog-apis/services/comments-apiis the first resource
served end to end over HTTP through this path (there's noapp.Main
support for Postgres yet, so it wiresplatform/server+
platform/postgres+restpostgresdirectly in its ownmain()). See
adapter.md; supersedes
postgres-rfc.md, kept as
the historical design record.- Exact numeric precision for a JSON request body:
rest/http.go's
readBodydecodes withjson.Decoder.UseNumber()instead of letting
every number become a lossyfloat64, so an integer beyond 2^53 in a
declaredTypeInteger/TypeNumberfield round-trips exactly on both
backends. Scientific notation (1e3) and a declaredTypeInteger
value outsideint64's exact range are now rejected (422), instead of
silently rounded. An undeclared field's number outsideint64is
still accepted on both backends, but now visibly diverges by design —
exact on Postgres (jsonb), rounded throughfloat64on Mongo (BSON
has no arbitrary-precision integer type) — rather than being an
unexamined edge case. - A "Platform" section under Learn:
website/docs/platform/{intro,creating-a-project,creating-services, local-development,ci-and-deploy}.md. Covers exactlyhyrule new/hyrule service createand the Fase 4ci/affected/deploy.sh
pattern — every unbuilt command (dev,build --affected,deploy)
is named as unbuilt, not omitted. English only, matching the rest of
Learn. .github/workflows/blog-apis-affected.yml(ADR-0006): runsci/affected
for real on push/PR, builds only the services it reports, and calls each
one's newdeploy/<service>/deploy.sh(a stub — the configurable seam
for a real provider's deploy command). Lives inexamples/blog-apis, not
a Hyrule-shipped capability; no provider abstraction and no per-service
versioning scheme, since neither has a real consumer yet.cmd/hyrule: the Platform CLI (ADR-0004).hyrule new <project>
scaffolds a multi-service project (go.mod,Makefile,
docker-compose.yml);hyrule service create <name>scaffolds a
service in it (app.Main+ one resource + atestkittest).
Scaffolding only —dev,build --affected, anddeployare not
implemented, andci/affected/the Makefile pattern aren't wrapped as
subcommands yet; that's deferred on purpose, not missing by oversight.examples/standalone-tags-api: Fase 2's proof that an external
repository can depend on Hyrule as its own Go module (owngo.mod,
replacedirective until a version is tagged), not just as a package
inside this monorepo. A YAML-declared resource, one Go hook
(behaviors/audit), and atestkit-based test.- Phase 0 architectural audit of the Framework/Platform evolution: six ADRs
(architecture-decisions.md,
each now with a Status/Implemented in line)
and a phased roadmap.