timed is the time service daemon for EriX.
  • Rust 99%
  • Linker Script 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Erik Inkinen 024b6295e4
All checks were successful
CI / markdown (push) Successful in 15s
CI / test (push) Successful in 1m5s
chore: Merge native CLI development into main
Merge the selected feature/native-cli history with an explicit two-parent commit so main retains the development lineage and the validated source snapshot. The resulting tree is identical to the selected feature commit; no dependency pins or runtime behavior are changed by this merge.

Previous main: be817af9f5
Selected feature: 0202e483ef

Publish this integration point following the requested cross-repository merge. Preserve the feature branch and immutable dependency objects for reproducibility; do not squash, rebase or rewrite existing commits.
2026-09-12 08:28:52 +03:00
.github build: Pin dependency and CI helper source commits 2026-09-12 07:43:03 +03:00
src fix: Report calibrated monotonic source truthfully 2026-09-07 21:58:44 +03:00
.editorconfig Initial commit 2026-03-05 10:48:19 +01:00
.gitignore Ignore local .ci workspace 2026-04-15 21:53:04 +03:00
.markdownlint-cli2.yaml Tighten CI markdown policy 2026-05-22 15:10:42 +03:00
ARCHITECTURE.md docs: State the calibrated counter stability boundary 2026-09-07 22:00:02 +03:00
Cargo.toml build: Pin dependency and CI helper source commits 2026-09-12 07:43:03 +03:00
CODE_OF_CONDUCT.md docs: Synchronize shared contribution and review policies 2026-09-12 06:38:22 +03:00
CONTRIBUTING.md build: Pin dependency and CI helper source commits 2026-09-12 07:43:03 +03:00
LICENSE Initial commit 2026-03-05 10:48:19 +01:00
linker.ld Keep stack reserve pages in runtime images 2026-04-24 09:13:07 +03:00
README.md fix: Report calibrated monotonic source truthfully 2026-09-07 21:58:44 +03:00
ROADMAP.md fix: Report calibrated monotonic source truthfully 2026-09-07 21:58:44 +03:00
rustfmt.toml timed: drop unstable rustfmt options for stable toolchains 2026-03-23 10:19:57 +02:00
SECURITY.md docs: Synchronize shared contribution and review policies 2026-09-12 06:38:22 +03:00

timed

timed is the time service daemon for EriX.

EriX is a clean-room, capability-based microkernel operating system written entirely in Rust.

Technical requirements are tracked in the EriX requirements, conventions, and project documentation.

See:

  • docs for design documents, specifications, and development plans.
  • Related architecture repositories for kernel, services, libraries, drivers, and integration tooling.

Purpose of This Repository

This repository implements the EriX time service daemon. Its purpose in EriX is to provide the time service role through explicit IPC and startup authority.

Functionally, it implements the daemon runtime, state model, IPC handling, and validation tests. The repository keeps the implementation, interface contracts, tests, and documentation for that behavior in one reviewable ownership boundary.

The maintained responsibilities are:

  • implement the time service runtime and state model
  • validate startup authority before accepting IPC requests
  • serve monotonic, legacy synthetic wall-clock, and source-qualified UTC wall-clock snapshots through the assigned public endpoint
  • label production monotonic snapshots CALIBRATED_PROCESSOR, using actual elapsed nanosecond ticks from the boot-calibrated kernel source rather than query-count or interrupt-count progress
  • accept stable RTC samples only through one separate receive-only private provider endpoint and advance accepted bases with monotonic time
  • return a typed zero-sequence rejection for a fixed-size malformed provider body only when its request identifier and private operation remain exact
  • leave blocking deadline delivery unimplemented until the kernel exposes an asynchronous scheduler-backed contract
  • keep service behavior, tests, and authority invariants documented

Clean-Room Policy

EriX follows a strict clean-room philosophy:

  • No external source code may be copied.
  • No external Rust crates are allowed.
  • No code generation tools that embed third-party code.
  • All code must be authored within the project.

Violations will result in rejection of the contribution.

License

All EriX repositories are licensed under the ISC License.

Development Model

EriX development is modular, deterministic, reproducible, authority-explicit, security-first, and self-hosting oriented.

This repository follows the project roadmap and the validation rules documented in its own roadmap.

Build and test

cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets --all-features

Dependencies

  • lib-bootstrap
  • lib-capabi
  • lib-ipc
  • ipc-syscall-x86_64

No external crates are used.

Validation Note

The host/test QUERY_CAP fallback remains cfg-scoped so runtime/release builds stay warning-free.

Dynamic Boot Artifact Evidence

The runtime image contract documents timed as a dynamic boot artifact. The image build packages the time service daemon as an ELF64 x86_64 ET_DYN executable with .erix_dynlink metadata in the signed dynlink-store and mirrors it under /lib/erix/dynlink with its required shared objects.

Startup remains rootd through procd staged dynamic creation before dynlinkd; authority remains the dedicated time-control endpoint and startup peers. Dynamic packaging and filesystem mirror records are evidence and launch inputs only; they do not grant filesystem, loader, object-store, service-discovery, provider-bypass, block-device, or dynlinkd authority. timed receives only the documented startup endpoints, peers, and capabilities for its role.

Governance Principles

timed governance is scoped to time-service publication and bounded time queries.

The scoped governance rules are:

  • It answers time requests only through the assigned service endpoint.
  • It keeps time source assumptions documented and deterministic for tests.
  • It validates request bounds before returning timestamps or timer state.
  • It does not receive broad scheduling, interrupt, or hardware-clock authority.
  • Timed receives no CMOS I/O authority and the RTC provider receives no public client route. The private receive is polled before a one-tick-bounded public receive, with no nested receive while a caller awaits reply.
  • Service replies retain their shared transport buffer through delivery.

Authority Boundaries

  • timed operates only through startup-assigned service capabilities.
  • New authority must be represented in bootstrap/capability validation and integration tests before use.
  • Time requests carry no authority. Unexpected receipts are retired before rejection; malformed or uncleanable receipt metadata fails stop.
  • RTC sample sequence numbers are consumed monotonically even when newer evidence is rejected, preventing replay or corrected-content equivocation.
  • A malformed private body cannot create a trusted base. Timed preserves only its descriptive request identifier when the exact private operation remains recognizable; wrong operations and wrong-sized bodies receive no typed correlation payload.

Contact

Development occurs in EriX organization and discussions happen in issues and design documents.

No decisions are considered valid without documented rationale.

Maintainers can be reached via email: admin@erikinkinen.fi.