[T-019] 建立 Brain 到 Bell 的可靠事件入站链路 #67

Closed
opened 2026-08-11 15:03:48 +08:00 by ila · 5 comments
Owner

目标

建立默认关闭的 Brain SQLite Outbox → Bell HMAC ingress 可靠纵切,冻结身份绑定、认证、持久重试和跨重启幂等语义。

规格

  • 任务文件:docs/tasks/T-019.md
  • 依赖:T-015、T-017(均 DONE)
  • 写路径与验收门禁以任务文件为准

边界

不包含证据切片、规则/Alert/ack、公共 JWT/OIDC、生产模型或多路容量验收。

## 目标 建立默认关闭的 Brain SQLite Outbox → Bell HMAC ingress 可靠纵切,冻结身份绑定、认证、持久重试和跨重启幂等语义。 ## 规格 - 任务文件:`docs/tasks/T-019.md` - 依赖:T-015、T-017(均 DONE) - 写路径与验收门禁以任务文件为准 ## 边界 不包含证据切片、规则/Alert/ack、公共 JWT/OIDC、生产模型或多路容量验收。
ila added the kind/task label 2026-08-11 15:03:48 +08:00
ila added the
type
code
status
todo
priority
p0
labels 2026-08-11 15:04:26 +08:00
ila self-assigned this 2026-08-11 15:04:46 +08:00
ila added
status
doing
and removed
status
todo
labels 2026-08-11 15:04:47 +08:00
Author
Owner

CLAIM
agent: codex
context_ref: b7fe44eeb0
claim_branch: claims/T-019
work_branch: agent/codex/T-019
write_paths:

  • docs/tasks/T-019.md
  • docs/contracts/
  • Brain/
  • Bell/
  • deploy/postgres/
  • scripts/test_postgres.ps1
  • docs/00-ai-start-here.md
  • docs/03-tech-stack.md
  • docs/04-architecture.md
  • docs/06-tasks.md
  • docs/api.md
  • docs/current-state.md
  • tests/test_brain_event_ingress_contract.py
  • tests/test_postgres_contract.py
CLAIM agent: codex context_ref: b7fe44eeb0caf8d41abef365ec2100c74373321f claim_branch: claims/T-019 work_branch: agent/codex/T-019 write_paths: - docs/tasks/T-019.md - docs/contracts/ - Brain/ - Bell/ - deploy/postgres/ - scripts/test_postgres.ps1 - docs/00-ai-start-here.md - docs/03-tech-stack.md - docs/04-architecture.md - docs/06-tasks.md - docs/api.md - docs/current-state.md - tests/test_brain_event_ingress_contract.py - tests/test_postgres_contract.py
Author
Owner

CLAIM UPDATE
agent: codex
reason: T-017 produces zone_entry; event v0.1 requires every new kind to be registered before the transport can accept it.
added_write_path:

  • docs/raw/contracts/README.md
    conflict_check: Issue #22/T-007 is status/waiting and does not reserve this path; no active issue overlaps.
CLAIM UPDATE agent: codex reason: T-017 produces zone_entry; event v0.1 requires every new kind to be registered before the transport can accept it. added_write_path: - docs/raw/contracts/README.md conflict_check: Issue #22/T-007 is status/waiting and does not reserve this path; no active issue overlaps.
Author
Owner

CLAIM UPDATE
agent: codex
reason: T-019 exposes sanitized Outbox facts in engine state; the existing Brain engineering page needs a minimal non-sensitive delivery-status view so operators do not confuse the 100-item memory ring with durable delivery.
added_write_path:

  • docs/design/brain/index.html
    conflict_check: Issue #22/T-007 is status/waiting and does not reserve this path; no active issue overlaps.
CLAIM UPDATE agent: codex reason: T-019 exposes sanitized Outbox facts in engine state; the existing Brain engineering page needs a minimal non-sensitive delivery-status view so operators do not confuse the 100-item memory ring with durable delivery. added_write_path: - docs/design/brain/index.html conflict_check: Issue #22/T-007 is status/waiting and does not reserve this path; no active issue overlaps.
Author
Owner

REVIEW READY

commit: bd964e8831
pull_request: #69

evidence:

  • ./init.ps1 PASS: root 77/77, Brain 30/30, Sense/Bell generate/test/vet/build PASS
  • ./scripts/test_postgres.ps1 PASS on isolated PostgreSQL 17.10: migrations 001-017 replayed twice; runtime least privilege, 8-way same-source idempotency, privacy fail-closed, immutable event/receipt verified; temporary cluster cleaned and existing 5432 listener unchanged
  • Brain compileall PASS
  • cross-language ingress contract tests 4/4 PASS
  • validate_agent_context, root unittest, validate_harness_governance PASS
  • git diff --cached --check and staged sensitive-value review PASS
  • no real camera or GPU required; results do not claim algorithm accuracy, multi-camera capacity, or production SLA
REVIEW READY commit: bd964e88317958c9e3b425d7d957ea034c02df62 pull_request: #69 evidence: - ./init.ps1 PASS: root 77/77, Brain 30/30, Sense/Bell generate/test/vet/build PASS - ./scripts/test_postgres.ps1 PASS on isolated PostgreSQL 17.10: migrations 001-017 replayed twice; runtime least privilege, 8-way same-source idempotency, privacy fail-closed, immutable event/receipt verified; temporary cluster cleaned and existing 5432 listener unchanged - Brain compileall PASS - cross-language ingress contract tests 4/4 PASS - validate_agent_context, root unittest, validate_harness_governance PASS - git diff --cached --check and staged sensitive-value review PASS - no real camera or GPU required; results do not claim algorithm accuracy, multi-camera capacity, or production SLA
ila added
status
review
and removed
status
doing
labels 2026-08-11 15:41:52 +08:00
ila closed this issue 2026-08-11 15:42:05 +08:00
ila added
status
done
and removed
status
review
labels 2026-08-11 15:42:29 +08:00
Author
Owner

DONE

pull_request: #69
merge_commit: 47b91b691c
work_commit: bd964e8831

Remote main contains the T-019 work commit, local main was fast-forwarded to the merge commit, and the worktree is clean. The task file on main is DONE.

DONE pull_request: #69 merge_commit: 47b91b691ca86678bcdfb4ceac50d2d947d7d9c6 work_commit: bd964e88317958c9e3b425d7d957ea034c02df62 Remote main contains the T-019 work commit, local main was fast-forwarded to the merge commit, and the worktree is clean. The task file on main is DONE.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: opc/yovision#67