IMPLEMENTATION
AgentThis file is a durable summary of the current implementation state. It is intentionally concise and should not be used as a…
Generalized reusable lessons from agent sessions. Root causes converted into preventive rules, not incident-specific notes. Entries are h3 headers with [ACTIVE|RETIRED] status. Content: brief, grep-friendly, MECE across sections. Style: one-liner per entry, optional sub-bullets
Claude Code
> /plugin marketplace add griddynamics/rosetta> /plugin install rosetta@rosetta
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
Generalized reusable lessons from agent sessions. Root causes converted into preventive rules, not incident-specific notes. Entries are h3 headers with [ACTIVE|RETIRED] status. Content: brief, grep-friendly, MECE across sections. Style: one-liner per entry, optional sub-bullets for context.
Before resolving any conflict, read the branch's handoff/execution state, its plans and its acceptance gates, and main's incoming changes in full, not commit titles. Re-assess every resolution against both intents, then run the branch's gates. A failure found during the work is diagnosed to its root cause and fixed; "pre-existing" or "not from the merge" is never a reason to skip it.
Before calling a reference dangling, establish what it is FOR. `/goal` and `/advisor` are Claude Code features the user sets; `graphify` is a third-party skill installed via `graphify install`. None is defined in this repo by design. Web-search and read `docs/definitions/workflows.md` first. Six issues in one batch rested on this error, and acting on them deleted working features.
For `src/rosettify-plugins` and other requirements-first components, "not in code" ≠ "not in the design". Before claiming a mechanism does not exist, grep `docs/REQUIREMENTS/<component>/` for its domain terms and synonyms (priority → order, OrderToken, sort). Report status precisely: specified + `NotStarted` is not the same as absent. Failure: told the user "no priority token" while `FR-ARCH-0022 OrderToken` was specified and unimplemented.
Repo JSON (e.g. `docs/definitions/live_counts.json`, `plugins.json`) uses hand-chosen inline arrays/objects. `json.dump` of the whole file rewrites hundreds of lines and hides the real change in review. Insert or replace the exact lines as text, then `git diff --stat` must show only the intended lines.
When an instruction file looks wrong, check `docs/schemas/*.md`, `instructions/r*/core/templates/shell-schemas/*.md`, and the sibling `README.md` "Invariants" section before changing it. A line repeated verbatim across many files is a convention, not a defect — `All Rosetta prep steps MUST be FULLY completed, load-project-context skill loaded and fully executed` is mandated by all three schemas and `skills/coding/README.md` forbids rewording it locally.
Proceed through read-only discovery, analysis, delegation, retries, and draft refinement; ask only at the workflow's defined approval or material-risk gates.
Before a multi-file patch, read each target's exact surrounding lines and split unrelated edits; one stale hunk otherwise rejects the entire patch.
Full-history forks cannot override `agent_type`; use a bounded/empty fork for a role override. Runtime role availability may be narrower than the advertised catalog, so use an untyped agent with the required role contract in its prompt when a named type is rejected.
When asked to "fix issues/inconsistencies" in a user's artifact (diagram, doc, code), change ONLY the specific defects and preserve the author's wording, decided content, and especially their "to think/discuss"/open-question notes — verbatim. Their notes and questions are never mine to resolve or rephrase. A vague "fix it" is NOT license to rewrite in my voice or auto-resolve open questions; when scope is unclear do the minimal literal fix or ask, and never use `replace_all` on a shared label without confirming blast radius. Root cause: on a broad "fix inconsistencies" directive I rewrote the user's "To think/discuss" note and rephrased several diagram cells in my own words, mangling an un-versioned artifact. Rule: edit the named defect only; leave authored prose, notes, and questions untouched.
A user answering design questions, picking options, or giving wording/style edits is REVIEWING — it is not authorization to write artifacts. "Design resolved" and "approved to implement" are separate gates. Treat as approval ONLY an explicit approval sentence; anything else (questions, picks, edits, refinements) keeps status pre-approval. Before any create/edit/delete of artifacts, hold for explicit approval. Root cause: I collapsed AskUserQuestion answers + style feedback into a green light and edited a skill and the always-on bootstrap unapproved. Rule: never conflate the decision gate with the approval gate; on mismatch stop immediately and revert my own just-made unapproved writes.
When the user EXPLAINS why a capability exists (e.g. "code-graph navigation is only needed if code is large or for migration"), that is context for ME, not a condition for the AI to auto-evaluate and self-gate on. A HITL gate must surface the capability and let the USER choose ("we have this built in — your choice"), never silently decide for them. Also: the agent must NOT infer/search for environmental state it cannot reliably know (e.g. "is the code indexed?"). It may only report what is ALREADY present in the current context (registered LSPs, semantic-search/index MCP tools) WITHOUT going to look for it,
This file is a durable summary of the current implementation state. It is intentionally concise and should not be used as a…
- mode: upgrade - plugin_active: false - composite: false - file_count: 512 - status: COMPLETE - completed: 2026-03-27
Architect solution, transform intent into reliable tech specs, etc. Full subagent.
Discover project context, patterns, affected areas, dependencies, etc. Lightweight subagent.
Implement and test to high quality under the orchestrator-assigned identity. Full subagent.
Run simple commands, collect and summarize results to protect parent context. Lightweight subagent.
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…