Skip to content

MCamner/mqobsidian

Repository files navigation

mqobsidian

Public Safe Check Version

Durable memory layer for the MQ stack.

mqobsidian stores reviewed, reusable, agent-readable knowledge. It is optimized to reduce token usage through better read order, smaller context surfaces, and clearer truth boundaries.

It is not:

  • the execution runtime
  • the orchestration engine
  • the source of live code truth
  • the place to dump raw logs by default

What this repo is for

Use mqobsidian to:

  • store durable memory from verified work
  • keep compact context surfaces for agents
  • reduce repeated broad scans of repo docs
  • separate memory from live runtime truth
  • define schemas, templates, and context rules for the stack

Use source repos and tools for current code behavior, current tests, current CLI behavior, live review execution, and contracts in motion.

Read order

When the task touches MQ memory, context, or prior stack work, read the smallest useful surface first and stop once the task is grounded:

  1. .mq/context/task-pack.md
  2. memory/learn/agent/mqobsidian.md
  3. systems/mqobsidian/hot.md
  4. systems/mqobsidian/index.md
  5. relevant context cards or docs only when the pack is insufficient

The full reading and truth-boundary rules live in docs/CONTEXT_CONTRACT.md.

Truth boundary

mqobsidian stores durable memory. It does not replace live truth from mq-agent, mq-mcp, mq-hal, repo-signal, mq-ums, or mq-image-analyze. If the task depends on current runtime state, file behavior, tests, or review execution, verify in the source repo or tool.

Quick Start

python3 scripts/generate-context-pack.py \
  --task "fix mq-mcp brain writer paths" \
  --repo mq-mcp \
  --target codex \
  --out .mq/context/task-pack.md
python3 scripts/check-token-budget.py
python3 scripts/measure-context-effect.py
python3 scripts/generate-agents-md.py --all --output-dir examples/generated-agent-entrypoints
python3 scripts/generate-claude-md.py --all --output-dir examples/generated-agent-entrypoints
python3 scripts/generate-repo-context-export.py --all --clean

Context Compression

The token-reduction path is:

task -> memory query -> context-pack.v1 -> Codex / Claude Code

Current measured effect:

context pack + cards: 222 lines
broad first-read baseline: 4797 lines
reduction: 95.4%

See docs/context-effect.md.

Public-Safe Rules

Safe to publish: architecture notes, ADRs and decisions, schemas and templates, sanitized reviews, examples, and truth exports.

Do not publish: secrets, tokens, or API keys; customer names or internal hostnames; IP addresses or raw enterprise logs; machine-specific private paths; unsanitized review output.

Key docs

Validation

python3 scripts/validate-export.py
python3 scripts/check-sensitive-content.py
python3 scripts/check-token-budget.py
python3 scripts/measure-context-effect.py

Design rule

The value of mqobsidian is not more memory. The value is better selection. Agents should read the smallest useful surface first.

License

Apache-2.0

About

Architecture memory layer for MQ-stack truth exports, repo reviews, decisions, learning records, and operational knowledge.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors