akf

v1.6.2
io.github.HMAKT99/akf Checked 1 day ago Published 1 month ago

Trust metadata for AI agents — check files before building on them, stamp verified work.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

replay_file

Replay-verify a stamp's falsifiable probe recipe. Default inspects only: shows the recorded command and whether the claim's inputs drifted since issuance. With run=true, EXECUTES the recorded command (arbitrary code — only for files you trust) and returns CONFIRMED / CONFIRMED_DRIFTED (succeeded against diverged inputs) / REFUTED / UNREPLAYABLE.

ParameterTypeDescription
path *stringPath to the stamped file
runbooleanExecute the recorded command (review it first)

check_file

One-line trust check before building on a file. Returns OK (fresh stamp, trust above threshold — skip re-verification), LOW (trust below threshold), STALE (modified after stamping or claims expired — re-verify), or UNSTAMPED (no metadata). Use this before re-reading, re-testing, or re-deriving work another agent already verified.

ParameterTypeDescription
path *stringPath to the file to check
thresholdnumberTrust threshold for OK vs LOW

create_claim

Create an AKF claim with trust metadata. Returns a JSON object with the claim, trust score, and provenance.

ParameterTypeDescription
confidence *numberTrust score 0.0-1.0
content *stringThe factual claim to create
ai_generatedbooleanWhether this claim is AI-generated
sourcestringInformation source (e.g., 'SEC 10-Q')

validate_file

Validate an .akf file against the AKF specification. Returns validity status, validation level (0-3), errors, and warnings.

ParameterTypeDescription
path *stringPath to the .akf file to validate

scan_file

Security scan any file for AKF trust metadata. Works with .akf, .docx, .pdf, .html, .md, .json, images, and any format with a sidecar.

ParameterTypeDescription
path *stringPath to the file to scan

trust_score

Compute the effective trust score for a claim using AKF's trust computation engine. Factors in confidence, authority tier, and temporal decay.

ParameterTypeDescription
confidence *numberBase confidence score
content *stringThe claim to score
authority_tierintegerAuthority tier 1-5 (1=official records, 5=AI inference)

stamp_file

Stamp AKF trust metadata onto any file. Supports DOCX, PDF, images, Markdown, code, and 20+ formats. Use this after creating or modifying files.

ParameterTypeDescription
path *stringPath to the file to stamp
agentstringAgent identity (e.g., 'claude-code', 'copilot')
classificationstringSecurity classification: public, internal, confidential, restricted
confidencenumberConfidence score
evidencestringComma-separated evidence (e.g., 'tests pass, docs reviewed')

audit_file

Run compliance audit on an AKF file against regulatory frameworks (EU AI Act, SOX, HIPAA, GDPR, NIST AI RMF, ISO 42001).

ParameterTypeDescription
path *stringPath to the .akf file to audit
regulationstringTarget regulation: eu_ai_act, sox, hipaa, gdpr, nist_ai, iso_42001

embed_file

Embed AKF trust metadata into any supported file format (DOCX, PDF, HTML, images, Markdown, etc.).

ParameterTypeDescription
content *stringThe factual claim to embed
path *stringPath to the file to embed metadata into
classificationstringSecurity classification
confidencenumberConfidence score
sourcestringInformation source

extract_file

Extract AKF trust metadata from any supported file format. Returns claims, classification, provenance, and trust scores.

ParameterTypeDescription
path *stringPath to the file to extract metadata from

detect_threats

Run 10 AI-specific security detections on an AKF file: hallucination risk, knowledge laundering, classification downgrade, trust degradation, and more.

ParameterTypeDescription
path *stringPath to the .akf file to analyze