Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
cc9f0e4
Add Java SQLite exact Decimal connection primitives
Oct 16, 2026
adc3c12
Add exact SQLite Decimal schema and Q semantics
Oct 16, 2026
6134566
Verify generated Java exact Decimal and default SQLite workspace
Oct 16, 2026
f5d4278
Keep exact Decimal generated example independent of committed replica…
Oct 18, 2026
7749909
Cover exact Decimal scale and precision in generated example
Oct 18, 2026
34a468c
Gate exact Decimal example with paired generator in CI
Oct 18, 2026
989b471
Keep private generator pairing outside public Java Actions
Oct 18, 2026
130c13a
Preserve virtual untyped columns in SQLite Decimal detection
Oct 18, 2026
c64b060
Canonicalize exponent Decimal binding for SQLite
Oct 19, 2026
946404b
Guard SQLite Decimal functions against exponent amplification
Oct 19, 2026
b97e008
Bound SQLite Decimal parameter expansion
Oct 19, 2026
773d29f
fix(core): normalize native relation aliases once per field layout [s…
Oct 20, 2026
7b3657c
[skip ci] fix(core): share structured E error locations and JSON poin…
Oct 21, 2026
d6f4b37
fix: retain complete E traces and structured diagnostics (#268)
Oct 23, 2026
410385b
fix: preserve null SUM in relation and facet buckets (#271)
Oct 25, 2026
1ee4354
Integrate exact Decimal with source-paired repeatable Java examples (…
Oct 25, 2026
d7744b3
Verify retained Fix and E consumers in a source-paired Java reactor (…
Oct 25, 2026
19e971c
Bound and reap owned verification processes before artifact cleanup (…
Oct 25, 2026
db9c89b
Keep canonical JSON access and qualify complete Java examples (#236)
Oct 25, 2026
ac13391
fix(runtime): reject noncanonical mutation fields before hooks and af…
Oct 26, 2026
1727e6b
test(examples): add generated canonical-name SQLite graph probe (#236)
Oct 26, 2026
22e998b
fix(json): isolate model wire profiles from native and storage aliase…
Oct 26, 2026
850f5d5
fix(json): restore existing entity and reference lifecycles on decode…
Oct 26, 2026
411ab13
fix(json): enforce exact model numeric wire boundaries and paths (#236)
Oct 26, 2026
b7a21f7
fix(json): separate calendar time and instant model wire values (#236)
Oct 26, 2026
9f72ea2
fix(core): reject mutations before changing entity state (#236)
Oct 26, 2026
6347a1b
fix(core): retain explicit null intent without dirtying equal loaded …
Oct 26, 2026
6216c6c
fix(core): cancel restored field intent without losing other graph ch…
Oct 26, 2026
a1c44ad
fix: check optimistic versions before graph hooks and SQL writes (#236)
Oct 27, 2026
79d25ce
fix: scope standalone Checker clocks and evidence like graph saves (#…
Oct 28, 2026
f0e09fe
fix: preserve standalone Checker violations before releasing their sc…
Oct 28, 2026
83da32b
fix: bind declaring entity types to Checker violations before localiz…
Oct 30, 2026
677a693
Preserve E callback traces and type-only diagnostic roots (#236)
Oct 30, 2026
5fb8401
Reject invalid context roots and preserve original mutation ownership…
Oct 30, 2026
0df6eea
Accept context-declared root reference subtypes without weakening own…
Oct 30, 2026
aacb1e4
Preserve descendant wire input provenance at parent boundaries
Oct 31, 2026
0444fc3
fix(checker): project sensitive Java diagnostics with shared audit po…
Oct 31, 2026
e0b3522
fix(checker): preserve safe cached diagnostic rerendering
Oct 31, 2026
4d3d0b0
Exercise generated Java saves below untouched partial ancestors (#236)
Oct 31, 2026
5a0c201
Fix physical transaction audit completion and retry intent (#236)
Oct 31, 2026
6d162bb
Preserve later mutation intent through outer transaction rollback (#236)
Nov 1, 2026
bef4150
Bind Spring mutation completion to physical transactions and savepoin…
Nov 1, 2026
e3295eb
Verify generated Q/E and audited graph saves through Spring transacti…
Nov 1, 2026
755097a
test: prove generated Fix postconditions and safe provenance
Nov 1, 2026
a9df6fb
test: combine expression pointer escaping with all wire profiles
Nov 1, 2026
c191eed
test: verify generated E diagnostics for each model JSON profile
Nov 1, 2026
24c057c
test: verify active-root admission below sparse ancestors
Nov 1, 2026
b3a0abf
test(expression): refresh Java model profiles from the current genera…
Nov 1, 2026
2c910a5
fix(core): assign Context-owned IDs before new entity factories retur…
Nov 1, 2026
0dda894
test(trace): retain strict identity controls with pre-return ID reser…
Nov 1, 2026
15af309
test(checker): exercise Java modified-graph and real JSON boundaries …
Nov 2, 2026
bdf12a0
fix(http): align trust roots and numbered Java transport boundaries (…
Nov 3, 2026
4b88e92
fix: reject nonfinite mutation and JDBC scalar values after Fix (#236)
Nov 3, 2026
8609b27
merge: integrate Java finite scalar and HTTP contract repairs (#236)
Nov 3, 2026
81b2df7
fix: preserve entity identity and version after explicit projections …
Nov 4, 2026
2cf0fe2
test: cover empty and null-only materialized relation predicates (#236)
Nov 4, 2026
b015354
fix: preserve negation of empty materialized relation predicates (#236)
Nov 4, 2026
a376a44
test: cover absent MIN MAX AVG relation and facet buckets (#236)
Nov 4, 2026
b820605
fix: retain null for absent portable relation statistic buckets (#236)
Nov 4, 2026
91c6739
fix: preserve Java 17 property-function operator compatibility (#236)
Nov 4, 2026
54aa11d
test: expose lossy typed JDBC numeric reads on H2 and SQLite (#236)
Nov 4, 2026
fdadba2
test: calibrate each numeric vector through the untyped JDBC path (#236)
Nov 4, 2026
1647507
fix: preserve exact typed JDBC numbers and reject lossy conversions (…
Nov 4, 2026
c49866b
test: cover generated Q and E JDBC corruption boundaries (#236)
Nov 4, 2026
beb0642
test: inject legacy corruption through initialized SQLite connections…
Nov 4, 2026
ecb1bb0
test: expose Spring JDBC typed numeric parity gaps (#236)
Nov 4, 2026
7bc18ab
fix: share exact numeric reads across JDBC providers (#236)
Nov 4, 2026
374bb31
merge: combine Java Query finite and exact JDBC repairs (#236)
Nov 6, 2026
da513fb
fix(jdbc): preserve typed diagnostics for non-finite numeric reads (#…
Nov 6, 2026
9904790
test(examples): align finite typed read diagnostics with exact conver…
Nov 6, 2026
906072b
test(examples): require observed canonical numeric label and retain f…
Nov 6, 2026
0c46107
fix(runtime): reject graph changes after policy review (#236)
Nov 6, 2026
60ca89f
fix(runtime): keep reviewed value snapshots JDBC-independent (#236)
Nov 6, 2026
0ee6674
fix(runtime): execute detached reviewed operands and preserve capture…
Nov 6, 2026
1a8022d
test(runtime): verify reviewed child execution through public graph s…
Nov 6, 2026
11c5ac4
test(runtime): declare the public graph request comment (#236)
Nov 6, 2026
17a9150
test(examples): exercise reviewed two-object SQLite graph rollback an…
Nov 6, 2026
d324401
fix(runtime): preserve materialized graph members after FK-only readb…
Nov 6, 2026
60f36b2
fix(runtime): qualify relation metadata at the readback boundary (#236)
Nov 6, 2026
b8fc5f9
test(runtime): initialize explicit new-entity graph lifecycle in the …
Nov 6, 2026
f6d1ba3
test(runtime): exercise mixed SQLite graph commit rollback and retry …
Nov 6, 2026
33b31d6
test(runtime): explicitly compose the mixed mutation graph (#236)
Nov 6, 2026
030d0c0
test: reject actual SQLite commit after mixed graph writes (#236)
Nov 6, 2026
b5d67ed
test: keep the SQLite commit fixture compatible with Java 17 (#236)
Nov 6, 2026
d9e3422
test: identify commit rejection by actual SQLite cause and stack (#236)
Nov 6, 2026
7a94036
test: overlap generated nested queries on one Context and real SQLite…
Nov 6, 2026
7403629
test: separate root SQL envelope from nested query comments (#236)
Nov 6, 2026
bb49e6f
test: join both query workers before measuring E-only provider reads …
Nov 6, 2026
b153ccd
test: distinguish root requests when measuring controlled query overl…
Nov 6, 2026
419aaa1
test: identify query roots through the declared QueryRequest scope AP…
Nov 6, 2026
4e3c6b9
test: reject annotated generated graphs with missing root request int…
Nov 6, 2026
6d51557
test: retain Java new-entity absent versions during admission rejecti…
Nov 6, 2026
10dd7c0
fix(duckdb): inspect canonical relation indexes before schema DDL (#236)
Nov 7, 2026
3b3310c
test(duckdb): bind isolated index fixture columns to their actual tab…
Nov 7, 2026
823ebfd
test(jackson): reproduce model LocalDateTime wire gaps across three p…
Nov 7, 2026
9e70351
fix(jackson): preserve model LocalDateTime as passive zone-free ISO v…
Nov 7, 2026
0979664
test(examples): verify generated LocalDateTime JSON and audited SQLit…
Nov 7, 2026
b0c3692
fix(mutation): handle cancelled new Java graph entities safely (#236)
Nov 8, 2026
6b80589
test: expose missing public memory aggregate results (#236)
Nov 9, 2026
b53b2ab
test: align memory aggregate fixture with checker field assignment (#…
Nov 9, 2026
dceff3b
fix(query): evaluate nullable exact memory aggregates at runtime (#236)
Nov 9, 2026
7894b13
test(examples): run generated exact Decimal Q E and save on memory (#…
Nov 9, 2026
b60fc9e
fix(query): handle normalized memory IN and NOT IN candidates (#236)
Nov 9, 2026
5b1504a
test(sql): define approved millisecond DateTime boundary (#236)
Nov 9, 2026
a733185
fix(sql): canonicalize modeled DateTime precision at SQL boundary (#236)
Nov 9, 2026
9e160b5
test(sql): cover immutable precision conversion and zone-free formatt…
Nov 9, 2026
fcf050c
fix(jdbc): declare SQL formatter dependency and prove DST-safe SQLite…
Nov 9, 2026
d092295
test(scalar): exercise generated SQL millisecond save query and expre…
Nov 9, 2026
9234b44
test(scalar): retain focused SQL boundary JUnit before disposable bui…
Nov 9, 2026
71bd50a
test(mutation): exercise original Java ledger clauses through generat…
Nov 9, 2026
54e5379
test(mutation): import explicit runtime audit hooks in ledger example…
Nov 9, 2026
78dbe4b
fix(mutation): keep selected empty reverse relations mutable and owne…
Nov 9, 2026
92e363b
test(mutation): assert Java save-time composition through the exact r…
Nov 9, 2026
ed65546
test(scalar): require explicit legacy SQL precision rejection on all …
Nov 9, 2026
e313272
fix(scalar): reject incompatible stored SQL datetime precision with v…
Nov 9, 2026
ebd554e
test(scalar): map the physical legacy fixture table explicitly (#236)
Nov 9, 2026
e8c667e
test(examples): prove generated Q and E legacy datetime rejection wit…
Nov 9, 2026
8b2328b
merge: combine SQL precision policy with the accepted original-ledger…
Nov 9, 2026
0afe545
test(scalar): distinguish canonical model field from camelCase JSON p…
Nov 9, 2026
e32a5cd
test: include generated empty aggregate contract in default examples
Nov 10, 2026
044060c
test(query): cover generated memory relation and facet empty aggregates
Nov 10, 2026
8da9265
fix(memory): materialize related aggregates and complete facet member…
Nov 10, 2026
8e260a6
release: integrate core semantics for 1.556-RELEASE (#275)
Nov 10, 2026
30c53b4
test: bind example dependency metadata to final Java runtime without …
Nov 10, 2026
0be9100
test: select the local Java version before generating decimal example…
Nov 10, 2026
9cd754c
ci: pin read-only generator checkout for the complete Example Gate (#…
Nov 11, 2026
1eaaa2d
ci: prepare third-party dependencies before isolated offline example …
Nov 11, 2026
650e9c0
ci: prime frozen library dependencies in disposable metadata copies (…
Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 50 additions & 1 deletion .github/workflows/example-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,69 @@ on:
jobs:
examples:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: runtime
env:
TEAQL_CODEGEN_DIR: ${{ github.workspace }}/generator
TEAQL_S3_ENDPOINT: http://127.0.0.1:19010
TEAQL_S3_BUCKET: teaql-java-example-ci
TEAQL_S3_ACCESS_KEY: teaql-java-example-ci
TEAQL_S3_SECRET_KEY: teaql-java-example-ci-fixture-only
steps:
- uses: actions/checkout@v4
- name: Check out runtime under test
uses: actions/checkout@v4
with:
path: runtime
persist-credentials: false
# This key is a read-only deploy key on this one private repository,
# not a personal token. Fork PRs receive no repository secrets.
- name: Check out qualified generator
uses: actions/checkout@v4
with:
repository: teaql/teaql-code-gen
ref: 554a1b7fa1e5c053e52290c3ee48925901cebe00
path: generator
ssh-key: ${{ secrets.TEAQL_CODEGEN_READONLY_DEPLOY_KEY }}
persist-credentials: false
- name: Verify pinned generator source
run: |
test "$(git -C "$TEAQL_CODEGEN_DIR" rev-parse HEAD)" = 554a1b7fa1e5c053e52290c3ee48925901cebe00
test -z "$(git -C "$TEAQL_CODEGEN_DIR" status --porcelain)"
- name: Install example verification tools
run: sudo apt-get update && sudo apt-get install -y ripgrep
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Prime third-party dependencies for offline source-paired probes
# The gate copies third-party downloads into a disposable Maven home
# and explicitly excludes every TeaQL/model artifact from that cache.
# Keep its offline checks; prepare a fresh runner before they start.
run: |
mvn -B -ntp install
node <<'NODE'
const fs = require('node:fs'), path = require('node:path'), os = require('node:os'), cp = require('node:child_process');
const runtime = process.cwd(), owned = fs.mkdtempSync(path.join(os.tmpdir(), 'teaql-ci-example-dependencies-'));
try {
const poms = cp.execFileSync('git', ['ls-files', '-z', 'examples'], {encoding: 'utf8'})
.split('\0').filter(name => name.endsWith('/lib/pom.xml'));
if (poms.length === 0) throw new Error('No generated library dependency manifests');
for (const relative of poms) {
const selected = path.join(owned, relative);
fs.mkdirSync(path.dirname(selected), {recursive: true});
fs.copyFileSync(path.join(runtime, relative), selected);
require('./scripts/pin-local-example-pom.cjs').pin(selected, runtime, owned);
cp.execFileSync('mvn', ['-B', '-ntp', '-f', selected,
'org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline'], {stdio: 'inherit'});
}
} finally {
fs.rmSync(owned, {recursive: true});
}
NODE
- name: Start dedicated S3 example fixture
run: |
docker run -d --name teaql-java-example-s3 \
Expand Down
2 changes: 1 addition & 1 deletion examples/business-id-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.teaql</groupId>
<artifactId>teaql-java-parent</artifactId>
<version>1.555-RELEASE</version>
<version>1.556-RELEASE</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>teaql-business-id-example</artifactId>
Expand Down
50 changes: 50 additions & 0 deletions examples/conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,53 @@ using an isolated temporary SQLite database for each run.

The generated Runtime Module is installed at application startup but remains a
passive manifest. Schema reconciliation is invoked separately and explicitly.

## Generated Fix postconditions and safe provenance

```bash
node examples/fix-e-alignment/verify-local.cjs
```

The unchanged three-object model supplies a parent and child with required
context-root references and create/update timestamps. Three additional
application-owned tests assert typed managed defaults before validation,
unchanged ordinary business inputs read back with generated Q/E, and exactly
one immutable, value-free provenance entry per fixed field. Invalid required
and range inputs fail after Fix with zero provider reads, writes or transactions;
corrected input then saves in a fresh invocation. Both rounds use the same
SQLite files without cleanup between them.

`TEAQL_FIX_E_EVIDENCE_DIR` selects a new absolute directory for compact logs,
hashes and databases. Build output is removed on exit. This proves the declared
clock/root and ordinary required/range vectors, not arbitrary custom context
fixers, a range-constrained generated default, security/TTL clock behavior or
the complete seven-runtime diagnostic contract.

## Caller-owned Spring transactions

```bash
node examples/conformance/spring-transactions/verify-local.cjs
```

This focused source-paired gate reuses the unchanged two-object generated library.
Business operations use generated Q/E and audited Save, with an application-owned
Spring `DataSourceTransactionManager` over a real SQLite file. Eight scenarios
run twice on the same stores: sparse no-op plus outer commit; outer rollback and
latest-intent retry; nested rollback; equal-position/repeated savepoints;
`REQUIRES_NEW` isolation; post-commit audit delivery failure; pre-provider Checker
and intent rejection; and an actual second graph-write failure followed by retry.
Independent SQL is used only for readback and controlled trigger fault injection,
not to implement application persistence. Audit observers verify committed rows
through an independent connection, outside the completed Spring owner.

Set `TEAQL_JAVA_SPRING_EVIDENCE_DIR` to a new absolute directory to retain compact
logs, JUnit XML, hashes and databases there. Builds and isolated dependency copies
are removed on exit; no TeaQL artifacts are borrowed from the Maven cache and no
shared install/deploy is performed. `--baseline` executes the same application
against the pre-fix `6d162bb0` production archive and intentionally exits nonzero
when it reproduces a failed assertion; that is not a passing runtime gate.

The complete example script includes this gate. This is SQLite plus Spring JDBC,
not JTA/reactive/custom-manager or installed-artifact acceptance. The model has no
Decimal field: exact Decimal registration for Spring-backed SQLite is a separate
provider boundary, not implemented by a fake function in this example.
2 changes: 1 addition & 1 deletion examples/conformance/lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<properties>
<java.version>21</java.version>
<spring-boot.version>4.1.1</spring-boot.version>
<teaql.version>1.555-RELEASE</teaql.version>
<teaql.version>1.556-RELEASE</teaql.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.parameters>true</maven.compiler.parameters>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion examples/conformance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<libversion>1.0.0</libversion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.parameters>true</maven.compiler.parameters>
<teaql.version>1.555-RELEASE</teaql.version>
<teaql.version>1.556-RELEASE</teaql.version>
</properties>

<repositories>
Expand Down
Loading
Loading