Lemma app qa

From lemma-work/lemma-platform · View interactive version

Lemma app qa is an AI agent skill from the GitHub repository lemma-work/lemma-platform. Test and verify Lemma pod apps through real end-to-end user journeys in authenticated local and deployed contexts. Use when asked to QA, dogfood, smoke-test, regression-test, acceptance-test, reproduce, or verify a Lemma app; validate UI behavior against durable pod state; check auth, RLS, delegated

How to use this skill

Skill file

Lemma App QA

Prove a precise contract: **this principal can complete this journey in this app,

and the expected effect persists in this pod under the correct authority**. Test

outcomes, not pages. Treat a rendered screen, a successful build, READY, or an

HTTP 200 as evidence—not completion.

Load the right companions

snapshots, refs, waits, screenshots, console, network, sessions, and recovery.

Do not invent or duplicate its command catalog here.

other pod state from the CLI.

SDK, deployment, or iframe behavior is in question.

human roles, workload grants, delegation, personal resources, connectors, or

destructive approvals.

multi-journey pass and before issuing the final report.

Set the verification boundary

Record these facts before testing:

contract;

Use a disposable fixture prefix and retain every created record/file/run id. Do

not modify or delete real user data merely to gain coverage. Do not trigger email,

payments, connector writes, destructive grants, or other external effects without

explicit authority and a controlled account/fixture.

Keep claims inside the observed boundary. Do not present a local pass as a

deployed pass, one identity as multi-user coverage, an accessibility-tree scan as

screen-reader verification, a mocked denial as proof of server authorization, or

a browser-tool failure as an app defect.

Build a journey ledger

Translate requirements into a short, risk-ordered ledger. Define each journey by:

  1. persona and authority;
  2. starting state and fixtures;
  3. actions and decision points;
  4. expected visible states;
  5. expected durable pod effects;
  6. forbidden effects or data visibility;
  7. required environment and viewport.

Always include the primary value journey. Add only relevant boundary journeys:

retry/recovery, invalid input, refresh/deep-link persistence, concurrent or live

updates, permission denial, second-user isolation, assigned workflow waits,

delegated agent actions, file/connector behavior, and deployment freshness.

Prefer five deep journeys with durable verification over fifty shallow clicks.

Use the ledger in coverage-and-reporting.md.

Establish a baseline

  1. Confirm the exact pod and app with Lemma CLI inventory/detail commands.
  2. Inspect relevant table schemas, existing fixture rows, file paths, workflow or

function definitions, and workload grants without widening access.

  1. Capture the pre-test state needed to prove later mutations.
  2. Run the repository's focused static/build checks when source is in scope.
  3. Note pre-existing browser errors, failed requests, and unavailable dependencies.

Separate source checks from product checks in the report. A build pass cannot

substitute for a browser journey; an already-broken environment cannot be charged

to the new revision without a causal repro.

Open the correct browser context

Use the Lemma CLI to establish auth instead of copying or hand-wiring tokens:

# Deployed app: resolve its served URL and inject current Lemma auth.
lemma apps open <app-slug> --pod <pod>

# Local `npm run dev`: use only when that dev server seeds its own dev token.
lemma apps open --url http://localhost:<port> --no-auth

Use --no-auth only for the self-authenticating local dev flow—not to simulate a

signed-out user. Test sign-out, access request, or another role in an isolated

browser context with a real corresponding identity. Browser profiles and sessions

do not inherit auth from one another.

Exercise local development first when diagnosing quickly, then repeat every

release-critical journey against the deployed app. Confirm that the deploy landed:

record the release detail, hard-refresh or cache-bust, and verify a revision-unique

UI/DOM marker before attributing results to the new build.

Treat lemma apps open as proof of the served app, not automatically of its host.

When people normally enter through the Lemma pod shell, repeat a critical smoke

through that real shell route and verify iframe sizing, focus, navigation, auth, and

reload behavior. Add desktop or other hosts only when they are part of the release

contract.

Execute each journey

For every ledger row:

  1. Restore its declared starting state.
  2. Capture the initial URL, interactive snapshot, and visual checkpoint.
  3. Act through semantic browser locators and waits; re-snapshot after every page

change or meaningful re-render.

  1. Assert feedback at each decision point, not only the final page.
  2. Capture the final visible state and inspect browser errors, console output, and

relevant network requests. Start a HAR/trace only for timing or intermittent

failures.

  1. Reload or reopen the deep link when persistence is part of the contract.
  2. Verify the durable effect independently through Lemma CLI/API state.
  3. Restore or record the resulting fixture state before the next journey.

For a suspected defect, reproduce once from a known state before filing it.

Capture the smallest complete sequence: before, action, broken result, console or

request evidence, and pod-state evidence. Mark a one-off signal as intermittent or

unconfirmed; do not inflate it into a deterministic defect.

Verify the pod, not only the toast

Match every meaningful UI mutation to an independent durable assertion:

Assert both presence and absence. A successful create must produce one correctly

owned row, not duplicates; an unauthorized user must not see it; a failed submit

must not leave a partial record. Never infer backend success from optimistic UI.

Test identity, RLS, and delegation deliberately

Use real authorized principals when access behavior is acceptance-critical. Keep

each identity in its own browser session and record which one produced each

artifact.

return 404; do not label that as data loss without checking ownership.

product view and do not prove the app contract.

delegation-scope violations, and personal-resource denial. Report the exact

response/error code.

explicit grants, and the resulting RLS-scoped effect. Do not broaden grants to

make a test pass unless the user asked for a fix.

authorization enforcement.

own pod, as its viewer: a viewer who may use the pod's machine gets the

result, one who may not gets "not found". "me" from an app must always be

refused -- an app never reaches its viewer's own machine -- and so must the

browser, logins, home resets and creating, changing or granting machines.

Cover product states and surfaces

Exercise these dimensions where the feature exposes them:

without flicker or stale content.

true emptiness from RLS filtering or failed loading.

and recover without duplicate writes.

the denial consistent with server behavior.

scrolling without clipping essential actions. Seed past one page — record.list

serves at most 1000 rows and an ad-hoc datastore query answers with truncated

— then check every displayed count against an independent count. A page size

rendered as a total is a data defect, not a layout one.

intermediate widths for layout transitions. Reject hidden essential actions,

accidental horizontal scrolling, clipped dialogs, and touch targets below the

app baseline of roughly 44px.

visible focus, accessible names, labels, headings, dialog focus/restore, status

announcements, and non-color status cues. State explicitly what was not tested

with assistive technology.

failures, duplicate mutation requests, refetch loops, and unexpected polling.

Use safe request stubs/aborts to inspect recoverable UI error states. Do not use a

mocked response to claim that RLS, roles, grants, or persistence work in the backend.

Triage and report

Classify severity by user and data impact, not visual drama:

lose data, cause an uncontrolled irreversible side effect, make the target app

unavailable, or crash/block its only core journey for all target users.

workaround, persist an incorrect mutation, or fail only after deployment.

important state, viewport, or accessibility path for a subset of users.

risk.

Keep severity separate from evidence status and release scope. Use the evidence and

defect templates in coverage-and-reporting.md.

Report exact URLs, identity/role, pod/environment, fixture ids, timestamps,

expected versus actual behavior, minimal repro steps, and artifact paths.

Issue one verdict:

leave no critical/high defect or unverified release gate.

accepted coverage gaps that do not invalidate the release.

contract, or release gate.

observability needed to make the requested claim.

List untested areas and tooling failures beside the verdict. Never silently convert

NOT VERIFIED into PASS.

Finish cleanly

Re-read totals and ensure every issue maps to a ledger row or exploratory finding.

Remove only disposable fixtures created by this test, by exact recorded id/path,

when cleanup is authorized. Verify their removal. List any residual records, files,

runs, or external effects that could not be reversed.

Return an answer-first summary, the verdict, critical journey results, defects by

severity, verification ledger, coverage gaps, and evidence locations. Preserve the

raw screenshots/HAR/traces only when they add diagnostic value; never include

tokens, cookies, credentials, private row contents, or connector secrets.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.