IX
Readable agent behavior. Governed execution. Evidence after every run. Cognition contracts without AGI overclaim.
IX is an experimental evidence-bound agent contract language and local runtime for writing, checking, running, tracing, orchestrating, assuring, and reviewing human-readable .ix behavior files.
The core idea:
Agent behavior should be readable before execution and reviewable after execution.
The new cognition-contract framing is:
IX writes the governed developmental contract for AGI-candidate attempts.
That does not mean IX is AGI. It does not mean IX creates AGI. It means IX can now express, validate, assure, and export a governed contract that tells a downstream system such as IX-CognitionKernel what must be attempted, evidenced, falsified, reviewed, and bounded.
IX remains a local, deterministic, audit-first research prototype.
IX currently supports two related layers:
-
IX Core
A deterministic local language/runtime for governed agent behavior, trace output, bounded tools, multi-agent handoffs, and evidence bundles. -
IX Cognition Contracts
A declarative profile for writing reviewable IX-CognitionKernel Wave 6 contracts with purpose, non-goals, claim boundaries, required obligations, evidence requirements, falsification gates, human review, Kernel handoff packages, satisfaction report schemas, and failure report schemas.
The cognition-contract layer is declarative metadata. IX does not execute cognition obligations. IX does not certify downstream results. IX does not grant self-approval or AGI-claim authority.
IX can currently:
- parse
.ixfiles, - validate IX syntax and structure,
- format IX files,
- run top-level scripts,
- run agent event blocks,
- emit replies and printed outputs,
- evaluate simple expressions,
- execute
if/elsebranches, - record branch decisions,
- store and recall local runtime memory,
- enforce deny-by-default built-in tool policies,
- run deterministic built-in tools only when explicitly allowed,
- perform traceable multi-agent handoffs,
- emit structured JSON traces,
- export reviewable evidence bundles,
- run bounded assurance checks,
- expose assurance profiles,
- parse cognition
attemptblocks, - validate cognition-contract structure,
- enforce canonical cognition-obligation coverage,
- enforce AGI-claim restriction and research-candidate boundaries,
- enforce canonical falsification gates,
- export cognition contract evidence artifacts,
- export IX-CognitionKernel handoff packages,
- export satisfaction and failure report schemas,
- preserve plain IX behavior separately from cognition-contract review.
IX does not provide:
- AGI,
- AGI certification,
- AGI-candidate certification,
- autonomous web browsing,
- uncontrolled LLM calls,
- external network access,
- email sending,
- filesystem mutation tools,
- deployment tools,
- real-world actuation,
- cryptographic signing,
- sandbox isolation,
- production security controls,
- formal certification,
- legal compliance guarantees,
- autonomous authority,
- model self-approval,
- downstream cognition execution.
Those omissions are intentional. IX is designed to make contracts, traces, evidence, and review boundaries explicit before higher-risk automation is trusted.
IX requires Python 3.11 or newer.
From the repository root:
python -m pip install -e .
Check the installed command:
ix version
ix about
Check an IX file:
ix check examples/hello.ix
Run it:
ix run examples/hello.ix
Expected output:
Hello from IX
Trace it:
ix trace examples/hello.ix
Run assurance checks:
ix assure examples/hello.ix --execute
Write an evidence bundle:
ix evidence examples/hello.ix --out .tmp/hello-evidence
The canonical cognition-contract example is:
examples/cognitionkernel_wave6_contract.ix
Check and format it:
ix check examples/cognitionkernel_wave6_contract.ix
ix format examples/cognitionkernel_wave6_contract.ix --check
Run the cognition assurance profile:
ix assure examples/cognitionkernel_wave6_contract.ix --profile cognitionkernel-wave6
JSON output:
ix assure examples/cognitionkernel_wave6_contract.ix --profile cognitionkernel-wave6 --json
Trace metadata extraction:
ix trace examples/cognitionkernel_wave6_contract.ix
Export cognition evidence artifacts:
ix evidence examples/cognitionkernel_wave6_contract.ix --out .tmp/cognition-evidence
The canonical cognition example does not emit replies, outputs, or approvals during runtime. IX extracts contract metadata only and records that the contract was not executed as cognition.
Expected runtime semantics:
metadata_only_not_executed
IX currently includes two built-in assurance profiles.
The default local profile for deterministic IX runtime checks. It is intended for ordinary executable IX files.
It checks:
- validation diagnostics,
- executable paths,
- tool policy gates,
- handoff targets,
- condition markers,
- assertions,
- trace statements,
- human approval markers,
- optional runtime execution.
Example:
ix assure examples/assurance_ready.ix --profile experimental-local --execute --input score=91
A static cognition-contract review profile for governed IX-CognitionKernel Wave 6 attempts.
It checks:
- top-level
attemptpresence, - purpose declaration,
- non-goal declaration,
- claim-boundary declaration,
- human approval requirement,
- IX-CognitionKernel handoff contract,
- AGI-claim restriction,
- research-candidate boundary,
- absence of prohibited AGI-certification language,
- all canonical cognition obligations,
- canonical obligation identifiers,
- evidence requirements,
- falsification gates,
- canonical falsification gate coverage,
- runtime execution blocked for this profile.
Example:
ix assure examples/cognitionkernel_wave6_contract.ix --profile cognitionkernel-wave6
This profile is intentionally static. It does not execute cognition. It does not certify AGI. It does not certify downstream success.
A cognition contract uses an attempt block:
attempt wave6_measured_cognition {
purpose "Define a governed IX-CognitionKernel Wave 6 contract for measured reality correction"
non_goal "Do not claim AGI, certify AGI, or allow system self-approval"
claim_boundary "Research candidate only, evaluation use only, not deployment"
require human_approval reason "Human review required before any advancement or public claim"
handoff_contract IX-CognitionKernel schema ix.cognition.contract.v1
obligation prediction_before_trial {
evidence_required prediction_record
falsify_if prediction_missing
}
}
The cognition-contract constructs are:
attemptpurposenon_goalclaim_boundaryrequire human_approvalhandoff_contractobligationevidence_requiredfalsify_if
These constructs are declarative. They define a contract and evidence expectations for downstream review.
The cognitionkernel-wave6 profile requires all canonical obligation families:
purpose_disciplineclaim_boundary_disciplinehuman_authorityprediction_before_trialmeasured_outcome_capturereality_delta_comparisonevidence_bound_memory_updatefuture_reasoning_changecross_domain_transfer_probenovelty_generality_pressurelong_horizon_planning_traceuncertainty_assumption_exposurecontradiction_handlingshortcut_reward_hacking_detectionsafe_refusal_pathself_improvement_airlockno_self_certificationfalsification_ledgerindependent_replay_reviewkernel_handoff_package
A contract that omits required obligations fails the cognition profile.
A contract that uses unknown obligation IDs fails the cognition profile.
A contract that uses arbitrary falsification labels instead of canonical falsification gates fails the cognition profile.
The repository includes intentional failure examples:
examples/cognitionkernel_wave6_missing_obligations.ix
examples/cognitionkernel_wave6_overclaiming.ix
examples/cognitionkernel_wave6_wrong_handoff.ix
examples/cognitionkernel_wave6_noncanonical_falsification.ix
These examples should parse and format cleanly, but fail under:
ix assure <example-file> --profile cognitionkernel-wave6
They prove the profile is not a decorative happy-path check. It rejects incomplete, overclaiming, wrongly handed-off, or noncanonical contracts.
IX currently exposes:
ix version
ix about
ix check file.ix
ix run file.ix
ix trace file.ix
ix test file.ix
ix format file.ix
ix orchestrate file.ix --agent AgentName
ix evidence file.ix --out evidence-dir
ix assure file.ix --execute
Assurance profiles can be selected with:
ix assure file.ix --profile experimental-local
ix assure file.ix --profile cognitionkernel-wave6
let name = "IX"
reply "Hello from {name}"
remember mission = "traceable behavior"
recall mission
reply "Mission: {mission}"
assert score >= 0
Failed assertions stop execution.
trace "workflow started"
Runtime events are always traced, but explicit trace statements make review easier.
require human_approval reason "Reviewer must approve before operational use"
This records a review requirement. It does not perform external approval routing.
if score >= 80 {
reply "approved"
} else {
reply "human review required"
}
Branch decisions are recorded in trace output and evidence bundles.
Tool calls fail closed unless explicitly allowed.
allow tool.upper reason "Safe deterministic built-in tool"
call tool.upper as shouted with text = "hello"
reply shouted
Current built-in tools are deterministic and side-effect free:
tool.echotool.uppertool.lowertool.lengthtool.sha256
agent Greeter {
on start {
trace "greeter started"
reply "Hello. I am ready."
assert true
}
}
Run it:
ix run file.ix --agent Greeter
agent Coordinator {
on start {
send Reviewer.review as verdict with item = "request"
reply "Final verdict: {verdict}"
}
}
agent Reviewer {
on review {
reply "approved: {item}"
}
}
Handoffs are recorded in runtime results, trace output, and evidence bundles.
ix check examples/hello.ix
ix run examples/hello.ix
ix trace examples/hello.ix
ix test examples/hello.ix
ix assure examples/hello.ix --execute
ix run examples/branching_review.ix --input score=91
ix run examples/branching_review.ix --input score=70
ix trace examples/branching_review.ix --input score=70
ix run examples/governed_tool.ix
ix trace examples/governed_tool.ix
ix assure examples/governed_tool.ix --execute
ix orchestrate examples/multi_agent_review.ix --agent Coordinator
ix orchestrate examples/multi_agent_review.ix --agent Coordinator --json
ix evidence examples/multi_agent_review.ix --agent Coordinator --out .tmp/multi-agent-evidence
ix assure examples/assurance_ready.ix --execute --input score=91
ix assure examples/assurance_ready.ix --execute --input score=91 --json
ix check examples/cognitionkernel_wave6_contract.ix
ix format examples/cognitionkernel_wave6_contract.ix --check
ix assure examples/cognitionkernel_wave6_contract.ix --profile cognitionkernel-wave6
ix evidence examples/cognitionkernel_wave6_contract.ix --out .tmp/cognition-evidence
Create an evidence bundle:
ix evidence examples/multi_agent_review.ix --agent Coordinator --out .tmp/evidence-review
IX writes artifacts such as:
manifest.json
summary.json
trace.json
policies.json
tool-results.json
handoffs.json
branches.json
approvals-required.json
outputs.txt
replies.txt
assurance-claims.md
limitations.md
For cognition contracts, IX also writes:
contract.json
obligations.json
falsification-gates.json
claim-boundaries.json
kernel-handoff.json
satisfaction-report.json
failure-report.json
These cognition artifacts are review artifacts. They record the contract, required obligations, evidence requirements, falsification gates, claim boundaries, and Kernel handoff package.
They do not execute cognition. They do not mark obligations satisfied. They do not decide whether falsification gates were triggered. They do not certify AGI or deployment readiness.
When a cognition contract declares:
handoff_contract IX-CognitionKernel schema ix.cognition.contract.v1
IX evidence export includes:
kernel-handoff.json
The handoff package contains:
- attempt name,
- target,
- schema,
- runtime semantics,
- execution authority set to
none, - self-certification blocked,
- human authority requirement,
- purpose,
- non-goals,
- claim boundaries,
- human approval requirements,
- obligations,
- canonical obligation definitions when available,
- evidence requirements,
- falsification gates.
This is a handoff package, not an execution grant.
Cognition evidence bundles include:
satisfaction-report.json
failure-report.json
These reports start in:
not_evaluated
They are schemas for downstream evidence review.
The satisfaction report lists obligations and required evidence, but does not mark them satisfied.
The failure report lists falsification gates and claim-blocking semantics, but does not decide whether the gates were triggered.
Downstream measured evidence and human review are required.
For a top-level IX script:
ix check path/to/file.ix
ix format path/to/file.ix --check
ix trace path/to/file.ix
ix assure path/to/file.ix --execute
ix evidence path/to/file.ix --out .tmp/evidence-review
For an agent file:
ix check path/to/file.ix
ix format path/to/file.ix --check
ix trace path/to/file.ix --agent AgentName
ix assure path/to/file.ix --agent AgentName --execute
ix evidence path/to/file.ix --agent AgentName --out .tmp/evidence-review
For a cognition contract:
ix check path/to/file.ix
ix format path/to/file.ix --check
ix assure path/to/file.ix --profile cognitionkernel-wave6
ix trace path/to/file.ix
ix evidence path/to/file.ix --out .tmp/cognition-evidence
Start here:
- Developer Validation Guide
- Cognition Contract Upgrade Doctrine
- Quickstart
- Handbook
- Language Reference
- Trace Schema
- Safety Model
- Examples Guide
- Roadmap
The GitHub Actions workflow installs IX and runs:
- Python unit tests,
- parser/runtime/CLI regression tests,
- canonical example checks,
- formatter checks,
- trace smoke tests,
- orchestration smoke tests,
- evidence bundle smoke tests,
- assurance smoke tests,
- cognition-contract parser, validator, formatter, profile, evidence, CLI, and negative-example tests.
The front-page badge reflects the python-tests.yml workflow.
IX is currently an experimental local prototype.
It is suitable for:
- language/runtime research,
- deterministic local examples,
- trace schema exploration,
- governance-oriented workflow prototyping,
- evidence bundle experimentation,
- human-readable agent behavior contract design,
- cognition-contract declaration and review,
- IX-CognitionKernel handoff package generation,
- falsification-gate and claim-boundary contract testing.
It is not suitable for:
- production deployment,
- regulated operational use,
- safety-critical control,
- autonomous external actions,
- unreviewed tool execution,
- compliance claims,
- certification claims,
- AGI claims,
- self-approval claims,
- downstream cognition execution.
Accurate:
IX is an experimental evidence-bound agent contract language and local runtime.
Accurate:
IX can check, run, trace, orchestrate, assure, and export evidence for deterministic
.ixfiles.
Accurate:
IX writes the governed developmental contract for AGI-candidate attempts.
Accurate:
IX can express, validate, assure, and export IX-CognitionKernel Wave 6 cognition contracts with obligations, evidence requirements, falsification gates, claim boundaries, human review, and handoff packages.
Accurate:
IX cognition contracts are declarative and metadata-only at runtime.
Not accurate:
IX is AGI.
Not accurate:
IX creates AGI.
Not accurate:
IX proves AGI.
Not accurate:
IX certifies AGI-candidate success.
Not accurate:
IX executes downstream cognition obligations.
Not accurate:
IX lets a model approve itself.
Not accurate:
IX is certified.
Not accurate:
IX is DoD-compliant.
Not accurate:
IX proves AI systems are safe.
Not accurate:
IX is production-ready.
IX should remain:
- readable,
- deterministic by default,
- deny-by-default for tools,
- trace-first,
- evidence-producing,
- human-review-friendly,
- profile-capable,
- falsification-aware,
- honest about limitations,
- strict about claim boundaries.
The long-term direction is an evidence-bound contract layer for AI-agent behavior and governed cognition-candidate attempts: a small language where behavior, obligations, evidence, falsification gates, and handoffs can be read, checked, traced, exported, and reviewed before higher-risk automation is trusted.
See LICENSE.