Skip to content

Signals ​

A signal is a deterministic finding with evidence. Every evaluation returns one entry per rule instance with status: "pass" or status: "fail". Only failures carry evidence.

A signal has:

FieldMeaning
idStable id for this finding.
ruleR001–R008.
severitycritical, high, medium or low.
statuspass or fail.
titleThe rule title.
summaryWhat was observed, including the numbers when relevant.
fixHintThe repair the rule expects.
evidenceTrace id, component id, source location, request id, artefact id or selector that proves the finding.

Signals are not a score and not an LLM judgement. They are rules over the evidence the app has already collected.

Rules ​

RuleTitleSeverityWhat triggers a failure
R001Uncaught errorcriticalAn error.uncaught event. Evidence includes the trace, the component and its source location when known.
R002Console errormediumAn error.console event. Evidence points at the trace.
R003Failed requesthighA request with a failing status or a transport error, recorded in diagnostics. Evidence carries the request id.
R004Stuck loadinghighA failed request exists and a component is still loading or dataStatus: "loading". Evidence carries the component, source and request id.
R005Horizontal overflowmediumThe page scrolls horizontally at the probed viewport. The hub stores a screenshot when it detects overflow.
R006Interactive control without a namemediumThe accessibility probe finds an interactive control with no accessible name.
R007Low text contrastlowA contrast sample is below 4.5:1.
R008Component without source mappinglowA reported component has source: null.

What each rule needs ​

RuleSource
R001, R002Runtime events. No probe needed.
R003, R004Snapshot diagnostics and component state. No probe needed.
R005, R006A viewport probe: veya_signals with viewport while the Electron host is available.
R007Contrast samples. The bundled Electron host does not collect them in v0.1, so R007 reports a pass unless a host supplies samples.
R008The component tree. No probe needed.

A pass for R005 without a viewport means "no layout probe was captured", not "the layout is correct". Pass viewport when you care about responsive layout.

Run the rules ​

Through MCP:

json
{
  "tool": "veya_signals",
  "arguments": {
    "viewport": { "width": 390, "height": 844 }
  }
}

Through the hub:

bash
curl -s -X POST http://127.0.0.1:7317/v1/sessions/<sessionId>/signals \
  -H 'content-type: application/json' \
  -d '{"viewport":{"width":390,"height":844}}'

The host resizes the window that owns the session (the agent window by default), waits two animation frames, probes scrollWidth and accessible names, captures a screenshot if the page overflows, and evaluates the rules. Pass a human sessionId to probe the human window. Without a viewport, the last probe for the session is reused if one exists.

veya_context reports the current failing signals without probing. It reuses the same last probe, if any; see The context brief. Use veya_signals with a viewport when you need a fresh layout and accessibility check.

The demo's planted defects ​

pnpm dev:demo serves a dashboard with deliberate problems. A useful first evaluation is:

json
{
  "tool": "veya_signals",
  "arguments": { "viewport": { "width": 390, "height": 844 } }
}

Expected failures on a fresh session include:

DefectSignal
/api/revenue returns 500 and the component stays in loading.R002 console error, R003 failed request, R004 stuck loading.
The dashboard overflows at 390px.R005 horizontal overflow, with a screenshot artefact.
The project list has an icon-only button with no accessible name.R006 unlabelled control.
The revenue failure is logged with console.error.R002 console error.

The slow /api/stats request is recorded in diagnostics as a slow request, but it is not a signal in v0.1. The empty project list without guidance is a product gap, not a deterministic rule failure.

Read a finding ​

A failure points at the evidence:

json
{
  "rule": "R004",
  "severity": "high",
  "status": "fail",
  "summary": "RevenueChart stayed in a loading state after a request failed",
  "fixHint": "Give the request an error branch so the component leaves its loading state.",
  "evidence": {
    "componentId": "dashboard.revenue",
    "source": { "file": "src/App.tsx", "line": 38, "column": 5 },
    "requestId": "req_01JABCDEF"
  }
}

Use veya_trace with the trace from the related event, or veya_events filtered by component or request, to read the cause. Then make the change and evaluate again.

Fix and verify ​

  1. Inspect the evidence and the source location.
  2. Change the component or request handling.
  3. Reload the product. This creates a new session.
  4. Evaluate the rules again.
  5. Use veya_perform to verify the corrected behaviour, not just a successful click.
json
{
  "tool": "veya_perform",
  "arguments": {
    "steps": [
      { "kind": "click", "target": "project.create" },
      {
        "kind": "expect",
        "expect": {
          "events": ["interaction.started", "state.changed"],
          "state": { "dashboard.dialogOpen": true }
        }
      }
    ]
  }
}

Limits ​

  • Rules are deterministic. They do not judge aesthetics or UX quality.
  • R005 and R006 need the Electron host for a fresh probe.
  • R007 has no contrast samples from the bundled host in v0.1.
  • A pass means the rule found nothing in the evidence it had. It does not prove the absence of a defect.

Next ​

Released under the Apache-2.0 License.