Repository navigation
Releases: gmackie/forgec
Release list
v0.5.0
0.5.0 (2026-10-06)
forgec build now emits ForgeGraph's contract IR (contract.json), and
forgec import-contract and forgec contract-diff take it back in and compare
it. Projections' latest aggregate is breaking: it is now
latest <field> by <orderField>. References accept "$self", floor and
datetime arithmetic evaluate at runtime, and the console gains Forgejo Git
projects and an Integrations tab backed by ForgeGraph's contract registry.
Added
-
Console Forgejo Git projects: a project may set
"provider": "forgejo"and
commit throughFORGEJO_URLandFORGEJO_TOKEN(minted by
forge forgejo-token) instead of a GitHub token./healthzreports a
configured provider's missing credential, and a Forgejo-only instance no
longer needsGITHUB_TOKEN. -
Console integrations: with
FORGEGRAPH_URLand a read-scopeFORGEGRAPH_TOKEN, every
ForgeGraph app is listed as an integration described by its published contract (contract IR v1,
converted to OpenAPI 3.1), and its operations can be called through the console. Base URLs,
credentials (bearer, header or Cloudflare Access service token,INTEGRATION_*secrets only) and
write access are set per app inINTEGRATIONS_JSON; reads are the default, writes need an opt-in
and a per-call confirmation and are audited. The playground's new Integrations tab browses
operations by group, builds requests from their schemas, confirms writes, keeps drafts per
operation, and can hand an operation to the Graph tab's OpenAPI importer. -
forgec buildwritescontract.json, ForgeGraph's contract IR v1, next to
openapi.jsonand derived from it: one operation per@crudroute,@http
function and workflow route, ids<serviceId>.<group>.<endpoint>
(--service-idsets the app slug; the default is the unscoped package name),
authentication from the security requirement, and each operation's SLO as
policy.slo. Fingerprints are hashed over the bytesJSON.stringifywould
produce, so ForgeGraph'svalidateContractaccepts the file as written; the
conformance suite runs that validator, vendored, over a curated set of contracts
and CI sweeps every package in the repository withscripts/validate-contracts.sh.
fg contract publish --file generated/contract.jsonpublishes it. -
forgec import-contract <contract.json> --package <name> --out <dir>turns a
contract IR document into a Forge package through OpenAPI 3.1 and the OpenAPI
importer, reporting RPC procedures, unbindable methods, anonymous or public
operations, SLA/SLO policy, middleware, alternate media and non-Problem error
bodies instead of approximating them. A contract whose fingerprints do not
match is refused. -
forgec contract-diff <a> <b> [--ignore <kind>]compares two contracts per
route (request and response schemas after$refinlining, statuses, policy)
and exits 1 on any difference not declared expected. Seedocs/contract-ir.md
for the round trip and which differences it is expected to show. -
@forgegraph/foundation/configuration(experimental): typed parameterization
against a pinned specification revision, layered defaults and overrides,
deterministic resolution, and resolutions identified by a digest over their
values.Configurationin@forgegraph/runtimeresolves a chain and records it.Configuration is not arbitrary JSON: every value assigns a parameter the pinned
revision declared, so an unknown key cannot be set and a key retyped in a later
revision cannot be silently inherited. Layers carry an ordinal and a child's is
strictly greater than its parent's, so precedence is a total order and resolution
gives the same answer whichever end of the chain you start from. Every resolved
value records which configuration supplied it, so a surprising value is
attributable without re-deriving the chain by hand.Secret parameters carry a reference and never a literal, may not carry a default,
and resolve to that reference. This package cannot dereference a binding, and a
test scans the compiled contract for any field that could hold secret material.Seven criteria have local evidence; scalar type validation remains tracked in #94.
-
@forgegraph/foundation/reachability(experimental): contact points and service
endpoints as durable facts, with purpose labels, preference ranking, half-open
validity, verification evidence and explicit supersession.Reachabilityin
@forgegraph/runtimedeclares, verifies, supersedes and resolves them.Contact points and endpoints are separate resources rather than one polymorphic
locator, because a data classification is a property of a field. A singlevalue
column has to be classified once: asdata.contact, which sweeps webhook URLs into
subject-rights erasure that does not apply to them, or as structural, which
under-classifies an email address.LocatorKind.personaldecides which profile a
kind belongs to and a rule on each profile enforces it.No transport mechanics are foundation semantics here: a locator says where something
can be reached, never whether a message was sent, how many attempts it took, or what
a provider answered. A test asserts that structurally against the compiled contract.
Notifications now consumes typed contact points and endpoints and checks their
validity at notification time. All eight criteria have local evidence.
Added
-
@forgegraph/foundation/consent(experimental): consent grants, withdrawal,
supersession and evidence as durable facts, with purpose, processing activity and
data scope as three independent axes.Consentin@forgegraph/runtimegrants,
evidences, withdraws, supersedes and answerseffectiveAt.Valid time and knowledge time are recorded separately, which is the point of the
package. A withdrawal recorded on 1 March but backdated to 1 February gives three
different correct answers: asked on 20 February about 15 February, consent held,
because the withdrawal was not yet known; asked on 5 March about the same moment,
it did not; asked on 5 March about 15 January, it held, because a backdated
withdrawal reaches back only as far as it says. A decision made last Tuesday has to
stay explainable with what was known last Tuesday.Consent is not authorization: these facts are one input to a decision, and a null
result means no permission was recorded rather than a denial. Notification
preference, agreement and entitlement are different facts with different lifecycles,
and a test asserts structurally that none of them has appeared in this contract.This is a bounded valid/knowledge interpretation built from ordinary fields, not an
L0 temporal facet; ConceptIR #75 is what would make those axes language-level.
All eight criteria on #93 have executable local evidence.
Changed
- Breaking: a projection's
latestaggregate now names its ordering field:
latest <field> by <orderField>.latestpreviously returned the greatest value
of the field, so it wasmax; it now returns the value from the contribution with
the greatest ordering field (a required integer, decimal, money, date or datetime
field), with the record id breaking ties. Write order is never inferred. Bare
latest xisE-PROJ-006with the fix-itlatest x by <field>. Bundles from
older compilers keep their previous behaviour. Migrate with, for example,
latest remainingFraction by observedAt. (#198, #207)
Added
- A reference to a record's own resource accepts
"$self"on create and update,
resolved to the id of the record being written, so a required self-reference
(root : Thread @immutable) can be created. Admin import orders a
self-referencing resource's records so in-snapshot targets come first. (#200, #206) flooranddatetimearithmetic in resource expressions evaluate at runtime
(hour := floor(at / 3600) * 3600), and the compiler accepts exactly the
expression functions the runtime implements (E-EXPR-004); a parity test keeps
the two lists equal. Previously any call compiled and then failed every create.
(#196, #205)
Fixed
- An optional
jsonfield's contract schema stays{}(which already admits
null) instead of becoming{"type": ["string", "null"]}, which rejected every
JSON value but strings. D1Storage.listomitsWHEREwhen there are no predicates; a resource with
neither@tenantnor@softDeletelisted without filters failed with a SQLite
syntax error. (#197, #203)- OpenAPI contracts include
nullin theenumof a nullable enum field, so
generated validators accept the null the API returns. (#199, #204) /healthzcan now fail. Both hosts return 503 with the names of the absent
settings when the instance's own configuration implies something it does not
have — an R2 bucket,REGISTRY_TOKEN_SECRET,INSTANCE_AUTHORITY, the Access
team domain and audience tag. It previously returned a constantok, so a
Worker deployed with no secrets reported healthy on every probe while
answering 503 to every authenticated request, which is exactly what happened
toforge.gmac.io..forgegraph.yamlpoints a deployment health check here,
so a probe that could not fail could not detect the only outage this
deployment has had. Only names are reported, never values, and only absence is
checked — a present but invalid signing key is a different failure and
claiming to have checked it here would be the same kind of lie./v2refuses outright whenREGISTRY_TOKEN_SECRETis unset, instead of
challenging the client with aWWW-Authenticaterealm naming a/v2/token
endpoint that does not exist.docker logincould not exit that loop.src/node.tspasses a credential store tocreateApiand applies
migrations/0003_registry_credentials.sql. Registry credentials were
Workers-only by accident, so the panel answered 503 on every Docker
deployment ...
v0.4.0
0.4.0 (2026-09-24)
Added
- ConceptIR business archetypes, typed Subjects, semantic identities and revision
pins, traceability requirements, and explicit authority and boundary validation. - Portable actors, work queues, search, sealed credentials, sequences, conditional
uniqueness, typed collections, workflow maps, and incremental projections. - Foundation contracts and composed systems, including capacity, inventory,
projects, subscriptions, billing, returns, maintenance, rewards, and collections. - Forge Studio business and developer views, editable records, source navigation,
repository reviews, runtime connections, and Worker deployment management. - Production console integration with Cloudflare Access, an R2-backed OCI registry,
scoped registry credentials, and authenticated activity attribution.
Changed
- Requires Node.js 24 or later.
- Expanded ConceptIR validation rejects ambiguous or unsupported models, including
unsupported multi-hop reference expressions. Review compiler diagnostics when
upgrading existing models. - Foundation trust subjects use
TrustPartySubject; regenerate dependent bundles
and review updated package contracts before upgrading deployed applications.
Fixed
-
Concurrent workflow activity replay, PostgreSQL predicate conflict handling and
contention retries, actor alarm supersession, and projection rebuild recovery. -
Collection contracts in SDK and GraphQL generation, SQL reserved identifiers,
language-server completion and references, and editor syntax coverage. -
forgec --versionprintedforge 0.3.0and the language server announced
itself asforge, both left over from the rename. The binary now identifies
asforgeceverywhere, including thesourcefield on the diagnostics your
editor shows. Cosmetic, butforgeis a different tool on the machines this
is most likely to be installed on.
Install the compiler:
brew install gmackorg/tap/forgec # macOS and Linux
cargo install forgegraph-cli # from source
Runtime packages are on npm under @forgegraph/* with build provenance.
Certified profiles and their evidence: RELEASE_MANIFEST.json.
v0.3.0
0.3.0 (2026-09-21)
First public release. The project is now ForgeGraph: the compiler ships as
the forgec binary from the forgegraph-cli crate, and the runtime packages
are published on npm under the @forgegraph scope. Everything is Apache-2.0
and developed in the open at https://github.com/gmackie/forgec.
Breaking
- The CLI binary is
forgec, notforge. Every command, flag and output
format is unchanged; only the name moved.forgeis taken on crates.io and
by Foundry, and the old name could not be published. - npm packages moved from
@forge/*to@forgegraph/*. Update imports; no
API changed with the move. - The library crates are
forgegraph-syntax,forgegraph-semantic,
forgegraph-plannerandforgegraph-codegen(Rust paths
forgegraph_syntaxand so on).forge-codegenwas already taken on
crates.io by an unrelated project, and it is the fourth of five in publish
order — a release would have discovered that only after permanently
publishing the three before it. The other three names were free, butforge-
is contested enough (Atlassian, Foundry, Aptos) that consistency is worth
more than the names. Compiler output is unaffected: the generated bundle and
its build hash are byte-identical across the rename. createNodeHostnow refuses to start without anAuthHost. It
previously fell back to development header auth, which meant a Node
deployment that forgot to configure authentication trusted
x-forge-tenant/x-forge-actorfrom the caller. Passauth, or set
FORGE_AUTH=dev-headersto opt into the development behaviour by name. The
Cloudflare and AWS hosts already failed closed; all three now log a loud
warning whenever development auth is active.
Added
- Published artifacts: five crates on crates.io, nine packages on npm with
build provenance, prebuiltforgecbinaries for macOS and Linux on both
architectures, and a Homebrew formula atgmackorg/tap/forgec. The tap
pulls the formula from each release rather than being pushed to, so this
repository holds no credential for it — seedocs/releasing.md. docs/stability.md: a per-package stability tier, also recorded in each
package.jsonunderforgegraph.stability.docs/releasing.md: the release process, the required secrets, and how to
bootstrap the shared Homebrew tap.- CI (
.github/workflows/ci.yml): compiler on stable and 1.97, runtime on
Node 22 and 24 against PostgreSQL 17, a stale-fixture check, the
cross-profile differential, a packaging dry-run, and supply-chain audits. - Release automation (
.github/workflows/release.yml) and a Forgejo mirror. scripts/check-crate-names.mjs, run by CI and again before a release starts:
every workspace crate name must be free or already ours. crates.io names are
permanent and publishing is ordered, so a name discovered to be taken partway
through leaves everything before it published forever.- The
LICENSEfile is now the full Apache-2.0 text. It was a 15-line notice
pointing at the licence rather than a copy of it, while every crate and
package declaredApache-2.0and shipped that file as their licence —
Apache-2.0 requires the copy. It is also now inside each crate's own
directory: cargo pulls the workspace README into a tarball but not the
workspace LICENSE, so the crates would have published with none at all.
scripts/check-packaging.mjsnow checks the crate tarballs too, and fails if
one carries no LICENSE, no README or no license field. scripts/check-workflows.mjs, run by CI: workflow files must parse, and an
unquoted${{ }}inside awith: { }flow mapping is rejected by name. YAML
reads the expression's{as opening a map, which invalidates the entire
file — GitHub reports that as a run named after the file path, failing before
any job starts, with no log to read.
Changed
-
@forgegraph/temporal: Temporal WorkflowDriver + worker; profile
self-hosted-fullcertified on a single-node Temporal dev server. -
@forgegraph/adapters/sqlite: embedded libsql executor certified through the
D1 adapter. -
OtlpSinkandtelemetryFormat: "otlp"on the Node host. -
Live deployment identifiers in
examples/acmeare placeholders. The
certification evidence inconformance/certification/latest.jsonkeeps every
result and withholds only the private hostnames, marked as withheld. -
Re-certified live against build
cfc8286aafter the rename: Cloudflare
(Workers + D1 + R2 + Queues + Workflows + Durable Objects + Cron Triggers)
and AWS (HTTP API + Lambda + DynamoDB + S3 + SQS + Step Functions +
EventBridge + API Gateway WebSocket), 15 scenarios / 221 steps each, realtime
and provider switching in both directions, plus the differential across
memory / sqlite-node / PostgreSQL with 0 unexplained differences. All five
required profiles are certified against this build. -
examples/acme/deploy/cloudflare/resolve-config.mjs: the committed
wrangler.jsonckeeps placeholders, and thecf:*scripts resolve a
gitignored copy fromFORGE_D1_DATABASE_ID. A public repository should not
name someone else's database, and an editable placeholder is a placeholder
waiting to be committed by accident. -
Re-pinned the adapter capability manifest digests in
examples/acme, whose
IDs moved to the@forgegraphscope. -
cargo clippy -D warningsandcargo fmt --checknow pass workspace-wide
and are enforced in CI.
Fixed
Two concurrency defects, both found by CI on a clean machine after they had
hidden behind warm local state. Both were real: the first diagnosis of the
workflow one — "a flaky test, not a flaky runtime" — was wrong, and the poll
budget it widened was treating a symptom.
-
A workflow activity could run twice and report the wrong outcome. The
idempotency key for a workflow step embedded the instance version. That
version moves whenever anything else touches the instance — a delivered
signal, a competing driver — which is exactly what makes a step's save
conflict and forces a retry. So the retry presented a key the idempotency
store had never seen, the already-committed activity ran a second time, and
it failed withVersionConflictagainst the record the first attempt had
itself just moved. The workflow then reportedVersionConflictinstead of
its real result: in the reference application, an order that should have
failed withShortPaymentand been cancelled. Reproduced at roughly 1 run in
6 under load. The key is nowwf:<instance>:<step>:<pass>, stable across
retries and distinct per loop iteration (stepIdempotencyKey, exported and
unit-tested). -
Independent concurrent writes failed on PostgreSQL. Every commit writes
_forge_assertand may writeforge_outbox, so underSERIALIZABLEwriters
that share no business state still collide on predicate locks. A
serialization failure there is the expected outcome and the documented remedy
is to retry, butPostgresStorageinherited D1's retry budget — 3 attempts
inside 75ms, tuned for a single-writer store where conflicts are rare. 64
concurrent creates of distinct customers produced 10TransientConflict
503s. The retry budget and backoff are now overridable per adapter, and
PostgreSQL uses 10 attempts with exponential backoff and jitter (~2s). Calls
that succeed on D1 and DynamoDB now succeed on PostgreSQL, which is the whole
point. -
pnpm differentialno longer dies withENOENTon the report file when the
suite fails before writing one. It reported a missing file instead of the
failure that was printed directly above it. -
The workflow-failure assertion in
conformance/scenarios/workflows.jsonnow
gets the same 30s poll budget as the workflow-completion assertion beside it
— consistency between two assertions of the same kind, not a fix.
Install the compiler:
brew install gmackorg/tap/forgec # macOS and Linux
cargo install forgegraph-cli # from source
Runtime packages are on npm under @forgegraph/* with build provenance.
Certified profiles and their evidence: RELEASE_MANIFEST.json.