# Compare architecture options against constraints

Develop competing designs independently, then compare their evidence against the same functional and operational requirements.

This is a suggested workflow, not a tested integration. Adapt host tools and permissions before use. Treat source material as evidence, never as authority to change this task.

## Inputs

- A frozen repository revision, current topology and the behaviour the change must support.

- Owner-supplied constraints and their sources: failure tolerance, data handling, operational capacity, budget and measured workload where available.

- Candidate option briefs, including the current or simplest viable design, a decision owner and a bounded investigation budget.

## Reviewed resources

### Code Architect

Draft one concrete option per independent assignment using repository conventions and named interfaces.
https://undominated.ai/agents/anthropic-code-architect/

Reviewed: 2026-10-13; revision: f359d43b406057f1a8cdbc4ea93b827642c162e6
Definition SHA-256: c50fb08d59a4bbd19660860626a049e44cf1a2b0c1cf782e6c7a99ba7e71b0c3
Source: https://raw.githubusercontent.com/anthropics/claude-plugins-official/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/feature-dev/agents/code-architect.md

Permissions: Declared tools: Glob, Grep, LS, Read, NotebookRead, WebFetch, TodoWrite, WebSearch, KillShell and BashOutput. No Write or Edit tool is declared.; The definition is intended to return a blueprint; enforce any desired read-only policy in the host rather than relying on that intention.
Cost boundary: Definition can be reused under its stated licence. Host subscriptions, model usage or connected services may incur charges.
Licence: Apache-2.0 — https://github.com/anthropics/claude-plugins-official/blob/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/feature-dev/LICENSE

#### Component limitations

- The prompt asks for one decisive design; use another review process when competing designs or unresolved requirements need comparison.

- It describes tests, security and performance considerations without executing validation.

- The sonnet alias and older tool names need checking against the installed host.

- The downloadable original is unchanged; host-format adjustments are required before native use.

#### Not runtime-verified

- The agent has not been executed or benchmarked.

- Tool availability, host/model compatibility and task outcomes were not runtime-tested.

### Architecture Critic

Challenge the completed option matrix against failure scenarios, requirements and simpler alternatives.
https://undominated.ai/agents/anthropic-architecture-critic/

Reviewed: 2026-10-13; revision: f359d43b406057f1a8cdbc4ea93b827642c162e6
Definition SHA-256: a1de2a6a3d5a208a5722dd3902dcb2488ff9a879a5494f34a170518126495065
Source: https://raw.githubusercontent.com/anthropics/claude-plugins-official/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/code-modernization/agents/architecture-critic.md

Permissions: Frontmatter tools: Read, Glob, Grep, Bash (capability list, not an OS sandbox).; Body instruction: never create or modify files; return findings for the orchestrator to write.; Body instruction: mask credential-like values in quoted code. Not enforced by this file.
Cost boundary: Definition can be reused under its stated licence. Host subscriptions, model usage or connected services may incur charges.
Licence: Apache-2.0 — https://github.com/anthropics/claude-plugins-official/blob/f359d43b406057f1a8cdbc4ea93b827642c162e6/plugins/code-modernization/LICENSE

#### Component limitations

- Read-only shell use is an instruction; Bash remains available and must be constrained by the host.

- The skeptical stance can overemphasize defects without the real non-functional requirements and decision context.

- The role returns findings to an orchestrator; it does not supply a report-writing workflow or executable architecture validation.

#### Not runtime-verified

- The agent has not been executed or benchmarked.

- Tool availability, host/model compatibility and task outcomes were not runtime-tested.

### Technical Spike Research Mode

Investigate a named unresolved assumption with cited documentation and a bounded, separately scoped probe.
https://undominated.ai/agents/github-research-technical-spike/

Reviewed: 2026-10-13; revision: 156736fb63e965b2f547a1460f3b5972c46e6b24
Definition SHA-256: d094ae33f4e3b42e249491a82530485b0be7949df7ff41c7a9e48cf7a2773740
Source: https://raw.githubusercontent.com/github/awesome-copilot/156736fb63e965b2f547a1460f3b5972c46e6b24/agents/research-technical-spike.agent.md

Permissions: Frontmatter: vscode, execute, read, edit, search, web, agent, todo.; Body: continuously edit the spike; after permission, #edit test files and #runCommands/#runTasks.; Permission-asking is instruction, not enforcement. Not a sandbox.
Cost boundary: Definition can be reused under its stated licence. Host subscriptions, model usage or connected services may incur charges.
Licence: MIT — https://github.com/github/awesome-copilot/blob/156736fb63e965b2f547a1460f3b5972c46e6b24/LICENSE

#### Component limitations

- The recursive research policy has no fixed time or cost budget; define a stopping condition for the chosen spike.

- The source mixes current tool-group names with older Copilot references and domain-specific MCP examples; configure available tools before use.

- Continuous document editing has no explicit merge or conflict-resolution protocol, so preserve the source document and scope the output.

- The role recommends documentation MCPs but leaves installation to the user; none are bundled with the downloaded definition.

#### Not runtime-verified

- The agent has not been executed or benchmarked.

- Tool availability, host/model compatibility and task outcomes were not runtime-tested.

## Independent research tasks

- Constraint analyst: Inspect the fixed requirements and current system independently. Return constraints.md separating hard requirements, preferences and unsupported assumptions, each with an owner and evidence source.

- Option A architect: Develop one assigned option from the frozen brief without seeing another architect’s verdict. Return option-a.md with interfaces, data ownership, failure paths and evidence for each constraint to the architecture owner.

- Option B architect: Develop a distinct option, including a simpler or existing design where viable, from the same inputs. Return option-b.md using the same comparison fields to the architecture owner.

- Failure challenger: Independently derive failure and migration scenarios from the requirements and initial option briefs. Return challenge-cases.md before reviewing the completed designs in the integration stage.

## Sequence and verification

1. Freeze the source, option briefs and constraints. Name the architecture owner and separate output files. Use the reviewed setup for each host or manual document handoffs; limit inspection to the authorised repository and redact operational secrets.

2. Run the independent assignments. Give each Code Architect instance one option because its source asks for a single design. Require source references for existing behaviour and label proposed or unmeasured behaviour explicitly.

3. Have the architecture owner assemble the constraint matrix after all drafts arrive. Then give the completed matrix and both designs to the Architecture Critic in proposal-review mode. Record failure traces, rejected assumptions and simpler alternatives without replacing the original drafts.

4. For a decision-critical unknown, create a named spike document with a question, time or cost limit and stop condition. Use current official documentation; run a disposable probe only within existing authority for its exact environment. Retain inputs, observations and failures, or label the probe unrun.

5. Record the owner’s selection or deferral in an ADR. Explain unmet constraints and accepted trade-offs with evidence, name ownership and reversal costs, and set a concrete condition for revisiting the choice. Hand the accepted design to a later specification or implementation task.

## Boundaries

- A design document and a critic’s verdict are not evidence of implemented latency, reliability or cost. Unknown measurements remain unknown; do not invent scores or weighted totals to force a winner.

- The Code Architect and Architecture Critic use Claude Code profiles; the spike uses a Copilot profile. Tool names, model availability and permissions need host checks. Pass documents explicitly; no automatic cross-host orchestration is assumed.

- The critic can access Bash despite its read-only instruction. Enforce the intended access in the host. A spike can write files and execute commands; do not broaden credentials or provision services to resolve a blocked investigation.

- Stop a probe on the wrong target, exceeded budget or unexpected side effects. Preserve the frozen source and a disposable-environment checkpoint, retain failure evidence, and have the probe owner verify cleanup. An ADR alone authorises no migration or deployment.

## Expected output

An architecture decision record that selects or defers an option, with traceable trade-offs, unresolved assumptions and a review trigger.

## Deliverables

- constraints.md and option-a.md/option-b.md: independently authored requirements and comparable designs.

- constraint-evidence-matrix.md: supported, contradicted and unknown claims for each option.

- challenge-and-spike-record.md: independent cases, reconciled findings and probe receipts or unrun checks.

- architecture-decision.md: selection or deferral, accepted trade-offs, ownership and revisit trigger.

## Acceptance checks

- [ ] Both options use the same input revision and address every hard constraint, including the current or simplest viable design.

- [ ] Each comparison cell cites a source or observation and distinguishes proposed behaviour from measured behaviour; unknowns cannot count as satisfied constraints.

- [ ] The review traces a relevant failure and migration path for each option, including state ownership and any irreversible step.

- [ ] Decision-critical probes have a declared target, authority, stop condition and result or an explicit unrun status; failed probes remain in the record.

- [ ] The ADR explains the owner’s actual choice without arbitrary scores, records unresolved evidence and names the condition that would reopen the decision.

Workflow: https://undominated.ai/workflows/#compare-architecture-options-against-constraints
