Practice case

An assistant in AFAS, with locks on writing

Practice case, reading in production since November 2026, writing in test only. No measured result yet.

For an organisation whose HR team works in AFAS.

The HR team's question: who is in onboarding, what is that person still waiting for, and what expires soon?

What was built

An assistant that can read in AFAS through a secured connection, and write under locks. The connection is a thin layer between the assistant and the standard connection (REST API) of AFAS. There is no database of its own in between.

  1. The assistant

    Asks the question and sees only what is masked and released.

  2. The connection

    A thin layer. No database of its own and no storage of HR data.

  3. AFAS

    The standard connection (REST API). AFAS decides what someone may see.

The variant for HR staff has read tools only. Writing runs in a separate variant.

Where the control sits

Six places where the control sits in the connection itself, not in what the user types.

  1. 01

    Own login per user

    In the variant for HR staff, every user signs in with their own AFAS account. AFAS decides what that person may see. Without a login, the connection returns no data.

  2. 02

    Mandatory masking

    All personal data passes through a masking layer before the assistant sees it. A field is readable only if it has been explicitly released, unknown fields stay closed. A setting cannot switch it off.

  3. 03

    No storage

    The connection stores no HR data. The login session is stateless, and what sits in memory is gone after a restart.

  4. 04

    A log without content

    The log records who, when, which tool, how many rows and how it ended. Never the content of a question or an answer. It is only ever appended to, never overwritten.

  5. 05

    Six locks on writing

    Writing is possible only when all six locks are open at once, and only in a test environment of AFAS. In the default state, writing is off.

  6. 06

    Deleting does not exist

    There is no delete tool and no code path that deletes. A test guards that. Clean-up is done with an end date.

One boundary: writing runs in a separate variant with a shared system user. The name of the person who gave the instruction is then mandatory and recorded.

Six locks on writing

A demonstration on invented data. The attempt to start an onboarding passes all six locks. As long as a lock is closed, nothing happens in AFAS.

  1. Lock 1

    The flag

    Two separate settings must both be explicitly right. Any other value means closed.

    Closed

  2. Lock 2

    The environment

    Writing is possible only in a test environment of AFAS. There is no setting to get around that.

    Closed

  3. Lock 3

    The list

    Only a fixed list of record types can be written. Any other type is closed.

    Closed

  4. Lock 4

    The dry run

    Every write starts with a dry run that sends nothing. The confirmation code is tied to exactly this content.

    Closed

  5. Lock 5

    The log

    Every dry run and every execution is recorded, with field names and a checksum, never with values.

    Closed

  6. Lock 6

    The journal

    If the same content succeeded in the last 24 hours, or ended with an unknown outcome, the connection refuses. Never an automatic retry.

    Closed

What the log of this attempt contains Example on invented data.

Who
an HR adviser, as the person who gave the instruction
When
09:14:07
Type of action
start onboarding, dry run
Data
none, only field names and a checksum

A delete button does not exist.

There is no delete tool and no code path that deletes. Deleting is final and a record usually carries history, so clean-up is done with an end date.

What HR can ask

Examples on invented data. The assistant reads, and writes only under the locks.

  • Read

    Who is in onboarding, and which open tasks is that person waiting on?

  • Read

    Which new employees still have to hand in a required document, so HR can follow up?

  • Read

    Which contracts expire soon or have already lapsed, including a permanent contract with a leaving date?

  • Read

    Which identity documents expire soon?

  • Read

    Which leave balances are open, and in which unit?

  • Read

    Which job titles exist, and which cost centre belongs to each?

  • Write, in a test environment only

    Start an onboarding for a new hire, in two rounds: first an example, then the confirmation code.

  • Write, in a test environment only

    Send a reminder email for an onboarding in progress.

What deliberately cannot be done

  • Delete anything

    There is no delete tool and no code path that deletes.

  • Write to production

    Writing is possible only in a test environment of AFAS. Production needs a code change with review.

  • Read sensitive fields

    Social security number, date of birth, address, phone, email, bank details and salary are closed in every profile, even if a release would open them by mistake.

  • Enter sensitive fields

    None of those fields is input when starting an onboarding. The candidate fills them in personally in the onboarding portal.

  • Create a duplicate

    If an open process with the same name exists, the assistant refuses until the user explicitly confirms it is a second process.

  • Remind too often

    A reminder is possible only for onboardings the assistant itself started as a test, and at most once per 24 hours per record.

  • Change the organisation structure

    That has deliberately not been released yet.

  • Create an employee

    A successful start is not yet an employee. That happens only when HR completes the process.

The five fixed points

The five points along which Evident lays every application. Here is what honestly applies to this case, including where a point does not apply.

  1. 01

    Source

    Applies

    The data comes straight from AFAS, through the standard connection. There is no database of its own in between.

  2. 02

    Second check

    Not applicable when reading

    When reading, nothing changes, so there is nothing to check. When writing, the dry run checks the content against the AFAS schema. Green means schema-complete, not that AFAS accepts the content.

  3. 03

    Record

    Applies

    The log records who, when and which type of action, without content. Residual risk: an error message from AFAS is written along and could in theory contain a field value.

  4. 04

    Rights

    Applies

    In the variant for HR staff, each user reads with their own AFAS account, and the connection holds read tools only. Writing runs in a separate variant with a shared system user. There, the name of the person who gave the instruction is mandatory.

  5. 05

    A human decides

    Applies

    For every execution, the name of the person who gave the instruction is mandatory. A successful start is not yet an employee: HR completes the process.

Something like this in your own system? An assistant that reads, writes under locks and records every step without content. What would that mean in your own system?