ADR-0156: immutable typed cross-entity reference contracts - #411
Conversation
| # ADR-0150: Always-On Composite Cross-Entity Verification | ||
|
|
||
| - Status: Proposed | ||
| - Status: Accepted |
There was a problem hiding this comment.
Accepted status overstates coverage
This marks ADR-0150 Accepted and ADR-0156 calls it already shipped, while ADR-0156 also documents that the current directed-reachability planner omits upstream members such as Z in Z -> A. Readers therefore cannot distinguish the implemented gating behavior from the still-unimplemented complete weak-component coverage promised by ADR-0150.
Knowledge Base Used: Temper spec format, codegen, and verification
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/adrs/0150-composite-cross-entity-verification.md
Line: 3
Comment:
**Accepted status overstates coverage**
This marks ADR-0150 Accepted and ADR-0156 calls it already shipped, while ADR-0156 also documents that the current directed-reachability planner omits upstream members such as `Z` in `Z -> A`. Readers therefore cannot distinguish the implemented gating behavior from the still-unimplemented complete weak-component coverage promised by ADR-0150.
**Knowledge Base Used:** [Temper spec format, codegen, and verification](https://app.greptile.com/arni-labs/-/custom-context/knowledge-base/nerdsane/temper/-/docs/temper-spec.md)
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| new or changed reference/identity contract. The audit checks: | ||
|
|
||
| - stored reference shape and target existence; | ||
| - consistency of reconstructed historical values with set-once semantics; |
There was a problem hiding this comment.
Historical audit lacks source data
The activation audit requires reconstructing historical reference values to verify set-once semantics, but existing data-only creates persist only the latest state in entity_catalog and do not append an event history. For those entities the audit can inspect the current reference but cannot determine whether it was previously reassigned, so the ADR needs to define an enforceable fallback or migration rule.
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/adrs/0156-immutable-typed-cross-entity-references.md
Line: 318
Comment:
**Historical audit lacks source data**
The activation audit requires reconstructing historical reference values to verify set-once semantics, but existing data-only creates persist only the latest state in `entity_catalog` and do not append an event history. For those entities the audit can inspect the current reference but cannot determine whether it was previously reassigned, so the ADR needs to define an enforceable fallback or migration rule.
How can I resolve this? If you propose a fix, please make it concise.
Summary
Important tradeoffs
Validation