chore: initialize EverOS 1.0.0

md-first memory extraction framework for AI agents.

Markdown is the single source of truth; SQLite holds state and LanceDB
provides the rebuildable vector + BM25 + scalar index. The codebase follows
a single-direction DDD layering (entrypoints -> service -> memory -> infra,
with component / core / config cross-cutting) enforced by import-linter.

Engineering surface:
- Coding conventions in .claude/rules/ (path-scoped) and workflows in
  .claude/skills/ (/commit, /new-branch, /pr).
- GitHub Actions CI runs make lint + test + integration; pre-commit mirrors
  the gates locally (ruff, hygiene hooks, gitlint commit-msg).
- Commit messages follow Conventional Commits, enforced by gitlint.
- make lint also enforces datetime two-zone discipline and OpenAPI drift.
This commit is contained in:
Elliot Chen
2026-06-05 22:35:51 +08:00
commit 518b8eca85
636 changed files with 160553 additions and 0 deletions

View File

@ -0,0 +1,29 @@
from __future__ import annotations
import pytest
from pydantic import ValidationError
from everos.infra.ome.gates import Counter
def test_counter_accepts_threshold() -> None:
c = Counter(threshold=5)
assert c.threshold == 5
assert c.cooldown_seconds == 0
assert c.event_field is None
def test_counter_with_bucket_field() -> None:
c = Counter(threshold=5, event_field="user_id", cooldown_seconds=120)
assert c.event_field == "user_id"
assert c.cooldown_seconds == 120
def test_counter_rejects_zero_threshold() -> None:
with pytest.raises(ValidationError):
Counter(threshold=0)
def test_counter_rejects_negative_cooldown() -> None:
with pytest.raises(ValidationError):
Counter(threshold=5, cooldown_seconds=-1)