AvrelDocs

Safety rules

Avrel checks your hardware against safety rules twice:

  • As designed. On the components and wiring you declared, before anything is switched on. An unfused feeder or a fail-safe nobody has tested shows here first.
  • In operation. On the readings your systems really report, live from a collector and from imported history. A protection that is declared but does not behave shows here: a fail-safe reported not holding, a rail outside its rating, a watchdog signal that never fires, a reading that stops arriving.

Both are on the Topology & 3D Audit page, in the Safety rules card: As designed, In operation and Rules.

Avrel ships a built-in set of rules. They are the defaults, not the limit: each organization tunes them and adds its own, and every change is kept as a version.

As designed and in operation#

When the two disagree, Avrel says so. If your declared fail-safe is marked as tested on hardware but a reading reports it not holding, In operation shows The fail-safe is declared and marked tested on hardware, but in operation it reported not holding in 1 of 600 readings, with when it first happened.

Each rule on readings gives one of three results, per system:

ResultMeaning
PassEvery reading in the window meets the rule.
FailAt least one reading breaks it. The result says how far, how often and when it was first seen.
No dataNo reading in the window shows this channel, so the rule cannot be checked yet. No data is never counted as a pass.

By default Avrel looks at the latest 7 days that have readings, so imported history that ends before today is still checked. Choose the last 24 hours, 7 days or 31 days instead from the menu above the results. Readings from a collector that could not reach its controller are left out, because they carry no values. Results are refreshed every few minutes, and at once when a rule changes.

The release gate#

The release gate has a check, HIL-OPERATION-01 Safety rules hold in operation. It fails, and blocks the release, while a critical rule is broken on the latest readings. A rule set to warning is listed but does not block. While there are no readings to look at, the check is skipped, never passed.

The rules as designed already feed the gate through the fail-safe check (HIL-GUARD-01) and the audit's critical findings.

Built-in rules#

RuleCheckedWhat it checksSettings you can change
PWR-001As designedEvery power connection from a power source to a distribution bus is fused or has a breaker.On or off, severity
PWR-002As designedA load whose startup current is at or above the threshold (15 A by default) does not share an unisolated bus with a controller or computer.On or off, severity, inrush_threshold_a
BUS-001As designedNo data link has uncommissioned devices, a declared warning or missing termination.On or off, severity
SAFE-001As designedA start-up fail-safe (boot guard or watchdog) is declared and marked as tested on the hardware. Declared but untested is a warning.On or off, severity when none is declared
RUN-SAFE-001In operationEvery reading of the fail-safe status, boot_guard_ok, reports it holding.On or off, severity

Tuning a built-in rule makes a new version of it for your organization. Back to default retires your version, and the default applies again.

Your own rules#

Owners add rules under Rules > Add rule. A rule is declared as data, not code, so anyone can read exactly what it checks.

KindCheckedWhat it checksYou give
ConnectionAs designedEvery declared connection of a kind has a property. For example, every power connection to an actuator is fused.The connections it applies to (kind, from and to component types), and the property: fused, isolated or missing termination (yes or no), or a largest startup current.
Rating (range)In operationA reading stays within its rating. For example, the main rail stays between 11 and 14.4 V.The reading, a min, a max or both, its unit, and optionally how long it may be outside before it counts, so a brief spike is ignored.
Status (flag)In operationA status reading always has the expected value.The reading, and true or false.
FiresIn operationA signal reaches a value at least once in every period. For example, a watchdog self-test that must run every day.The reading, the value, and the longest time it may go without it.
Keeps reportingIn operationA reading arrives with no gap longer than you allow.The reading and the longest gap.

Every rule has an ID you choose (for example RAIL-01), a title, and a severity: critical or warning. You can also say what to do when it breaks, which requirement it verifies (for example PWR-012 from your verification matrix), which system it applies to (every system by default) and which declared component it is about.

Readings are named as your collector or your import names them: supply_rail_v, boot_guard_ok, or a sensor name. The form offers the names your systems have reported. To check a reading your collector does not send, import it as history; see Import history.

A connection rule counts only what is declared. A connection whose fuse nobody has recorded breaks a rule that needs it fused, because an unchecked fuse is not assumed to be there.

Versions, proposals and who decides#

  • Every change is a new version. Changing a rule keeps the version it replaces, marked superseded, with who changed it, when and why. Retire stops a rule applying and keeps it with your reason; Restore brings it back.
  • Owners decide. Only owners add, change, accept, retire or restore rules. Members see every rule and every result.
  • Assistants propose. An AI assistant with a propose key can suggest a rule or a change, for example from a datasheet or your requirements. It waits under Rules > Waiting for an owner, with who sent it and why, and applies only once an owner presses Accept. The proposal shows the assistant what the rule would find now, so it can check before sending.
  • Everything is recorded. Each change is in the audit log with the state it moved from and to. The states are listed in Lifecycles.

From an assistant or CI#

ToolAccessWhat it does
audit_hardwareReadThe rules as designed, on the declared hardware or a draft.
audit_in_operationReadThe rules on readings, with the window and system you choose.
list_safety_rulesReadEvery rule that applies, its settings, earlier versions and proposals.
propose_safety_ruleProposeProposes a new rule or a change for an owner to accept.

See AI assistants (MCP).