Commit Graph
244 Commits
Author SHA1 Message Date
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 72733e2b93 Merge pull request 'Bounded Windows read coverage and sharing documentation (#9)' (#25) from issue/9-windows-bounded-read into main 2026-12-03 08:08:13 +00:00
faumaray dc18d64b18 Merge pull request 'Windows x64 transactional file replacement (#3)' (#19) from issue/3-windows-transactional-replace into main 2026-12-03 08:08:02 +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 df2ed107e2 feat(System): bounded PCM playback with owned samples and voice lifetimes (#18) 2026-12-03 07:03:05 +00:00
faumaray e8565c6857 feat(Script): bounded Lua evaluator with transactional host results (#17) 2026-12-03 07:02:57 +00:00
faumaray 2c6e4eab82 feat(Script): bounded Lua evaluator with transactional host results (#17) 2026-12-03 07:02:55 +00:00
faumaray 359e0630c7 feat(Script): bounded Lua evaluator with transactional host results (#17) 2026-12-03 07:02:53 +00:00
faumaray 025d97c6f6 feat(Script): bounded Lua evaluator with transactional host results (#17) 2026-12-03 07:02:50 +00:00
faumaray 08038000cc feat(Script): bounded Lua evaluator with transactional host results (#17) 2026-12-03 07:02:48 +00:00
faumaray ba49098798 feat(Script): bounded Lua evaluator with transactional host results (#17) 2026-12-03 07:02:45 +00:00
faumaray 60860d167a feat(Async): bounded admission gated on an exact retained publication (#16) 2026-12-03 07:02:35 +00:00
faumaray 5a076cd8f2 feat(Async): bounded admission gated on an exact retained publication (#16) 2026-12-03 07:02:33 +00:00
faumaray 82c3558524 feat(Testing): deterministic completion-order helpers (#15) 2026-12-03 07:02:26 +00:00
faumaray 3953891511 feat(Testing): deterministic completion-order helpers (#15) 2026-12-03 07:02:24 +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 00eefe0521 feat(Containers): bounded sparse 3D pages with atomic revision-checked batches (#14) 2026-12-03 06:53:42 +00:00
faumaray b062e759ba feat(Algorithms): bounded epoch-qualified revision read sets (#13) 2026-12-03 06:53:36 +00:00
faumaray dddcc2b2f0 feat(Algorithms): bounded epoch-qualified revision read sets (#13) 2026-12-03 06:53:34 +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 acd4ff40f0 feat(Algorithms): bounded 3D grid-ray traversal with a documented tie policy (#12) 2026-12-03 06:53:27 +00:00
faumaray f100b4c89e feat(Math): checked Euclidean division for signed grid coordinates (#11) 2026-12-03 06:53:21 +00:00
faumaray 4f67fd2b93 feat(Math): checked Euclidean division for signed grid coordinates (#11) 2026-12-03 06:53:17 +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 7b0fea6095 Merge branch 'feat/roadmap-p2-wave11' (Wave 11 Async, Time, IO, Runtime execution-path completion) 2026-12-01 22:33:50 +03:00
faumaray 3c018d6dad docs(workflow): record Wave 11 completion and verification evidence 2026-12-01 22:33: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
faumaray 50029e1f7b feat(io): add Driver::run, embedded pump_until, and shutdown conformance tests (S-IO-04) 2026-12-01 16:25:20 +03:00
faumaray ef85ce07b7 feat(async): add EventBus injected/joined lifecycle and Observable reentrancy queue (M-ASYNC-05) 2026-12-01 10:27:50 +03:00