Repository navigation
Conversation
Contributor
|
Documentation preview: https://triplex-docs-pr-118.bjacobso.workers.dev Commit: e1ff2ef |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Phase 1 of the scaling roadmap (Hot/Cold Storage Tiering + DuckDB
QueryExecutor) along with five scaling and agent-workflow RFCs underdocs/rfcs/.Implementation (
packages/core,packages/duckdb)"duckdb"toSqlDialectand browser-safeDuckDbDialectinpackages/core/src/dialects/duckdb.ts.packages/duckdb(@triplex-build/triplex-duckdb) with@duckdb/[email protected]pinned inpnpm-workspace.yaml.DuckDbQueryExecutorovermakeSqlQueryExecutor/SqlStatementRunner, passing the full shared Triplex conformance corpus (makeTriplesConformanceSuite,makeSealedStorageSuite,makeSensitiveConformanceSuite) plus direct Zstdread_parquetviews.packages/duckdb/src/compaction/):ColdManifest: Content-addressed (ContentId) JSON manifest schema + CASColdManifestStore.ParquetCompactor: Archives immutable retracted facts (retracted_position <= W) and historical journal rows (position <= W) to Zstd-compressed sorted Parquet, preserves[tripleId, op]journal reference integrity, uses a crash-safe/idempotent two-phase publish, and supports periodic full live snapshot export atP >= W.packages/duckdb/src/tiered/):FederatedViews: DuckDBUNION ALLviews over attached hot SQL + cold Parquet with overlap deduplication (QUALIFY ROW_NUMBER()) and sensitive-value / cold erasure tombstone handling.TieredQueryExecutor&TieredTriples: Routes live/recent cuts (> W) 100% to hot SQL (0 DuckDB calls), federates historical/cross-boundary cuts across hot + cold, preserves opaque pagination cursors acrossW, and maintains pre- vs. post-compaction parity forquery,queryPage,history,transactions,transactionsForEntity,Why.why, andSensitive.Scaling & Agent-Workflow RFCs (
docs/rfcs/,docs/roadmap.md)docs/rfcs/cold-tier-duckdb.mddocs/rfcs/distributed-datalog.mddocs/rfcs/hybrid-retrieval-datalog.mddocs/rfcs/agent-branches.mddocs/rfcs/incremental-derivations-and-bounded-reads.mddocs/roadmap.mdwith links to all new RFCs andtx1-scoped-concurrency.md.Verification
pnpm --filter @triplex-build/triplex-duckdb test: 3/3 test files, 23/23 tests passed (conformance.test.ts4/4,compaction.test.ts9/9,tiered.test.ts10/10)pnpm --filter @triplex-internal/core build && typecheck: passedpnpm --filter @triplex-build/triplex-duckdb build && typecheck: passedoxfmt --checkandoxlinton all new/modified files: 0 warnings, 0 errorsnode scripts/check-markdown-code.mjs && pnpm docs:build: passed (118 snippets, 60 local doc links)