name: review-implementation-architecture description: Review an implemented architecture-level simplification against the selected Gordian target, validation evidence, project architecture, and blast-radius constraints. lambda: "λtask. review(implemented_architecture_change) ∧ read(task_local_gordian_artifacts ∧ munera_artifacts ∧ project_architecture_sources) ∧ judge(behaviour_preservation ∧ target_fit ∧ blast_radius ∧ improvement ∧ ¬adapter_shim_complexity)"
review-implementation-architecture
Use this skill to review a completed or in-progress implementation for an architecture-level simplification task generated by the reduce-architectural-complexity workflow.
This skill reviews the actual implemented change, not the pre-implementation task design. It is distinct from review-task-architecture, which judges whether a Munera task design fits the project architecture before implementation.
Required orientation
- Read the Munera task artifacts at the provided task path:
design.mdplan.mdwhen presentsteps.mdimplementation.md
- Read the selected target and evidence from task-local, worktree-root-relative files. Do not assume workflow context inlines these artifact contents:
architecture-targets.edntarget-issues.ednwhen present, otherwisetarget-issues-unavailable.ednbefore-diagnose.ednafter-diagnose.ednafter-architecture-targets.ednarchitecture-compare.ednarchitecture-gate.edncharacterization-baseline.ednwhen present
- Read the project architecture sources relevant to the touched area:
AGENTS.mdMETA.mddoc/architecture.md- any local architecture docs referenced by the task or touched namespaces
- Inspect the implementation diff and the affected code/tests/docs. Prefer runtime/test evidence over prose claims.
Judgement criteria
Flag actionable feedback when any criterion below is not satisfied.
Behaviour preservation
- The change preserves externally visible behaviour named in the generated task.
- Characterization and affected-area tests cover the behaviour the architecture refactor could disturb.
- Validation failures, missing artifacts, or unreadable Gordian artifacts are not accepted silently.
Target fit
- The implementation addresses the selected
architecture-targetscandidate recorded in the task. - If
target-issues.ednis present, the implementation engages the observations, hypotheses, refactoring directions, review questions, and success signals without treating hypotheses as facts. - If only
target-issues-unavailable.ednis present, the implementation is still justified byarchitecture-targets.edn, before/after Gordian evidence, and project architecture sources. - The review does not switch to a different target because a more interesting issue appears nearby.
Blast-radius discipline
- Production edits stay within
:target/source-areasplus explicitly recorded:target/allowed-adjacent-source-areas. - Adjacent-source edits have a task-local reason recorded before or during implementation.
- External namespaces mentioned by evidence are treated as review context, not implicit membership.
- Test edits stay tied to
:target/affected-test-areasor newly recorded affected tests.
Architectural improvement / no regression
- The implementation improves or credibly reduces the selected architecture problem without introducing worse coupling, cycles, ownership blur, unstable shared dependencies, or hidden coordination.
architecture-compare.edn,architecture-gate.edn, andafter-architecture-targets.ednsupport the claimed outcome, or any non-moving metric is explicitly and plausibly explained for this slice.- The change follows project boundaries: dispatch owns state mutation, resolvers own reads, effects stay at effect/runtime boundaries, adapters remain projections/entry points, and extensions remain isolated.
Simplicity and shape
- The change reduces architectural complexity rather than adding compatibility shims, adapters, broad indirection, or parallel models.
- New abstractions have one obvious owner and are locally comprehensible.
- Existing patterns are reused when they fit; new patterns are introduced only when the task evidence justifies them.
Output contract when used via review-step
Append a terse note to the task's implementation.md. Add unchecked follow-up items to steps.md for every new actionable issue. Avoid duplicating existing notes or follow-ups. End with exactly one of:
PASS_STATUS: ACTIONABLE_FEEDBACK
PASS_STATUS: REVIEW_COMPLETE