Skip to content

Latest commit

 

History

History
193 lines (153 loc) · 31.1 KB

CHANGELOG.md

File metadata and controls

193 lines (153 loc) · 31.1 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Changed

  • Migrate existing Appium scenarios down in testing/mobile-testing when writing or fixing tests: an in-scope spec in the touched feature with no device/native boundary moves to component-view or integration in the same change, without asking (references/placement/e2e-to-lower-layer.md). Specs outside the touched feature stay as they are. (#216)
  • Use the task-bound Harness for compact tool discovery in Recipe Cook. Verify the adapter and checkout at setup, then look up only the recipe or action needed. For a dev or fix-bug debrief requested directly in chat, identify the instruction or tool output that would have saved the most time. (#311)
  • Record Recipe Cook's final PR proof from the clean commit proposed for publication. Preserve the selected attempt's screenshot paths when Pretty PR packages evidence. (#311)
  • Update testing/mobile-visual-testing for @metamask/client-mcp-core 0.16.1 and @metamask/device-mcp 0.10.0. Refs of unnamed or ambiguous nodes only work with mm click, which taps them at their bounds (target ends in (bounds)); other target commands refuse them with MM_TARGET_NOT_FOUND and a hint. An unknown command or a bad launch value exits 2 before any daemon starts, and a non-integer numeric flag such as --timeout abc exits 2 instead of being dropped. iOS mm type <field> "" exits 0, mm cdp and mm hermes-targets keep the Metro port the launch resolved from MM_METRO_PORT, and daemon log lines name the call's target. (#329)
  • Update testing/visual-testing for @metamask/client-mcp-core 0.16.1. mm screenshot --selector or --frame with --timeout waits that long for a missing element (without it, the command still fails after 2 s with MM_TARGET_NOT_FOUND), and the TradingView chart notes say that its canvas is in a nested iframe that --frame does not enter. (#328)
  • Update testing/visual-testing for @metamask/client-mcp-core 0.16.0. An unknown command or a bad launch value exits 2 with MM_INVALID_INPUT, a target that matches several elements fails with MM_TARGET_NOT_FOUND, mm screenshot --selector takes --timeout and fails after 2 s with MM_TARGET_NOT_FOUND when nothing matches, a --frame wrapper with one iframe resolves to that iframe, mm mock-network requests redacts URLs, and daemon log lines name the call's target. (#316)
  • Update testing/visual-testing for @metamask/client-mcp-core 0.15.0. Add mm events mark, mm logs and mm network with a per-flow recipe in place of console.error hooks and CDP network capture, mm cdp --target sw and --fresh, iframe refs and --frame, mm screenshot --selector, mock-network request bodies and service-worker, offscreen and snap matching, the hidden-checkbox clickedLabel click, the ref shorthand in run-steps, and the one timeout budget with MM_QUEUE_TIMEOUT. (#297)
  • Update testing/mobile-visual-testing for @metamask/client-mcp-core 0.15.0 and @metamask/device-mcp 0.9.0. Android taps on a covered target now fail with MM_TARGET_OBSCURED, visible: false now marks off-screen elements on Android too, mm type <field> "" clears a field, and mm cdp reuses the launch Metro port over one persistent connection. The "Android visible is always true", "pass --metro-port on every cdp call" and press-button back keyboard workarounds are removed. The skill adds the slow-first-screen recipe (wait-for the new screen, do not tap again), the run-steps ref shorthand, the shared timeout budget with MM_QUEUE_TIMEOUT, the iOS tab bar that is not in the tree, and a warning that a mobile ref is resolved again at tap time and can tap another element with the same test ID or label (#298).
  • Run the mm CLI in testing/mobile-visual-testing as node_modules/.bin/mm <command> from the repository root: the Mobile overlay states the invocation rule once in its prerequisites, writes commands as mm <command>, and uses the full form in the first Launch block. yarn mm <command> is noted as also working but slower, and yarn mm:doctor is unchanged. (#309)
  • Run mm as node_modules/.bin/mm from the repository root in testing/visual-testing: the Extension overlay states the rule in its prerequisites and uses the full path in its launch and cleanup commands. yarn mm also works but is slower, because Yarn starts on every call. (#308)

Added

  • Add the stable spotlight skill for viewing Sentry events (transactions, spans, errors, logs) locally in the Spotlight browser UI. It installs in MetaMask Mobile with yarn skills and ships a spotlight.sh script (on, status, mcp, off) that sets the env flag, starts the sidecar and opens the UI. (#294)
  • Add the device-capability base skill for adapting UI to the hardware tier, network transport tier and measured latency, with a MetaMask Mobile overlay. (#276)
  • Add experimental component-structure skill for laying out React and React Native components and screens (one component per file, body order, screen hooks, effects, state shape, memoization under React Compiler, subscription isolation), with a review checklist and Mobile and Extension overlays. (#277)
  • Add the experimental, explicit-only assets/epic-decomposer skill for splitting tech-debt, cleanup and quality work into an epic of super-atomic Jira tickets (one small PR each, headless verification only) that cloud agents can land. It pilots one ticket, files only after approval, never adds the ai-agent label, and ships md2adf and file-tickets scripts. (#286, #287, #291)
  • Add experimental assets/dependency-bump-audit skill for proving a dependency bump in any JS/TS repo safe against the repo's own code: lockfile inventory, upstream notes for every intermediate version, usage mapping and branch-vs-base checks. (#275)
  • Add a Terminal fix-bug checklist to recipe-cook and the va-mmcx-terminal overlay to review-pr. (#281, #282)

Changed

  • BREAKING: Install ui/content-guidelines by default as a base skill, and route UI component changes in Mobile and Extension reviews to ui-development. A routed preference skill that is skipped is now reported as a coverage gap instead of being skipped silently. (#270)
  • review-pr now requires fetching and quoting the hosted components.json manifest entry for every MMDS component a PR adds or changes. Reading the installed package types does not replace this, and an entry that was not read is reported as a coverage gap. (#302)
  • Update ui/content-guidelines: periods depend on context, add a currency amounts section, name MetaMask Money and its access wording, and write "lockup" as one word. (#257)
  • Update the assets/react-compiler-migration skill (still maturity: experimental) and make it team-agnostic: drop assets file paths and ticket ids, label metamask-mobile specifics in a repo-notes section, and move compiler-forced helper context from code comments to the commit and PR. Add guidance for a failing yarn lint:react-compiler burndown baseline and validated recipes for useEffectEvent, render-body helpers, mount-only effects behind exhaustive-deps suppressions, sync-effect ordering, render-time refs and TypeScript narrowing after failRequest. (#278)
  • Stop testing skills from prompting unit tests for static styling: component-library defaults and logic-free prop overrides (twClassName, className, style, color props) are GAP / ACCEPT, and presentation is tested only when JS logic chooses between styles (asserting what the user sees). (#182)
  • Extend testing/mobile-testing component-view writing guidance: mock every request the screen makes, wait for the settled screen, do not sleep or time off Date.now(), do not add per-test { timeout } bumps, and run the test checking for NetConnectNotAllowedError before opening the PR. (#269)
  • Consolidate the testing/mobile-testing component-view run commands and done-gates, and add a pre-PR flakiness repeat with yarn test:view:repeat (randomized order, two repetitions by default, five for tests that share Engine or messenger mocks). Cloud agents can skip it because CI runs the repeat. (#290, #300)
  • Defer heavy sections on the push transition with useScreenTransitionComplete in the performance guidance. (#268)
  • Flag polling for stream-owned data, client-local stream managers, React Query polling of controller data in Terminal, and Core APIs shaped for a single client in perps-review-pr. (#289)
  • Recommend mm-harness 0.96.44 in the recipe skills. (#266, #267, #273, #279, #280, #288)

Fixed

  • Narrow the ui-development Tailwind arbitrary-value ban to padding, margin, gap, color, border radius and typography, and allow fixed h-[..], w-[..] and size-[..] values when the design calls for a specific dimension. (#302)
  • In Mobile fix-bug, recipe-cook now freezes a clean candidate before final CI and after proof. (#272)
  • Gate the recipe-cook Terminal step 3 on the doctor rather than sandbox.json. (#283)
  • Require Jira keys in recipe-cook PR bodies to be links. (#285)

Added

  • Add recipe planning and cooking skills (recipe-plan-and-dispatch, recipe-library-audit, recipe-performance, recipe-cook, and setup), pinned to a single mm-harness version with an install-time version check, titled checklist steps, proof artifacts on proof steps, and a recommended mm-harness 0.96.33. (#262, #258, #256, #251, #244, #233, #228, #227, #225, #215, #214, #206)
  • Add a shared, MCP-free ui-development baseline for looking up MetaMask Design System components, with thin Mobile and Extension overlays that do not pin a component inventory or require Storybook MCP. (#242, #213, #212)
  • Add mobile planning skills (planning, planning-spec, and jira-brief). (#200)
  • Add notifications-category-sync for syncing a client with the backend notifications category manifest, with a MetaMask Mobile overlay. (#188)
  • Add a PR review base skill. (#184)
  • Add generated Perps review checklists, composed from the Perps library and repository overlays rather than copied knowledge. (#183, #163, #159)
  • Generate perps-review-pr/references/pack.json, a machine-readable rule pack listing each criterion family with its areas, class, status and rules. Client-only families name their client, so a hosted review of one client never expects another client's rows. A direct invocation does not read the pack. (#264)
  • Add a profiling regression proposal skill that suggests follow-up actions after MetaMask Mobile CI has classified a Hermes CPU-profile regression. (#179)
  • Add activity mapper guidance, including cross-client advice. (#187, #177)
  • Add check-nesting and component-view rules migrated from Consensys/skills. (#175)
  • Support explicit-only skill invocation, preserve repository overlays, and prune managed retired skill names during sync. (#174)
  • Extend the performance domain with measurement, anti-pattern scanning, and React Compiler error-triage and coverage antipattern skills. (#170, #169, #165)
  • Add a typescript domain with authoring and migration skills. (#167)
  • Add a platform domain covering Extension runtime architecture and failure modes. (#166)
  • Add a Mobile selector-patterns skill. (#153)
  • Add a navigation skill with a repo-agnostic base and a MetaMask Mobile overlay for Routes and NavigationService, marked base: true so it installs even when its domain is filtered out. (#148)
  • Add a feature-flags skill with a repo-agnostic base and a MetaMask Mobile overlay for version-gated remote flags, marked base: true so it installs even when its domain is filtered out. (#147)
  • Add an analytics skill (platform/analytics) with a repo-agnostic base and a MetaMask Mobile overlay for the canonical tracking API, marked base: true so it installs even when its domain is filtered out. (#140)
  • Add an observability domain with Sentry, Tempo, and telemetry cost-control skills. (#76)
  • Add skill rules that previously existed only in Farmslot fixtures. (#238)

Changed

  • BREAKING: Install planning, planning-spec, and jira-brief by default as stable base skills for MetaMask Mobile and Extension (Core stays out of scope). They run when scope is ambiguous, the change is large, or the work is security-sensitive, performance-sensitive, or a contract or API change; planning calls jira-brief only when a Jira ticket is already identified; revert yes/no prompts and brief gates are tighter. Opt out with yarn skills --exclude planning/planning,planning/planning-spec,planning/jira-brief --save. An installed copy keeps its previous trigger until the next sync. (#254, #219, #204)
  • BREAKING: Update testing/mobile-visual-testing for @metamask/client-mcp-core 0.13.x and 0.14.0 and @metamask/device-mcp 0.7.0 and 0.8.0. The knowledge store commands, the knowledge-reuse step, and the --goal and --flow-tags launch flags are removed. Failures are now one-line JSON on stdout with error.code, hint, retryable, and per-class exit codes, and the Android guidance is corrected from a live emulator run. (#249, #211, #164)
  • BREAKING: Update testing/visual-testing for @metamask/client-mcp-core 0.13.1 and 0.14.0. The knowledge store commands, the mandatory knowledge-reuse step, and the --preset launch example are removed, and yarn build:test replaces the removed yarn build:test:webpack script. Failures are now one-line JSON on stdout with structured error codes, and the 0.14.0 commands (mm inspect, mm hover, mm set-viewport, mm reload, mm stop, and browser mm scroll-to-element) are documented. (#248, #210)
  • Update perps-review-pr so shared checks are delegated, reports are shorter, checklist rows render as titles with detail lines, blocking checks are enforced, Core owns shared logic (advanced orders, Core root causes, Mobile parity), and formatters reuse Intl caching and client-utils; review requests can target a branch or a commit range, and the review rules were regenerated from the current Perps library. (#261, #260, #253, #239, #235, #229, #224, #222, #201, #192)
  • Update assets/react-compiler-migration for running react-compiler-marker on offline checkouts, stopping on stale scans, and documenting shared-value writes. (#246)
  • Update the content guidelines skill with shared rules and Mobile and Extension overlays. (#221)
  • Update testing/mobile-testing with component-view flake rules (independent-load, mockReset, and Predict investigation findings) and reusable Appium interaction-stability patterns. (#217, #199, #181)
  • Add a Rules (enforced by lint) checklist to testing/mobile-testing component-view guidance: the flake anti-patterns ESLint rejects on *.view.test.tsx (arbitrary jest.mock, fake timers, find* nested in waitFor, awaiting a skeleton or sibling, pressing a node held across a remount, clearAllMocks without mockReset, fixed sleeps, and bare timeout bumps). Require yarn eslint on new CV tests before finishing. (#231)
  • Update the MetaMask Mobile performance overlay and animation references for React Native 0.86.x, Expo SDK 57, and Reanimated 4.x with react-native-worklets (use scheduleOnRN from a worklet). (#203)
  • Require the marketing section to stay last on mobile in notifications-category-sync. (#196)

Fixed

  • Fix recipe-cook to record unreachable acceptance criteria at the plan step, keep the installed acceptance-cli path, and preserve the all-guard baseline exception. (#252, #234)
  • Trigger the content guidelines skill on edits to existing strings as well as new ones. (#250)
  • Fix the testing/visual-testing CLI reference for screenshots, tabs, and duplicate matches, and fix the Redux state-manipulation guidance for React 18 and LavaMoat builds. (#237, #230)
  • Finish recipe-cook tasks when criteria are still awaiting review. (#208)
  • Serialize updates of each shared skill source so concurrent syncs cannot race on Git's fetch state. (#207)
  • Shorten skill descriptions that exceeded the 1024-character catalog limit, including typescript/tsc-blindspots. (#158, #207)

Fixed

  • Report a failed automatic sync instead of exiting 0 in silence. postinstall still never fails yarn install, but a non-zero sync (unknown saved domain, unreachable source, no Bash) now warns, so the caller's guard can react and a stale skill set is no longer mistaken for a fresh one. (#154)
  • Install base skills again when a private overlay is configured. tools/sync picked its installer with an -x test, which npm and Yarn make false by dropping the executable bit when unpacking, so it fell through to the overlay's copy of tools/install — and an overlay predating base: installed no base skills while still exiting 0. (#154)

Added

  • Add a mobile-visual-testing skill for MetaMask Mobile. (#79)
  • Add skill for Flashlight, a lighthouse tool for Android vitals (#146)
  • Add content-guidelines skill (MetaMask mobile) (#137)
  • Add assets domain skills (#131)
  • Add unified extension-testing skill (MMQA-2274) (#130)
  • Improve swaps cpu audit skill to include info for wider context (#128)
  • Update ui-development extension skill to include newly added DS components (#124)
  • Implement skill to add evm networks on extension repo (#114)
  • Unify Mobile testing skills (MMQA-2142) (#86)
  • Add Mobile test-layer-placement skill (#80)
  • Add mobile integration test skill (#78)
  • Install a base skill set by default. Skills marked base: true in frontmatter install on every automatic postinstall regardless of domain selection, so a fresh clone lands a useful set with no configuration. yarn skills is unchanged and still installs every domain. Opt out with SKILLS_AUTO_UPDATE=0. (#135)
  • Lint rules for base skills: a base: true skill cannot also be experimental, and its description must be long enough to self-trigger (BASE_DESCRIPTION_MIN). Both are errors, so CI fails rather than warning invisibly. (#135)
  • Validate --domain / SKILLS_DOMAINS against the domains that actually exist. A typo previously installed the base set and exited 0, which reads as success. (#135)
  • Add swaps-cpu-profile-audit skill for MetaMask Mobile: parse a recorded Hermes / React Native Release Profiler .cpuprofile and audit slow frames in swaps/bridge. (#123)
  • Add opt-in stale project skill pruning via --prune-stale and SKILLS_PRUNE_STALE=1.

Changed

  • Mobile testing guidance now defaults to the component-view layer, and the Appium local-run playbook moved into mobile-testing. (#70, #54)
  • Component-view testing guidance gained flakiness and assertion patterns, now requires awaiting async-gated content, and bans nested findBy inside waitFor. (#109, #115, #132)
  • Extension testing guidance clarifies where integration tests belong. (#134)
  • The Extension UI skill is now an MMDS gateway. (#138)
  • Breaking: frontmatter key mandatory renamed to base. Update any skill still using mandatory:. (#135)
  • Breaking: postinstall now syncs by default. It previously required SKILLS_AUTO_UPDATE=1; the opt-out is now SKILLS_AUTO_UPDATE=0. An explicitly empty SKILLS_AUTO_UPDATE= keeps its old meaning (off) rather than being read as unset. (#135)
  • base: truthiness is consistent across all four implementations. The linter alone accepted on/off, so base: on linted clean while the installer skipped the skill. (#135)
  • Rewrite CONTRIBUTING.md and skill template for MetaMask/skills layout.
  • swaps-cpu-profile-audit now audits the whole capture instead of swaps-owned files only: non-swaps frames that ran while the user was on a swaps screen are classified by their relation to the swaps call stacks (called by swaps, hosts the swaps screen, or concurrent with it), bucketed into named context areas, and reported alongside swaps rows. Every reported row carries an Owned by swaps column, and fix depth is gated on it. New --context-min-pct and --swaps-only analyzer flags.
  • swaps-cpu-profile-audit reports swaps-owned areas, non-swaps areas on the swaps path, and non-swaps areas running concurrently as separate tables, so the per-area swaps detail is no longer diluted by context rows. The swaps table gained an inclusive-time column, and the report explains that self time on a leaf means a screen can trigger heavy work while showing ~0 ms of its own. Non-swaps rows in the fix table are now capped to the few that matter.

Fixed

  • Preserve configured skill sources (#121)
  • Harden validate script and review-pr skill security (#64)
  • tools/sync now execs the tools/install that shipped beside it in the pinned package, instead of preferring $METAMASK_SKILLS_DIR/tools/install. That path defaults to the .skills-cache clone tracking origin/main with no tag or commit pin, so an automatic postinstall could execute unreviewed shell from whatever was on main at that moment — bypassing lockfile pinning and release gating. The cache still supplies domains/ content; it no longer supplies executable code. (#135)
  • Cap the delegated sync subprocess so a stalled child cannot hang yarn install indefinitely, and report an ETIMEDOUT explicitly rather than returning a bare exit 1. (#135)
  • Append -oBatchMode=yes to any existing GIT_SSH_COMMAND instead of replacing it. GIT_TERMINAL_PROMPT/GIT_ASKPASS cover HTTPS only — ssh reads /dev/tty directly — but overwriting the variable would break a custom key, an agent, or a ProxyCommand on the private overlay clone these guards exist to protect. (#135)
  • A saved SKILLS_DOMAINS= (written by the old picker for the "all" choice) is no longer read as "no saved selection". Those engineers were silently dropped to base-only, and because pruning is off by default their other skills stayed on disk and went stale rather than visibly disappearing. (#135)
  • .skills.local readers strip inline comments consistently. The Bash side kept the # comment tail while the JS side stripped it, so a documented SKILLS_DOMAINS=perps # my choice resolved to the domain perps#mychoice. (#135)
  • --select with no valid entries now installs the base set instead of every domain. An empty result resolved to all, so mistyping the numbers did the opposite of narrowing the selection. (#135)
  • Preserve METAMASK_SKILLS_DIR and CONSENSYS_SKILLS_DIR entries when sync --save rewrites .skills.local.

Added

  • Add controller-integration skill for mobile and extension (#62)
  • Add multiproject validation skill (#48)
  • Add write-perps-ticket product-authoring skill (#58)
  • Add breakdown-perps-tickets skill (#57)
  • Add component-scaffold skill for MetaMask Mobile (#52)

Changed

  • Update docs for React Dev Tools Performance and Network tabs (#71)
  • Prefix all perps skill names with perps- (#60)
  • Add social-ai team to MetaMask Mobile codeowners overlay (#53)
  • Update design system UI skills (#45)
  • Recommend the Release Profiler → AI-agent .cpuprofile workflow (#40)
  • add: anti-pattern helper functions in spec files (#67)
  • Add EVM network integration skills (#66)
  • Add flaky-test-detection skill (#61)

Fixed

  • Broken links in the PR template (#68)

Added

  • Add CLI discovery commands: list, search, and describe
  • Add metamask-skills CLI with sync, postinstall, and install commands
  • Add repo inference, repo-local skills cache support, bundled package fallback, and SKILLS_AUTO_UPDATE=1 handling for consumer repos