Skip to content

Commit 52b9c03

Browse files
committed
docs(d5): mark the producer-less adopt/return path kinds RESERVED (TZ D3)
The solver's contrib() understands adopt and return as must-transfer, but skeleton derivation never emits them (adopt awaits interprocedural T4b ctor-adopt summaries; a returned param is deliberately not a consume signal until owned return values are modelled). Without the marker a port would carry dead semantics as live and could expect them from real facts. The PathAction docstring now names both as RESERVED with each kind's activation condition. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LBmDyLWHqoQUGqiydSxroi
1 parent 1dd9a1f commit 52b9c03

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎docs/notes/interprocedural-tz.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ all-paths ⇒ may); release + throw-ветка (по политике `--flow-lo
215215
`:1510-1513`). В спеке пометить оба kind'а «reserved, производитель отсутствует»
216216
— иначе порт унесёт мёртвую семантику как живую.
217217

218+
> **Статус: зафиксировано.** Докстринг `PathAction` (`ownership.py`) теперь
219+
> явно помечает оба kind'а RESERVED с условием активации каждого (adopt —
220+
> T4b-сводки, return — owned-return-value modelling) и указанием порту: нести
221+
> семантику, не ожидать появления из реальных фактов.
222+
218223
### D4: `aliasOf` гаснет на первом же хопе forward-цепочки
219224

220225
Документированная деградация (`ownership.py:373-380`). В спеку — как правило,

‎ownlang/ownership.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,14 @@ class PathAction:
8080
kind: `dispose` (releases it) | `adopt` (stores it into an owning field) |
8181
`return` (returns it — escapes to the caller of *this* method) | `borrow`
8282
(only reads/uses) | `forward` (passes it to `callee` at position `arg`).
83-
The first three are ownership *leaving the caller* on that path (`must`)."""
83+
The first three are ownership *leaving the caller* on that path (`must`).
84+
85+
RESERVED kinds (TZ D3): `adopt` and `return` are understood by the solver but
86+
have NO production producer yet — `_build_skeletons` (ownir.py) emits only
87+
`dispose`/`borrow`/`forward`. `adopt` awaits interprocedural T4b (a ctor-adopt
88+
summary), `return` awaits owned-return-value modelling (a returned param is
89+
deliberately NOT a consume signal today, see `_infer_param_effect`). A port
90+
must carry their semantics but must not expect to see them from real facts."""
8491

8592
kind: str
8693
callee: str = ""

0 commit comments

Comments
 (0)