[T-010] 建立 Area 准入投影与设备操作审计 Outbox 基础 #35

Closed
opened 2026-08-07 18:06:10 +08:00 by ila · 1 comment
Owner

任务映射

  • task_id: T-010
  • task_file: docs/tasks/T-010.md
  • context_ref: 【领取时的默认分支提交 SHA】
  • deps: T-009
  • write_paths:
    • docs/tasks/T-010.md
    • docs/contracts/
    • deploy/postgres/
    • scripts/test_postgres.ps1
    • Sense/internal/device/
    • Sense/internal/store/
    • Sense/README.md
    • docs/04-architecture.md
    • docs/06-tasks.md
    • docs/api.md
    • docs/current-state.md
    • tests/test_postgres_contract.py
    • tests/test_area_audit_contract.py

问题与方案

T-008 的必填 area_id 仍缺少 Bell Area 策略投影;设备高风险写入也缺少与期望态同事务的持久化审计 Outbox。完整规格见 docs/tasks/T-010.md。

验收入口

  • ./scripts/test_postgres.ps1 -PgRoot D:\pgsql17
  • python -m unittest discover -s tests -p "test_area_audit_contract.py"
  • ./init.ps1

协作状态

  • expected_claim_branch: claims/T-010
  • work_branch: 【领取后填写】
  • claimed_by: 【领取后填写非敏感 agent-id】
  • lease_until: 【领取后填写 RFC 3339 时间】
## 任务映射 - task_id: `T-010` - task_file: `docs/tasks/T-010.md` - context_ref: `【领取时的默认分支提交 SHA】` - deps: `T-009` - write_paths: - `docs/tasks/T-010.md` - `docs/contracts/` - `deploy/postgres/` - `scripts/test_postgres.ps1` - `Sense/internal/device/` - `Sense/internal/store/` - `Sense/README.md` - `docs/04-architecture.md` - `docs/06-tasks.md` - `docs/api.md` - `docs/current-state.md` - `tests/test_postgres_contract.py` - `tests/test_area_audit_contract.py` ## 问题与方案 T-008 的必填 `area_id` 仍缺少 Bell Area 策略投影;设备高风险写入也缺少与期望态同事务的持久化审计 Outbox。完整规格见 `docs/tasks/T-010.md`。 ## 验收入口 - `./scripts/test_postgres.ps1 -PgRoot D:\pgsql17` - `python -m unittest discover -s tests -p "test_area_audit_contract.py"` - `./init.ps1` ## 协作状态 - expected_claim_branch: `claims/T-010` - work_branch: `【领取后填写】` - claimed_by: `【领取后填写非敏感 agent-id】` - lease_until: `【领取后填写 RFC 3339 时间】`
ila added the kind/task label 2026-08-07 18:06:10 +08:00
ila added the
type
code
status
todo
priority
p0
labels 2026-08-07 18:07:02 +08:00
ila self-assigned this 2026-08-07 18:07:46 +08:00
ila added
status
doing
and removed
status
todo
labels 2026-08-07 18:07:48 +08:00
Author
Owner

CLAIM
task: T-010
claimed_by: codex
allocated_by: ila
context_ref: 0b40cf16c3
claim_branch: claims/T-010
work_branch: agent/codex/T-010
write_paths:

  • docs/tasks/T-010.md
  • docs/contracts/
  • deploy/postgres/
  • scripts/test_postgres.ps1
  • Sense/internal/device/
  • Sense/internal/store/
  • Sense/README.md
  • docs/04-architecture.md
  • docs/06-tasks.md
  • docs/api.md
  • docs/current-state.md
  • tests/test_postgres_contract.py
  • tests/test_area_audit_contract.py
    claimed_at: 2026-08-07T10:07:48Z
    lease_until: 2026-08-07T22:07:48Z
CLAIM task: T-010 claimed_by: codex allocated_by: ila context_ref: 0b40cf16c3e72f4670c33a497e7d533d663ba135 claim_branch: claims/T-010 work_branch: agent/codex/T-010 write_paths: - docs/tasks/T-010.md - docs/contracts/ - deploy/postgres/ - scripts/test_postgres.ps1 - Sense/internal/device/ - Sense/internal/store/ - Sense/README.md - docs/04-architecture.md - docs/06-tasks.md - docs/api.md - docs/current-state.md - tests/test_postgres_contract.py - tests/test_area_audit_contract.py claimed_at: 2026-08-07T10:07:48Z lease_until: 2026-08-07T22:07:48Z
ila added
status
review
and removed
status
doing
labels 2026-08-07 18:23:46 +08:00
ila closed this issue 2026-08-07 18:24:49 +08:00
ila added
status
done
and removed
status
review
labels 2026-08-07 18:24:54 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: opc/yovision#35