Repository navigation
fix(agent-views): make committed views reproducible from committed sources - #395
Merged
Merged
Conversation
…urces mqobsidian commits memory/learn/agent/mqobsidian.md as a front door, but the view quoted gitignored memory/learn/repos lessons and stamped the rebuild day as generated. An operator vault and a clean clone rebuilt it differently, and agent-views check called it stale the day after every rebuild. A system now opts in with agent_view: versioned in hot.md or index.md. Its view is built from hot/index only. Every view dates itself from the newest source updated: date, falling back to today only when no source has one. Local views keep their lessons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MCamner
added a commit
that referenced
this pull request
Oct 14, 2026
Controlled activation proof and evidence integrity. Bumps VERSION, pyproject, uv.lock, repo contract, README and Pages badges, README status and the ROADMAP header. The changelog entry gains two items that had none: Canary v2 execution correlation (#390) and reproducible agent views (#395). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mqobsidian tracks
memory/learn/agent/mqobsidian.mdas a required front door, but the generator made it impossible to reproduce:memory/learn/repos/<system>.md, which is gitignored and exists only in an operator vault;generated:with the day of the rebuild, soagent-views checkreported the view stale the day after every rebuild.Changes in
mq_agent/tools/agent_views.py:agent_view: versionedin the frontmatter of itshot.mdorindex.md. Its view is built from hot/index only and never cites local lessons.generated:from the newestupdated:among its sources, falling back to today only when no source has one.docs/AGENT_VIEW_CONTRACT.mdgains rule 6, "Reproducible when versioned".The mqobsidian side is in mqobsidian #139 (DEC-007). Merge this one first: its CI step installs mq-agent from
main.Verification
tests/test_agent_views_reproducible.pyhas 7 tests. 4 failed before the change; 2 guard existing local-view behaviour; 1 covers the marker inindex.md.ruff check: clean.memory/learn/repos/mqobsidian.mdrebuild byte-identical views (cmp).agent-views check --system mqobsidianreportsfreshwith this branch. The generator onmainreports the same viewstale.agent-views checkruns withoutOPENAI_API_KEY, as it must in mqobsidian CI.🤖 Generated with Claude Code