The signed shift log
The shift log is where operators write what the next shift must know, and where one shift hands over to the next with two signatures. Each production line or area keeps its own log. It is part of eaxScada Enterprise only: not Pro, not Starter, and not the Free edition, not even inside Free’s evaluation sessions.
How to use it: Write in the shift log and hand over a shift. How to set it up: Set up shift logs. The routes: Shift log API.
Every entry is a record in the audit trail
Section titled “Every entry is a record in the audit trail”An entry exists only if its audit record was written. The shift log has no store of records of its own: each entry, correction, closure, review and handover step is one record in the audit trail, category SHIFTLOG. The audit trail chains its records with SHA-256 and writes each one to disk before it answers (see Security and 21 CFR Part 11). So:
- Attributed. The author and every signer come from the signed-in session, or from the co-signer the server verified. A request body never names an author, a signer or a hash.
- Time-stamped by the server, in UTC to the millisecond, and shown in the site time zone.
- Never edited, never deleted. No route changes or removes an entry:
PUTandDELETEon an entry answer405withAllow: GET. A mistake is fixed with a correction, which is a new entry; both stay visible. - Linked to its content. The server computes a SHA-256 hash of the entry’s content (the text, the fields, the references and their snapshots, the shift, the author) and a signature is bound to exactly that hash.
- Record first. When the audit trail cannot write, nothing is stored and the answer is
503 AUDIT_NOT_WRITTEN: “Not saved: the audit trail could not be written. Your text is kept as a draft.” When the server’s trail does not record at all, every write answers503 SHIFTLOG_NO_TRAIL. The shift log never runs without a record.
The lists in the operator panel come from a read index (data/shiftlog/index.duckdb), built from the audit trail and rebuilt from it when it is missing or fails its check. The index is never the record: Verify against the audit trail in the panel reads every record again from the trail, recomputes the content hashes, checks that every correction, closure, review and acceptance pairs with its entry and that every signature matches its record, and compares the index with the trail. A record that fails is shown with a rose marker, “Failed verification”, never as a valid entry. The audit trail’s own hash chain is part of the verification for a shiftlog_admin only. A verification replays the whole trail, so each person verifies at most once every 30 seconds (“A verification ran a moment ago. Try again in half a minute.”). When the index lags a moment behind a new entry, opening that entry reads it from the audit trail: an entry that is recorded is never “not found”.
Reading the shift log writes nothing. The state of a handover is worked out from the audit trail for each read; the watcher, which runs every minute on the server that writes the shift log, stores it.
Entry types
Section titled “Entry types”The six types are fixed. An engineer can turn types off per log and add fields, but cannot invent a type, because the server applies rules to each one.
| Type | For | Signature | Can be an open item |
|---|---|---|---|
note |
Anything the next shift should know | Attributed, no password (a log may require one for its notes) | No |
maintenance |
Work done, or work requested on equipment | Attributed, no password (a log may require one for its maintenance entries) | Yes |
deviation |
A departure from procedure or specification | Password-signed, “Recorded by” | Yes, open by default |
safety |
Bypasses, permits and lock-outs in force, near misses | Password-signed, “Recorded by” | Yes, open by default |
instruction |
A standing instruction to the following shifts | Password-signed, by a reviewer of the log only, with a valid-until date | Yes, until it expires or is closed |
handover |
The shift handover | Two signatures, outgoing and incoming | No |
A handover is created only through the handover, never as a generic entry.
Attributed means the entry is a full record (who, when, what, in the audit trail) without a password. Password-signed means the person types their password again over the content hash the server computed; the server verifies it as every electronic signature (lockout, the ESIG_VERIFIED record), and API tokens and the AI co-pilot account are refused.
A correction or a closure of a signed entry is signed too. So is every entry of a type the log signs.
A log sets the signature of notes and of maintenance entries with one switch each. It may also add fields to each type except the handover: up to 20 per type, of the kind text, number, choice or date, each one required or not. The server checks every entry against these settings, whichever client sends it. An entry without a required field is refused, and so is an entry of a signed type without its signature. How to set them: Set up shift logs.
Signatures and settings changes
Section titled “Signatures and settings changes”A change of the settings never changes a recorded entry. An entry keeps the fields, values and signatures it was recorded with, including after its type’s signing is switched off or one of its fields is removed. The change applies to entries recorded after it.
An entry is recorded in two steps: the server prepares its content and says whether it needs a signature, then the entry is written. When the settings change between the two steps, the server requires a signature if either step does:
- Prepared for signing, then signing switched off. The entry is still recorded only with the signature the person was asked for. Without it the write is refused (
403 signature_rejected) and nothing is recorded. Content that a person was asked to sign is never recorded unsigned. - Prepared without a signature, then signing switched on. The current settings need a signature, so the write is refused in the same way. The person prepares the entry again and signs it.
Drafts prepared by an earlier build do not hold what their prepare asked for. They follow the current settings.
Signatures and their meanings
Section titled “Signatures and their meanings”Each signature records the printed name, the date and time, and its meaning. The meaning is built by the server and shown before the password is typed. It names the log, the shift and, for an entry, the entry’s title, for example:
Shift handed over by: Line 2, Day 13 Nov 2026 06:00-14:00
| Meaning | Signed when | Who |
|---|---|---|
| Recorded by | A signed entry is recorded | The author |
| Reviewed by | A reviewer signs an entry as reviewed | A reviewer of the log, never the author |
| Shift handed over by | The outgoing operator signs the handover | The outgoing operator |
| Shift taken over by | The incoming operator co-signs the handover | Another person than the outgoing operator |
| Corrected by | A correction of a signed entry | The author of the entry, or a reviewer of the log |
| Closed by | A closure of a signed open item | A writer of the log |
A signature is a one-time ticket the server issues for exactly one content hash, one meaning and one person. It is valid for 60 seconds and is used up whatever happens next: if the record cannot be written, the person signs again.
Corrections, voids and closures
Section titled “Corrections, voids and closures”- A correction is a new entry of the same type that says which entry it corrects and why. The reason is typed by the person, never filled in. The old entry stays, shown struck through with “Corrected by <name>, <time>: <reason>”, and the chain of corrections is shown in order. Only the author of the entry or a reviewer of the log may correct it.
- A standing instruction is closed or corrected only by a reviewer of the log or by its author, never by any other writer. Only a reviewer changes its valid-until date: the author without the review right corrects the text and keeps the date. A correction of an instruction always keeps a valid-until date; a void ends it.
- A void is a correction that marks an entry as made in error (for example in the wrong log). It has no title. The voided entry stays in the record; the list hides it until you tick Show voided.
- A closure ends an open item. It is a new entry titled “Closed: <title>” with how the item was closed. An item that was corrected is closed through its latest correction. When the server cannot read whether the item is still open, the closure is refused: an item is never closed blind.
- A review is signed once per reviewer: a second review of the same entry by the same person is refused (“You already reviewed this entry.”).
- A draft is recorded once. Two requests that record the same draft at the same time (a double click, a retry, two tabs) never make two entries: the second is refused while the first runs, and a later repeat answers the first entry.
- A handover is never corrected or closed. A mistake in a handover is a new note that refers to it.
Open items carried over
Section titled “Open items carried over”An open deviation, maintenance, safety or instruction entry stays open in every following shift until a closure closes it. An instruction also ends when its valid-until date passes: the server records ITEM_EXPIRED. The panel lists the open items first, and an item open for more than three shifts gets an amber marker in the list. At each handover the outgoing operator writes one status line per open item (at most 200 characters), and that line is part of what both people sign.
The handover
Section titled “The handover”A shift’s handover goes through these states:
| State | Shown as | When |
|---|---|---|
open |
Shift open | The shift runs |
due |
Handover due | The shift has ended and no handover is signed |
missing |
Handover missing | The grace after the shift end (30 minutes by default) passed without a completed handover |
signed_out |
Signed out by <name> | The outgoing operator signed. The record HANDOVER_SIGNED is written |
handed_over |
Handed over | The incoming operator co-signed. The record HANDOVER_ACCEPTED is written, naming the outgoing record by its hash |
A decline by another person (HANDOVER_DECLINED) or a withdrawal by the outgoing operator (HANDOVER_WITHDRAWN), each with a reason, returns the shift to due (or missing). A handover can be signed out from 60 minutes before the shift end (a log may change this window). After the end, a shift that was not handed over can still be signed out until the sign-out window of the next shift opens; a handover signed out after the grace is recorded as late.
What both people sign is the same content: the summary, the status line of each open item, and the list of the content hashes of the shift’s entries. If an entry is added to the shift or an item is closed between the two signatures, the content no longer matches: the take-over is refused with 409 SHIFTLOG_STALE and the outgoing operator signs a new handover. Two signatures over different content are never paired.
The incoming operator is never the outgoing one (the server compares the user id, and the user name without regard to case: 403 SHIFTLOG_SAME_PERSON), holds shiftlog_sign on the log and has at least the log’s minimum level (Shift_Operator, 40, by default). There is no roster: the system does not check who is planned on the next shift. The meaning “Shift taken over by” makes the claim, and the record says who and when.
Two ways to co-sign:
- In their own session, on any device: the incoming operator opens the shift log, sees “Handover from <name> waiting for you” and takes over with their own password.
- At the same console, when the log allows it (on by default): the incoming operator types their user name and password into the outgoing operator’s handover dialog. The server re-authenticates that second account with the normal co-signature check (its own password, lockout,
ESIG_VERIFIED). The record names the incoming operator as the signer and notes the console’s user. This is refused through eaxCloud remote access (403 cosign_inline_remote): a second person’s password is never typed into a remote browser.
The whole handover is done at the plant: through eaxCloud remote access the handover steps answer 403 remote_never.
A missing handover is a notice, not an alarm. When the grace ends without a completed handover, the server records HANDOVER_MISSING as the system, with the open items at that moment, and the panel shows “Handover missing”. The handover can still be completed late. A log that turns off A handover is required at every shift end (an area staffed on day shift only) gets no missing record. The check runs every minute on the server that writes the shift log; when a server starts it looks back over the last 24 hours, never before the log was created (for a log deleted and added again: since it was added again), and never before the current licensed period began. So a shift that ended while the server ran without Enterprise never gets a missing record. The start of the licensed period is kept across restarts in data/shiftlog/licensed_since.json; a start without Enterprise removes the file, and the next Enterprise start begins a new period. When the audit trail is too long to find when a log was created, the 24 hours alone apply and the server logs a warning. If the audit trail cannot write the record, it tries again a minute later: no shift is marked as anything that was not recorded.
Rights
Section titled “Rights”Five rights, each a feature rule in Security > Permissions:
| Right | Lets a person |
|---|---|
shiftlog_view |
Read the logs, entries and handovers |
shiftlog_write |
Write entries, corrections and closures |
shiftlog_sign |
Sign entries and handovers (out and in) |
shiftlog_review |
Review entries, correct another person’s entry, record an instruction |
shiftlog_admin |
Change the shift log settings (with the Lead_Engineer or Administrator level), verify every log at once and the audit trail’s own chain, the index problems and rebuild, export a period of a log (with shiftlog_view) |
A DENY rule refuses a right also when its pattern is the catch-all * or a prefix such as shiftlog_*, the Administrator’s included: the DENY * that shuts a person out of every feature shuts them out of the shift log too. Such a pattern in an ALLOW rule grants nothing. Each log can narrow these rights with its own lists of readers, writers, signers and reviewers. The AI co-pilot can hold shiftlog_view at most and never writes or signs; API tokens may read, never write or sign. How the rights are decided, and what a new installation grants: Set up shift logs.
High availability
Section titled “High availability”- Writes happen only on the primary with quorum. A standby answers
409 ha_standby, and the panel says “This server is the standby. Open the shift log on <primary>.” - The records replicate with the audit trail. Each server builds its own read index from its own trail, so a standby’s lists follow within seconds.
- The drafts and the pending handovers are kept in two NATS key-value buckets,
shiftlog_draftsandshiftlog_handover. On a cluster of three servers or more they have three replicas, and a bucket that does not answer as such is refused (503 SHIFTLOG_UNAVAILABLE) rather than read from a stale copy. A handover value carries the primary’s term: a replaced primary cannot change a handover. - A take-over on a server that does not yet hold the outgoing signature’s record is refused with
409 SHIFTLOG_HANDOVER_SYNCING: “The outgoing signature is still being copied from the server where <name> signed. Wait a moment, or the outgoing operator signs again.” A server never pairs a signature with a record it does not hold. - The missing-handover check runs on the primary only.
- The log settings are a project document, copied to every node by the configuration store.
When the licence changes
Section titled “When the licence changes”eaxScada decides once, at start, whether this server writes the shift log, and keeps that answer until the process restarts:
| Situation | What happens |
|---|---|
| Enterprise at start, then the licence expires, is removed or becomes invalid | The shift log stays writable until the server restarts: a 06:00 handover after a 02:00 lapse still completes. The panel says “Read-only from the next restart” |
| Not Enterprise at start, and no shift log records in the audit trail | Nothing of the shift log starts. Every shift log route answers 403 with code EDITION; the toolbar button is not shown, and the runtime stops asking the server for the logs for the rest of the session after that answer. The Studio does not show Project > Shift log… |
| Not Enterprise at start, with records from an Enterprise period | Read-only: the panel, the entries, the handovers and the verification stay readable, and a log administrator can still export a period (the export is recorded in the audit trail). Every other write answers 403 EDITION, the missing-handover check does not run. The panel says “Read-only: the shift log needs an Enterprise licence” |
| A handover was signed out but not taken over when the server became read-only | Shown as “Not completed: the licence changed”. It can be taken over once the server runs with Enterprise again (after a restart), while its shift is still one of the last three |
| Enterprise installed while the server runs without it | Takes effect at the next start |
The edition check fails closed: a server without an edition service refuses every shift log route. The shift log also needs a build with the columnar (DuckDB) engine, as the audit trail does, and sign-in on: with security off every route answers 403 SHIFTLOG_SECURITY_OFF.
Retention
Section titled “Retention”Shift log records are kept as long as the audit trail keeps its records. There is no purge and no retention setting. Drafts are not records: they belong to their author only and expire after 14 days.
The shift report (an Analytics and Reports run after each handover, see Set up shift logs) is archived by the report archive with its own retention. Purging a report file never touches the records it was built from.
What the shift log never does
Section titled “What the shift log never does”It reads tag values, alarms, batches and screens to take the snapshots of references, through the author’s own read rights. It never writes a tag, acknowledges or shelves an alarm, or starts or stops a batch.