Commit Graph
160 Commits
Author SHA1 Message Date
faumaray 44686a4444 Net: add TLS client stream and SMTP submission (closes #48) 2026-12-03 16:37:13 +03:00
faumaray a6dd7fd927 Net: add duplex HTTP response streaming (closes #37) 2026-12-03 16:03:31 +03:00
faumaray 7cfd30e550 Merge issue-44-binary-session: binary subprocess session (closes #44) 2026-12-03 15:51:05 +03:00
faumaray 9b773a4553 Merge issue-41-hmac-pbkdf2: HMAC-SHA1 and PBKDF2-HMAC-SHA256 (closes #41) 2026-12-03 15:51:04 +03:00
faumaray 540c3d9117 System: add binary subprocess session (#44) 2026-12-03 15:50:28 +03:00
faumaray 74bd01aac5 Crypto: add HMAC-SHA1 and PBKDF2-HMAC-SHA256 (#41) 2026-12-03 15:50:15 +03:00
faumaray a14d063598 Merge issue-46-toml-limits: TOML parser limits (closes #46) 2026-12-03 15:49:39 +03:00
faumaray a535f352d6 Merge issue-47-sqlite-wal: WAL frame admission and rollback reporting (closes #47) 2026-12-03 15:49:27 +03:00
faumaray 9ccfbf7838 Data: qualify TOML parser limits (#46) 2026-12-03 15:49:25 +03:00
faumaray 963aface67 Merge issue-39-lua-adapter: bounded Lua adapter (closes #39) 2026-12-03 15:48:32 +03:00
faumaray a40882522a Sqlite: WAL frame admission and automatic rollback reporting (#47) 2026-12-03 15:48:31 +03:00
faumaray ae7bedb755 Script: add optional bounded Lua runtime adapter (#39) 2026-12-03 15:47:39 +03:00
faumaray be8dd73607 Merge issue-42-bounded-diff: bounded diff APIs (#42) 2026-12-03 15:46:43 +03:00
faumaray 4ad13ce94f Text: add bounded diff APIs (#42) 2026-12-03 15:46:30 +03:00
faumaray f146df97f4 Merge issue-36-ed25519: Ed25519 sign/verify (#36) 2026-12-03 15:46:14 +03:00
faumaray f5842b97c8 Crypto: add Ed25519 sign/verify (#36) 2026-12-03 15:46:05 +03:00
faumaray 2eb3bd230a Text: add base32 codecs (#43) 2026-12-03 15:44:14 +03:00
faumaray d5cfd9cd7a chore(build): containers, toolchains and portability fixes 2026-12-03 08:10:22 +00:00
faumaray f6002c1996 Merge pull request 'Bounded PCM playback with owned samples and voice lifetimes (#18)' (#34) from issue/18-windows-pcm-playback into main 2026-12-03 08:08:41 +00:00
faumaray 706383e13f Merge pull request 'Bounded Lua evaluator with transactional host results (#17)' (#33) from issue/17-bounded-lua into main 2026-12-03 08:08:39 +00:00
faumaray 81e1d54ac3 Merge pull request 'Bounded admission gated on an exact retained publication (#16)' (#32) from issue/16-publication-gated-queue into main 2026-12-03 08:08:37 +00:00
faumaray f57b508b0a Merge pull request 'Deterministic completion-order helpers (#15)' (#31) from issue/15-completion-observer into main 2026-12-03 08:08:35 +00:00
faumaray b381d682c8 Merge pull request 'Bounded sparse 3D pages with atomic revision-checked batches (#14)' (#30) from issue/14-sparse-page-table into main 2026-12-03 08:08:33 +00:00
faumaray 8c576fdcbf Merge pull request 'Bounded epoch-qualified revision read sets (#13)' (#29) from issue/13-revision-read-set into main 2026-12-03 08:08:31 +00:00
faumaray 63eecc32c7 Merge pull request 'Bounded 3D grid-ray traversal with a documented tie policy (#12)' (#28) from issue/12-grid-ray into main 2026-12-03 08:08:29 +00:00
faumaray 86bde8b172 Merge pull request 'Checked Euclidean division for signed grid coordinates (#11)' (#27) from issue/11-euclidean-division into main 2026-12-03 08:08:26 +00:00
faumaray a0e4bfa941 Merge pull request 'Versioned deterministic random stream state and bounded draws (#10)' (#26) from issue/10-versioned-rng-state into main 2026-12-03 08:08:24 +00:00
faumaray 6c5c2dcd93 Merge pull request 'Atomic reservations and repeatable transfers in an account ledger (#8)' (#24) from issue/8-account-ledger into main 2026-12-03 08:08:22 +00:00
faumaray 86510f99f0 Merge pull request 'Instance-owned restorable id sequences with checked exhaustion (#7)' (#23) from issue/7-restorable-id-sequences into main 2026-12-03 08:08:21 +00:00
faumaray a5f21c6374 Merge pull request 'Epoch-scoped request ledger with conflicting-retry detection (#6)' (#22) from issue/6-request-ledger into main 2026-12-03 08:08:19 +00:00
faumaray 2474292462 Merge pull request 'Immutable snapshot publication with epoch/revision identity (#5)' (#21) from issue/5-immutable-publication into main 2026-12-03 08:08:17 +00:00
faumaray 34cfd9cb39 Merge pull request 'Deterministic package resolver with source diagnostics (#4)' (#20) from issue/4-package-resolver into main 2026-12-03 08:08:15 +00:00
faumaray caebb7f7f1 feat(System): bounded PCM playback with owned samples and voice lifetimes (#18) 2026-12-03 07:03:09 +00:00
faumaray e8565c6857 feat(Script): bounded Lua evaluator with transactional host results (#17) 2026-12-03 07:02:57 +00:00
faumaray 60860d167a feat(Async): bounded admission gated on an exact retained publication (#16) 2026-12-03 07:02:35 +00:00
faumaray 82c3558524 feat(Testing): deterministic completion-order helpers (#15) 2026-12-03 07:02:26 +00:00
faumaray ba3c5a6734 feat(Containers): bounded sparse 3D pages with atomic revision-checked batches (#14) 2026-12-03 06:53:44 +00:00
faumaray b062e759ba feat(Algorithms): bounded epoch-qualified revision read sets (#13) 2026-12-03 06:53:36 +00:00
faumaray 7d0ed43f76 feat(Algorithms): bounded 3D grid-ray traversal with a documented tie policy (#12) 2026-12-03 06:53:29 +00:00
faumaray f100b4c89e feat(Math): checked Euclidean division for signed grid coordinates (#11) 2026-12-03 06:53:21 +00:00
selikhov 2e8afc471b feat(Math): versioned Xoshiro state and portable bounded draws (#10)
- Public, versioned State (algorithm identity "xoshiro256**", schema
  version 1, four words in s0..s3 order) so consumers can define their
  own wire format.
- restore() validates version and rejects the absorbing all-zero state
  without touching the current stream; from_state() builds a generator
  from saved state.
- bounded(n): unbiased rejection sampling in [0, n). Documented
  zero-bound policy: n == 0 and n == 1 return 0 without consuming
  randomness.
- 7 new tests freeze raw/bounded/state outputs for seed 42 (portable
  across targets), verify save/restore suffix equality, invalid-state
  rejection, zero/one bounds, large non-power-of-two ranges,
  independent interleaved streams and discard equivalence.
2026-12-03 09:46:15 +03:00
selikhov f3176c2b54 feat(System): bounded Windows read through one handle, with coverage (#9)
The Windows read_file_bounded path was implemented together with #3 using
a single CreateFileW handle. This adds the #9 acceptance coverage and
documents the contract:

- The size is checked before allocation and every chunk is re-checked, so
  growth after the initial size check still fails with limit_exceeded and
  never returns partial contents.
- Windows shares read/write/delete, so another process may append,
  rename or replace the path while a background read is pending; the
  read continues from the opened handle and sees one coherent version.
- Tests: empty, binary, Unicode path, exact limit, over limit before
  reading, and (POSIX) a stream that grows past the limit mid-read.
2026-12-03 09:45:14 +03:00
selikhov a4851c2c20 feat(Containers): restorable account ledger with atomic reservations (#8)
- AccountLedger: caller-keyed accounts (owner, balance, capacity) with
  atomic multi-account reserve, release without ownership change and
  transfer to the destination (next) owner.
- Explicit outcomes for insufficient balance, capacity exhaustion,
  overflow, unknown account/operation, invalid phase and limits.
- Every committed phase is recorded by operation id, so repeated
  requests replay the recorded outcome instead of applying twice;
  failed attempts change nothing and remain retryable.
- State is a plain value: save()/restore() survive a partially completed
  transfer and replay applies exactly once after restore.
- 11 tests: conservation, last-unit contention, atomic multi-key failure,
  cancellation before pickup and during delivery, restore/replay,
  overflow, operation-id conflict, account/operation limits and invalid
  restore state.
2026-12-03 09:44:21 +03:00
selikhov f2b002eb26 feat(Core): instance-owned restorable id sequences with checked exhaustion (#7)
- IdSequence<Tag, Rep> is per-instance, copyable and restorable, so two
  worlds in one process allocate independently and a saved high-water
  mark replays exactly.
- next()/next_batch() check exhaustion before mutating; failed requests
  leave the sequence and application records untouched. Batches are
  all-or-nothing.
- High-water only moves forward: erased records keep their ids retired.
- Fixed-width Rep (default uint64_t) plus an explicit exhausted flag make
  saved state canonical and portable; restore() rejects impossible state.
- 10 standalone tests cover independence, erase/restore, copy replay,
  atomic batches, exhaustion, final-boundary batches and invalid state.
2026-12-03 09:41:50 +03:00
selikhov afd4d99a2d feat(Messaging): epoch-scoped request ledger with conflict detection (#6)
- RequestLedger<Payload, Result, PayloadEqual> keys idempotent host
  requests by (epoch, trusted client, request id).
- check() admits the first request, replays a recorded result for an
  exact repeat (including a rejected outcome), reports in_progress while
  the request is still running, rejects a changed payload and rejects
  keys from an obsolete/future epoch before side effects.
- record() stores the caller-defined result exactly once; results are
  never overwritten.
- Capacity/admission/archival is explicit: entries are never evicted
  within an epoch (capacity_exceeded instead), and advancing the epoch
  clears memory. An old request number therefore cannot execute a second
  time after cleanup.
- 8 tests: replay, rejected outcome, payload conflict, delayed retry
  after newer operations, epoch rollover, capacity pressure, in-flight
  state/immutable result and non-advancing epoch rejection.
2026-12-03 09:40:47 +03:00
selikhov 37c3cd4383 feat(Core): immutable snapshot publication with epoch/revision identity (#5)
- Publication<T>: single-writer, multi-reader publication of complete
  immutable values. acquire() returns a retainable Snapshot; a retained
  snapshot stays coherent across any number of later publishes and keeps
  the value alive until the last reader releases it.
- publish() is compare-and-publish over one atomic (value + version)
  state: an expected epoch must match, and the new version must advance
  (higher epoch, or same epoch with higher revision). Rejected publishes
  leave the last good publication untouched, so a failed preparation
  cannot corrupt readers.
- publish_next()/publish_epoch() convenience helpers.
- 7 tests: retained snapshots, stale-epoch rejection, non-advancing
  revision, epoch reset, last-reader resource release, failed
  preparation preservation and concurrent reader coherence.
2026-12-03 09:39:56 +03:00
selikhov d30384d981 feat(Update): deterministic package resolver with diagnostics (#4)
- resolve_packages() takes caller-supplied package descriptions (id,
  exact version, content digest, exclusive capabilities, dependency
  ranges) plus selected root ids and returns an exact dependency set.
- Deterministic: canonical input ordering, descending SemVer candidate
  order and canonical requirement order make the result invariant under
  permutation of installed/selected input.
- Frozen PackageIdentity compares build metadata and content digest in
  addition to SemVer precedence, so equal-precedence rebuilds are never
  conflated; ambiguous same-id/same-precedence inputs are rejected.
- Actionable diagnostics carry kind, input package, field
  (e.g. dependencies[1].range) and related id: missing dependency,
  incompatible version, cycle, ambiguity, competing exclusive providers.
- Bounded package/edge/search-node limits with backtracking search.
- 13 standalone tests cover closure, order invariance, diagnostics,
  backtracking, cycles, capabilities, frozen identity and limits.
2026-12-03 09:38:27 +03:00
selikhov 51ceb081ac feat(System): transactional file replacement on Windows x64 (#3)
- replace_file/atomic_write gain a Win32 implementation: exclusive
  CREATE_NEW staging in the destination directory, WriteFile loop,
  FlushFileBuffers for durable_sync, MoveFileExW(MOVEFILE_REPLACE_EXISTING
  [| MOVEFILE_WRITE_THROUGH]) for atomic publication and a parent-directory
  flush for durability.
- read_file_bounded/write_file implemented on Windows so the contract is
  usable and testable there.
- Documented Windows guarantees per durability level, including the
  application-crash vs power-loss distinction and post-rename failure
  reporting (sync_parent + visible_on_disk + durability_unknown).
- Added a portable contract test (first creation, replacement, Unicode
  name, pre-publication faults preserving old contents, post-publication
  fault reporting, no staging leftovers, live destination never deleted)
  and a concurrent-writer atomicity test.
2026-12-03 09:34:50 +03:00
faumaray c6de7842f7 fix(wave11): resolve adversarial review findings in EventBus, IO, and Runtime 2026-12-01 22:03:35 +03:00
faumaray 7bea7df46d feat(runtime): add 8-step Host start, SignalGate, and 11-phase structured shutdown (S-RUNTIME-02/03) 2026-12-01 16:58:29 +03:00