feat(engine): ext.struct typed-records built-in; close engine implementation (WP-0014 T6)

engine/extensions/struct.py: ext.struct (typed records) — in-text frontmatter
parse + ON_WRITE validation (allowed-fields, content-preserving), ON_READ tags
PageShape.TYPED_RECORD, ON_PROFILE raises structured-payload. Proves the framework:
feature absent when off (opaque prose, honest profile), present + profile-reflected
when on; works through InformationSpace edit. SCOPE updated. 6 tests, 107 total,
~97% coverage, pyflakes clean. Marks T6 + SHARD-WP-0014 done.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 00:56:22 +02:00
parent 8393a9c55d
commit a165cced33
5 changed files with 158 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ type: workplan
title: "wiki-engine implementation — kernel + typed-extension runtime + activation"
domain: whynot
repo: shard-wiki
status: active
status: done
owner: tegwick
topic_slug: whynot
created: "2026-06-15"
@@ -124,7 +124,7 @@ integration: engine shard passes `assert_conformant`; attach → resolve → edi
```task
id: SHARD-WP-0014-T6
status: todo
status: done
priority: medium
state_hub_task_id: "b88d1640-9afa-4957-aec3-a7264b09494c"
```