Skip to content

Warrants ​

Warrants decide what the case may use. An investigator requests one with a reason, a judge decides, and while it is in force the intel it covers is admissible. The Warrants tab has three views: This case, Bench (judges) and Staff.

The Warrants tab: a denied request, two open requests with Approve, Deny and Amend

Warrants required ​

Config.Warrants.required is the master switch, also on np_admin's Surveillance → General page and, without np_admin, as a switch in the staff view.

Setting Effect
Off (default) Everything is admissible. No warrant is checked, and the phone, plate and address checks of devices and taps pass. Requests can still be filed and decided
On Intel without a covering warrant is stored but marked not admissible. Devices that need a warrant refuse to be planted or powered on without one, and a tap needs a phone warrant. The console shows a banner: Warrants are required

Warrant types ​

Type Target Scope
phone A phone number (digits only: 555-0123 equals 5550123) Calls, SMS and location can each be switched off
plate A vehicle plate (case and spacing ignored; the real plate behind a fake one counts, with np_mechanic) The plate
address An address label, or a position and radius Use my position stores your server-side position and a radius (default 40 m, a judge may widen it up to 300 m)
person A person reference (character id or subject ref) The person
bank An account number or a person reference The records

Config.Warrants.kinds limits which types are offered.

Requesting ​

Request a warrant asks for the type, the target, a reason of at least 12 characters (reasonMinLength) and a duration (default 72 h, between 1 h and 336 h; the core never allows more than 720 h). A case holds at most 8 open requests (maxPending) and one player files one request per 3 s. On-duty judges get a notification. The case members and the requester see the request as Requested until it is decided.

Roles: investigators and leads may request (warrant.request) on a case they belong to.

When np_legal is started, new surveillance warrant requests are routed to its signing queue. np_surveillance waits until legal reports IsReady() and its provider registration succeeds before creating the local request, so an incomplete legal schema cannot silently fall back to a local judge. Approval, denial, and revocation are mirrored to the surveillance warrant record; coverage uses that record's issue, expiry, and revocation times. Local judge actions remain available when np_legal is not started.

Deciding ​

The Bench lists the open requests of every case with the reason, the duration and the case, plus the 15 most recent decisions. A judge (warrant.decide) can:

  • Approve, choosing any duration between minHours and maxHours. The warrant is in force from that moment.
  • Deny, with a note.
  • Amend: change the scope or duration. An amended approved warrant is superseded by a new one, so the chain shows who changed what and when (it is part of the case file).
  • Revoke an approved warrant, with a note. A lead of the case may also withdraw or revoke a warrant of a case they are on (warrant.revoke); staff may revoke any.

A judge cannot decide a request they filed themselves unless allowSelfDecision is on. Judges need no membership in the case to decide. /warrants (Config.Warrants.command) opens the bench and the staff views outside the console, for judges and staff only.

A warrant ends when its time runs out (Expired), when it is revoked, or when it is superseded. A tap on its number is cut at that moment and its investigators are told (Phone lines).

Admissibility ​

While warrants are required, every new intel entry is checked against the approved warrants in force at that moment on the entry's target: a phone number, plate, position or person. Config.Warrants.intelKinds says which warrant covers which intel kind:

Intel kind Needs a warrant of kind
call, sms phone (a phone warrant can exclude calls, texts or location)
bank bank
ping plate, phone or person
location plate, phone, person or address
note, sighting, document, link, alert none: an agent's own observation never needs one
any other kind (a module's own, such as bug, or one a resource files) any warrant of otherKinds that covers the target

An entry can also name its covering warrant directly (warrantId). The check is made once, when the entry is stored; it is not re-evaluated afterwards. isCovered(kind, target, at) answers the same question for your own scripts (Exports).

Staff view ​

Staff (the node np_surveillance.warrants.staff) lists every case with its warrant counts and the audit log (filter by case or action, paged by 50). The node np_surveillance.warrants.settings flips warrants required from the console when np_admin is not managing it. Judges and staff are reached by /warrants too.

Notifications and logs ​

Who Is told
On-duty judges A new request (notify.judges)
The requester and the case members A decision, an amendment, a revocation or an expiry (notify.members)
np_discord channel warrants Every request, decision, amendment, revocation, expiry and setting change (discord)

Every step is written to the audit log with the actor.

np_identification ​

With Config.Warrants.identificationProvider on, np_surveillance registers a combined warrant provider with np_identification: the approved warrants of the kinds in identificationKinds (default person) count as an open warrant on a character's document check, next to the np_prison warrants. np_identification holds only one provider, so np_surveillance registers one that merges both instead of replacing np_prison's. Leave it off to keep np_prison as the only source.

Access ​

Action Roles
Request (warrant.request) Investigator, lead
Decide and amend (warrant.decide) Judge
Revoke (warrant.revoke) Lead, judge, staff

Staff nodes: np_surveillance.warrant.request, .warrant.decide, .warrant.revoke, .warrants.staff and .warrants.settings (Access, commands & admin).