Skip to content

fix(spec): sync schema + spec doc to v1.6 models, guard against drift - #136

Merged
HMAKT99 merged 1 commit into
mainfrom
schema-sync
Aug 2, 2026
Merged

fix(spec): sync schema + spec doc to v1.6 models, guard against drift#136
HMAKT99 merged 1 commit into
mainfrom
schema-sync

Conversation

@HMAKT99

@HMAKT99 HMAKT99 commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Long-term fix #1 of 2. The canonical schema (spec/akf-v1.1.schema.json) hadn't been updated since March — none of the v1.6 fields (src_hash, replay, input_hash, metrics, meta.deps) were in it. For a project whose pitch is "an open standard, borrow the fields with or without the dependency" — and which is being evaluated as prior art — a reference schema that doesn't describe the actual format is a credibility hole.

  • Schema: adds src_hash (Claim), replay + metrics (Evidence), a new Replay $def, and documents meta.deps. All additive; existing files unaffected (these lived under additionalProperties: true).
  • Spec doc: v1.6 fields documented in akf-v1.0-spec.md.
  • Anti-drift guard: tests/test_schema_conformance.py stamps a maximal unit (every v1.6 field) and validates it against the canonical schema. A field that exists in code but not the schema now fails CI — this can't silently drift again.
  • jsonschema added to dev deps; CONTRIBUTING documents the schema-sync rule.

Verified: schema is valid Draft 2020-12; real 1.6 stamps validate; full suite 1972 passed.

The canonical schema had not been touched since March — none of the
v1.6 fields (src_hash, replay, input_hash, metrics, meta.deps) were in
it. For a project positioned as an open standard and evaluated as prior
art, a reference schema that doesn't describe the format is a real hole.

- spec/akf-v1.1.schema.json: add src_hash (Claim), replay + metrics
  (Evidence), new Replay $def, meta.deps
- spec/akf-v1.0-spec.md: document the v1.6 fields
- tests/test_schema_conformance.py: stamp a maximal unit, validate
  against the schema — fails CI if models emit a field the schema
  doesn't describe (the anti-drift mechanism)
- jsonschema added to dev deps; CONTRIBUTING notes the schema-sync rule
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
akf Ready Ready Preview Aug 2, 2026 2:51am
akf18 Ready Ready Preview Aug 2, 2026 2:51am

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

AKF Trust Certification — ✅ Certified

❌ 0/11 files certified · average trust 0.45 · 3 failed

File Trust Evidence Issues
skills/check.md 0.26 other ai_content_without_review, trust_below_threshold, hallucination_risk, knowledge_laundering, ungrounded_ai_claims, excessive_ai_concentration, provenance_gap, unknown, unknown, unknown, unknown, unknown, unknown, unknown
skills/hermes-akf/SKILL.md 0.54 human_review ai_content_without_review, hallucination_risk, knowledge_laundering, ungrounded_ai_claims, excessive_ai_concentration, provenance_gap, unknown, unknown, unknown, unknown, unknown, unknown
skills/openclaw-akf/SKILL.md 0.54 human_review ai_content_without_review, hallucination_risk, knowledge_laundering, ungrounded_ai_claims, excessive_ai_concentration, provenance_gap, unknown, unknown, unknown, unknown, unknown, unknown

Total: 11 | Certified: 0 | Failed: 3 | Skipped: 8

Generated by AKF Certify

@HMAKT99
HMAKT99 merged commit 1993eee into main Aug 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant