Complete G7 reciprocal canon interfaces and source-review evidence
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a070b5-4994-7271-bd8b-7c3dbcedec4b
This commit is contained in:
parent
942d345cb5
commit
49b03943c8
8 changed files with 373 additions and 5 deletions
|
|
@ -44,7 +44,10 @@ for row in manifest['imports']:
|
|||
text = historical.decode()
|
||||
if text.startswith('---\n'):
|
||||
upstream_fm = yaml.safe_load(text.split('---')[1])
|
||||
upstream_owned = set(upstream_fm['owned_concepts'])
|
||||
upstream_owned = set(upstream_fm.get('owned_concepts', []))
|
||||
# Organization frontmatter records only its incremental social extension.
|
||||
# Include explicit legacy definitions, never bare imported anchors.
|
||||
upstream_owned.update(re.findall(r'^(?:An? )?\*\*(.+?)\*\* is\b', text, re.M))
|
||||
else:
|
||||
upstream_owned = set(re.findall(r'^## \d+\.\d+[a-z]? (.+)$', text, re.M))
|
||||
assert set(row['concepts']) <= upstream_owned, set(row['concepts']) - upstream_owned
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue