Écrire et vérifier un modèle › Construire des applications de données › Log reconciliation

Écrire et vérifier un modèle › Construire des applications de données

Cette page n’est pas encore traduite : voici la version anglaise.

Log reconciliation

The event chains archec replay finds in a week of bench logs, each against the model's chain. Each chain that does not match is approved or rejected, and the week is signed off when every one has a decision. It does the job of the anfra MRR Reconciliation app.

archec new my-app --kind data-app --template log-reconciliation
archec ui preview my-app/main.arche --serve

What it shows#

  • A filter bar: a flow, a log, a chain searched.
  • Four tiles: the chains, the share matched against REQ-CHAINS, those late, those missing a step.
  • The chains by flow, split by what was found; a click filters the screen.
  • What was seen against the budget, by flow.
  • To review: each chain that did not match, with approve and reject.

The review#

review approve, reject by chain on a table of rows puts the decisions on each row. A row is known by its chain, so a decision stays on it when the rows are filtered or sorted. The decisions are kept in the browser. Sign off is there once every row has one, and saves them as a file, with the time.

The data#

  • data/chains.jsonl: a chain a line: chain, flow, its path through the model, the log it was found in, at, the model's budget_ms, the observed_ms, its events, and its status (match, late, missing, extra). archec replay main.arche bench.blf --json gives the same.

Limits#

  • The decisions are not written back to the model: an approved chain still needs its change in the model, a rejected one its fix in the code.
  • Who signed off is not known: the file says when.

The model is lib/data-apps/log-reconciliation/main.arche, and the gallery lists the other templates.