Local-first read-only agent context conflict mapping
Project description
CtxGov
Your coding agent is reading more instructions than you think.
CtxGov is a local-first tool for mapping agent-context collisions before an agent acts. It reads local instruction/config surfaces, docs, saved traces, and fixtures, then prints review artifacts without provider calls, network calls, or target writes.
MCP gave agents tools. AGENTS.md gave them rules. CtxGov maps the collisions.
Current Public Surface
- Public product/package version:
0.10.0. - Primary product point:
CtxGov Conflict Map. - Public evidence artifact:
release/v0.10.0/. - Conflict Edition report:
release/v0.10.0/state-of-agent-context-conflicts/. - Historical release packs are archive material, not the current product narrative.
What You Can Run
The v0.10.0 public package supports local conflict and governance evaluation CLI surfaces:
# Map declared instruction conflicts across local agent-context surfaces.
ctxgov context-conflicts --root . --format summary
# Run on your own repository. This is read-only and writes no .ctxvault state.
ctxgov change-gate-check --root . --format summary
# Diff two explicit local trees and print a semantic Change Gate report.
ctxgov change-gate-check --baseline-root examples/change-gate-public-preview/baseline --head-root examples/change-gate-public-preview/head --format summary
The headline question:
Which instruction wins when AGENTS.md, CLAUDE.md, Copilot instructions, README docs, and MCP boundaries disagree?
Additional local checks:
ctxgov continuity compile examples/session-continuity-public-preview/saved-goal-trace.synthetic.json
ctxgov continuity render examples/session-continuity-public-preview/saved-goal-trace.synthetic.json
ctxgov continuity apply --mode dry-run examples/session-continuity-public-preview/saved-goal-trace.synthetic.json
ctxgov memory-xray validate release/v0.7.0/memory-xray-l1-public-preview/memory-xray-l1-examples-pack.json
ctxgov change-gate-federate --base-path examples/federation-public-preview --no-git-required
ctxgov oss-case-study-preview --target-name mem0 --repo-url https://github.com/mem0ai/mem0 --pinned-ref 366945965df43aa7084be98d1b5073b62a20b431 --source-path examples/oss-case-study-public-preview/mem0-source.md
ctxgov oss-efficiency evaluate --manifest release/v0.8.0/oss-efficiency-raw-telemetry-manifest.json
ctxgov governance-replay --trace examples/governance-replay-public-preview/governance-replay-trace.synthetic.json
ctxgov forensics-timeline --fixture release/v0.8.0/forensics-public-preview-fixture.json
ctxgov forensics-trace --fixture release/v0.8.0/forensics-public-preview-fixture.json --finding-id finding-public-authority-001
ctxgov forensics-gaps --fixture release/v0.8.0/forensics-public-preview-fixture.json
Other development surfaces are outside this public package boundary and are not included in the source distribution.
Input And Output
Input:
- one explicit local saved trace file;
- optional Memory X-Ray JSON report-shape examples.
- explicit local repository paths for Change Gate and Federation;
- an explicit saved local public-source excerpt for OSS Case Study Preview;
- explicit saved raw telemetry for OSS Efficiency methodology receipts;
- pathless State Of Agent Context receipts for selected public OSS repositories;
- an explicit saved local Governance Replay trace;
- explicit local fixture JSON for Forensics preview.
Output:
- a
ctxvault.session-continuity-sidecar/v0JSON object; - a human-readable next-session continuity packet;
- a dry-run or sandbox-only apply result;
- a Memory X-Ray validation receipt.
- a read-only declared instruction-collision map with source/evidence tiers;
- a read-only semantic Change Gate report;
- a read-only Federation report;
- an OSS case-study decision preview;
- an OSS raw telemetry methodology receipt;
- a pathless real-OSS semantic inventory report;
- a Governance Replay result with bounded coverage counts;
- a Forensics timeline, trace, or gap report.
Before / After
Before: the next agent session may inherit a long transcript, stale summary, or ambiguous handoff with unclear source support.
After: CtxGov turns the explicit saved trace into source-backed continuity evidence with blocked effects, side-effect boundaries, and rollback-by-discard semantics before the next session uses it.
For Conflict Map, after means the maintainer can separate high-authority instruction/config collisions from lower-authority README/docs signals before using those findings in a release note, issue, or local agent run.
Conflict Map findings are declared instruction-collision signals for review, not runtime precedence truth.
Integration Gate
Run the local public package gate:
python3 scripts/run_public_package_checks.py
The gate performs no network calls, provider/model calls, public writes, schedulers, daemons, or target repository writes. It may create a temporary local Evidence Core store to verify CAS/SQLite commit and replay behavior.
The inherited ctxgov continuity apply --mode sandbox command may write one
local sandbox file. Evidence Core library calls write only explicit local
evidence-store paths chosen by the caller.
CLI Boundary
Supported public commands:
ctxgov continuity compilectxgov continuity renderctxgov continuity apply --mode dry-run|sandboxctxgov memory-xray validatectxgov context-conflictsctxgov change-gate-checkctxgov change-gate-federatectxgov oss-case-study-previewctxgov oss-efficiency evaluate|validatectxgov governance-replayctxgov forensics-timelinectxgov forensics-tracectxgov forensics-gaps
No other commands are included in the public package. Real target writes, network/API calls, publication automation, schedulers, daemons, runtime adapter execution, and provider/model execution are outside this release.
Claim Boundary
Not claimed:
- public benchmark result;
- comparative runtime or workflow outcome;
- external uptake or community traction;
- certification or risk assurance;
- runtime precedence truth;
- model/vendor coverage;
- hosted runtime;
- automated publication pipeline;
- stable protocol or stable MGP;
- stable external Python API;
- autonomous remediation.
The checked-in ctxvault.* schema identifiers are stable legacy contract
strings, not a current branding claim.
License
Apache-2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ctxgov-0.10.0.tar.gz.
File metadata
- Download URL: ctxgov-0.10.0.tar.gz
- Upload date:
- Size: 155.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18703aa0e39b27fc19c13a6c7139e968e96665118a2adfd26edef1efb4866f84
|
|
| MD5 |
2ef121e961a83593938a3af5a8814745
|
|
| BLAKE2b-256 |
a2b8bd0ba357e0d9bc947b7ca24aa5efeedb013f9ea6d6fb6fbd39a794752af5
|
Provenance
The following attestation bundles were made for ctxgov-0.10.0.tar.gz:
Publisher:
publish.yml on ctxgov/ctxgov
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ctxgov-0.10.0.tar.gz -
Subject digest:
18703aa0e39b27fc19c13a6c7139e968e96665118a2adfd26edef1efb4866f84 - Sigstore transparency entry: 2024778157
- Sigstore integration time:
-
Permalink:
ctxgov/ctxgov@4cc8e39a878866a4439beae2d777b51d8ccc0d57 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ctxgov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4cc8e39a878866a4439beae2d777b51d8ccc0d57 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ctxgov-0.10.0-py3-none-any.whl.
File metadata
- Download URL: ctxgov-0.10.0-py3-none-any.whl
- Upload date:
- Size: 68.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48045dc5678b4462891c2036dccb341c3725abf0465b0275bb60ce052a790e0c
|
|
| MD5 |
ac20e568cd1acb0bae5c199979fb29d2
|
|
| BLAKE2b-256 |
75a16a833b998f7ef017d7b2ea95a2fe212e3b3680e1d2be5a9b601ef575f29f
|
Provenance
The following attestation bundles were made for ctxgov-0.10.0-py3-none-any.whl:
Publisher:
publish.yml on ctxgov/ctxgov
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ctxgov-0.10.0-py3-none-any.whl -
Subject digest:
48045dc5678b4462891c2036dccb341c3725abf0465b0275bb60ce052a790e0c - Sigstore transparency entry: 2024778250
- Sigstore integration time:
-
Permalink:
ctxgov/ctxgov@4cc8e39a878866a4439beae2d777b51d8ccc0d57 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ctxgov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4cc8e39a878866a4439beae2d777b51d8ccc0d57 -
Trigger Event:
workflow_dispatch
-
Statement type: