Skip to content

Control Plane: implement append-only canonical event store #15

Description

@mdheller

Context

The control-plane schema spine is now in-repo. The next runtime step is an append-only local event store that can persist validated sourceos.event.v0.1 events without turning raw logs into the operator-facing product.

Scope

Implement a minimal local-first event store for canonical events.

Deliverables

  • sourceos_eventctl.py subcommands or successor CLI commands for write, list, show, and verify.
  • Append-only JSONL storage under an explicit local path.
  • Event validation before write using schemas/sourceos-event.schema.json.
  • Stable event ID lookup.
  • Basic integrity check over the JSONL file.
  • Documentation and examples.

Acceptance criteria

  • make validate passes.
  • A generated policy-decision event can be written to the event store.
  • The event can be listed, shown by ID, and revalidated.
  • Invalid events are rejected before persistence.
  • No network access is used.

Non-goals

  • Production daemonization.
  • Remote replication.
  • Destructive repair actions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions