Repository navigation
Conversation
devup_feature_trace gains optional stateChecks, requirements, designGaps and changes inputs that return a verification matrix: - per-state groups (default/hover/active/focus/selected/disabled) comparing Figma size, position, colour, border and typography with implementation values, optional pixel checks through devup_visual_compare, and expected component-set variant states; missing design, missing capture and static-only states stay unverified - requirement verdicts (verified/unverified/not-applicable) with evidence, screen/component/state scope and browser-verification-required for interaction or visual requirements proven only statically - Figma data gaps (missing nodes/properties, failed reads/exports) with the screens, states and requirements they block; claims gate design-match and completion - change impact for shared components, shared vs screen-only config scope, static vs observed result counts - a review report per change and an ordered followUp for unfinished verification, documented in the guide (section 17) and the devup-implementation-plan skill Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
owjs3901
marked this pull request as ready for review
November 28, 2026 17:38
owjs3901
deleted the
devfive/3099154426bffbeef8b62999b80bb038/state-requirement-verify
branch
November 28, 2026 17:38
devfive-relay-c70423 Bot
pushed a commit
that referenced
this pull request
Nov 28, 2026
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
devup_feature_tracegains four optional, backward-compatible inputs (stateChecks,requirements,designGaps,changes). When any of them is supplied, the response carries averificationmatrix. Calls without these inputs are unchanged apart fromverification: null. The logic lives in the newcrates/devup-mcp/src/server/verification_matrix*and reuses the existing visual compare, UI inventory, cached Figma snapshot and component-set variant data.1. Per-state verification
stateChecksare grouped by target and route (verification.stateGroups). States are normalized: pressed→active, focus-visible→focus, checked→selected.artifactIdsnapshot, or from explicitdesignvalues. They are compared withimplementationvalues: 0.5px default tolerance, RGBA channel delta ≤1, first font family.visualtakes the exactdevup_visual_compareinput and runs throughvisual_compare::compareunchanged.State=Hover) becomeexpectedStates. A variant with no check becomes anunverifiedrow.unverified, never a pass.capture.neededis set only for failures that have no pixel comparison.2. Requirements ↔ screens/components/states
requirements(design spec cards or user requirements) carrytargetsand acheckkind.verified,unverifiedornot-applicable, with anoutcome, areasonand the evidence.browser-verification-required.scopelists screens (component targets expand through static importers),sharedComponentsandmultiScreen. Every screen in scope needs its own evidence, otherwise the outcome isscope-not-covered.3. Incomplete Figma data
designData.gapsmerges the gaps found:designGaps;cannotJudgenames the blocked screens, states and requirements.claims.designMatchandclaims.verificationCompleteareblockedwhile anything is open.summary.requiredrepeats this as "Do not claim a design match or a finished verification: …".4. Reuse and change impact
reuseCandidatesare kept.changeImpactlabels each componentshared,screen-only,unreferencedorunknown, withaffectedScreens.configScopeseparates shared files (devup.json, root layout, globals, screen-plan config) from screen-only ones.resultsBySourcecounts static and observed results separately.5. User review report
reviewReport.changeslists, for each change:6. Unfinished verification
followUpfollows the 5-step order:fixInScope(with the next action),askUser(cause / recommendation / verifies / userAction, plus the fields still missing),continueWhileWaiting, andunresolved(attempts and remaining constraint).devup://guide/usage§17 and thedevup-implementation-planskill (manifest hash updated).instructionsare at 1,495 of their 1,500-character cap, so they were not extended.Compatibility
#[serde(default)]).deny_unknown_fieldswithadditionalProperties: {"not": {}}, following Catch first-entry motion flashes and strengthen Figma audit evidence #130 / 731bed7.Value-typed or boolean schemas were added.Tests
verification_matrix_tests.rs.feature_trace_tests.rs: anchor acceptance, untargeted refusal, unchanged legacy output, missing artifact as a gap, unknown-field rejection.cargo fmt --all --check: clean.cargo clippy --workspace --all-targets -- -D warnings: clean.cargo test --workspace: passed. The lib suite (943 tests) was re-run on the final commit.Changepack: Minor.
🤖 Generated with Claude Code