feat/colibri-hydration-engine #148

Merged
clawdie merged 2 commits from feat/colibri-hydration-engine into main 2026-10-08 23:32:16 +02:00
Owner
No description provided.
Implement PR2 System-0 host topology and dynamic headroom hydration:
- 4-timestamp contract (colibri:bootEpoch, colibri:topologyObservedAt,
  colibri:dynamicHeadroomObservedAt, colibri:hydrationCompletedAt) with
  backward compatibility for colibri:observedAt.
- Deterministic FreeBSD boottime epoch parsing (urn:boottime:<sec>.<usec>).
- Atomic hydration marker management with fail-closed freshness checks.
- Pluggable HostProbe abstraction with FreeBSD, Linux, and Mock probes.
- Hydrator engine with System-0 initial projection and 60s headroom refresh.
- Static build provenance seed generator strictly excluding runtime facts.
- cmd/colibri-hydrate CLI tool supporting one-shot hydration and ticker modes.

All gates clean: gofmt, go vet, CGO_ENABLED=0 (linux/amd64 and freebsd/amd64),
go test -race, scripts/ci-checks.sh.
fix(memory): emit valid SPARQL updates and keep hydration timestamps consistent
Some checks failed
CI / markdown (pull_request) Successful in 9s
CI / port (pull_request) Successful in 1s
CI / agent-jail-pkgs (pull_request) Successful in 1s
CI / python-tests (pull_request) Successful in 15s
CI / go (pull_request) Successful in 13s
format-check / prettier (pull_request) Successful in 5s
leak-guard / guard (pull_request) Successful in 1s
ci-gate / gate (pull_request) Has been cancelled
c47db01e4a
- UpdateGraph wrapped a Turtle document's @prefix directives inside
  INSERT DATA { ... }, which is invalid SPARQL and rejected by Oxigraph.
  normalizeToSPARQLUpdate now hoists @prefix/@base to PREFIX/BASE ahead of
  the insert; add FormatSPARQLUpdate for the ingestion path.
- Hydrate projects colibri:hydrationCompletedAt into the graph (was
  marker-only), so all four contract timestamps are present.
- RefreshHeadroom preserves the boot-scoped hydrationCompletedAt instead of
  bumping it on every tick.
- Validate: completion must not precede topology; dynamic headroom may
  legitimately be observed after completion (refreshed on its own cadence).
- ParseBootEpoch rejects urn:uuid (a dead path that can never match a host
  urn:boottime epoch).
- FreeBSD headroom includes reclaimable inactive pages (capped at physmem).
- Marker mode 0640 instead of world-readable 0644.
- Tests: Turtle->update regression, hydrationCompletedAt in graph and
  preserved across refresh, relaxed ordering, uuid rejection.

Attribution: Sam & Pi (domedog)
clawdie deleted branch feat/colibri-hydration-engine 2026-10-08 23:32:16 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
clawdie/colibri!148
No description provided.