Plan work on this @docs/roadmap.md Item: 1. Extend ownership tracking to cover…
- User
Plan work on this @docs/roadmap.md Item:
- Extend ownership tracking to cover frontmatter-emit and surface migrations, not just whole-file writes and config patches.
The north star explicitly requires patch-level provenance and safe reverts for config-like edits. That is still incomplete for Markdown frontmatter emit targets and for any future migration from one surface to another. Add provenance that can prove which frontmatter block or migrated target is engine-owned before more portability vectors are promoted from roadmap to supported behavior.
Score 10/12 (Architecture 2, Agents 2, OS 1, Confidence 2, Safety 1, Stability 2)
- Extend ownership tracking to cover frontmatter-emit and surface migrations, not just whole-file writes and config patches.
- Assistant
- User
Proceed with implementation of durable version now
- Assistant
Implemented durable frontmatter ownership so
frontmatter-emitnow behaves like a patchable surface instead of a whole-file write. The main change is that deploy now records frontmatterpatch/undoPatchprovenance and revert now unapplies only the engine-owned frontmatter keys, preserving unrelated YAML and Markdown body content in shared files like Antigravity . - User
commit your current changes and plan your work on next 2 suggested items
- Assistant
Committed the frontmatter ownership work as
f7b35fewith messagefix: track frontmatter patch ownership.- The commit includes the frontmatter patch provenance flow, migration-ready registry metadata, safe revert behavior, tests, and
README.mdupdates. - I left one unrelated untracked file alone:
.opencode/package-lock.json.
For the next two items, I’d tackle them in this order:
- Antigravity same-target collision as hard planning error
- Tighten in so the existing Antigravity vs same-name case becomes a blocking error, not a warning.
- The commit includes the frontmatter patch provenance flow, migration-ready registry metadata, safe revert behavior, tests, and
- User
Start working on these items
- Assistant
I started both items and finished the first pass.
src/core/deploy.tsnow turns the Antigravity same-targetmcpServers+agentDefinitionscase into a hard planning error by throwingUserError("MANIFEST_INVALID", ...)before action planning continues.test/unit/deploy.test.tsnow verifies that this case fails planning and includes the resolved.agents/rules/{name}.mdpath in the error message.- I added migration-focused golden coverage in
test/unit/migration-golden.test.ts:- a registry-shape test that snapshots the migrated ownership record after
migratedFrom - a revert test that proves the migrated target is reverted cleanly while the old target stays unmanaged and untouched
- a registry-shape test that snapshots the migrated ownership record after
README.mdnow documents that Antigravity same-target MCP/agent-definition collisions are planning errors.
Validation I ran:
npm run fmtnode --test --test-isolation=none test/unit/deploy.test.ts test/unit/ownership.test.ts test/unit/revert.test.ts test/unit/migration-golden.test.ts
- User
Proceed: commit changes and expand the golden coverage
- Assistant
Committed the new work as
d22b1eawith messagetest: harden antigravity collision planning.What changed:
src/core/deploy.tsnow hard-fails planning on Antigravity same-target MCP/agent-definition collisions.test/unit/deploy.test.tsnow assertsplanDeploy()throwsMANIFEST_INVALIDfor that case.test/unit/migration-golden.test.tsnow covers:- migrated registry golden shape
- migrated-target revert behavior
- dry-run revert golden plan
- legacy frontmatter fallback that still reverts as whole-file removal
README.mddocuments the new planning rejection.
Validation run:
npm run fmt- targeted unit tests including
test/unit/migration-golden.test.ts npm run lintnpm run typecheck
Still left untouched:
.opencode/package-lock.jsonis still untracked and not part of either commit.
If you want, I can next:
- add Windows coverage for these new frontmatter/migration paths
- User
review the roadmap items and cross out implemnted one
- Assistant
Crossed out the implemented roadmap item in
docs/roadmap.md:23.I only marked the ownership/provenance item as done; I did not cross out the other follow-up items since we improved them but haven’t fully completed their full scope yet. If you want, I can also commit this roadmap update.
- User
commit this update
- Assistant
Committed the roadmap update as
1e18421with messagedocs: mark ownership roadmap item complete.docs/roadmap.mdnow crosses out the implemented ownership/provenance item.- The unrelated untracked file
.opencode/package-lock.jsonis still untouched.