clan eval failures are cut at 'Definition values:' — the offending value never reaches the deploy error, journal or leg record #1248

Closed
opened 2026-09-06 01:03:30 +00:00 by ben · 14 comments
Owner

The gap

Archive drive run 10 (test-results/private-path/20260906T003416Z) redded at deploy-archive on an eval type error, and every capture of it — artifacts/legs.json, artifacts/journey.json, logs/guest-control-plane.log:145 (provision deploy failed), the Playwright error-context.md — ends at:

error: A definition for option `virtualisation.oci-containers.containers.omeka.environmentFiles."[definition 1-entry 1]"' is not of type `absolute path'. Definition values:

with NOTHING after Definition values:. Nix prints the offending value(s) on the next line(s) — the one line that says whether the entry was "" or a relative path. grep -A3 across logs/ and artifacts/ finds nothing following it anywhere in the harvest, so the diagnosis on #1247 had to be made from code reading, not from the record.

Where to look

internal/clan/adapter.go — the config_eval preflight's failure classification: excerpt() (~1101/1149) greps a load-bearing token list and lastLines()/the bounded tail (~784/826/1153) keep a cut of the raw output. One of those cuts lands exactly on the Definition values: line, or the eval error is captured line-by-line and the continuation lines (indented) are dropped. Either way the Detail that reaches the deploy error, the journal and the leg record loses the value list.

What to build

  1. When the excerpt matches a Nix A definition for option … Definition values: error, carry the following value line(s) (Nix indents them; up to the next error:/blank) into the Detail, so the deploy error names the offending value.
  2. Red-first test with a captured Nix eval error of this shape proving the value line survives into Failure.Detail.
  3. Keep the existing bounds — this widens one match by a few lines, not the tail.

Acceptance

A re-run of the same eval error records Definition values: followed by the value (e.g. - In …/archive.nix: "") in legs.json's error and in the control-plane journal line.

## The gap Archive drive run 10 (`test-results/private-path/20260906T003416Z`) redded at `deploy-archive` on an eval type error, and every capture of it — `artifacts/legs.json`, `artifacts/journey.json`, `logs/guest-control-plane.log:145` (`provision deploy failed`), the Playwright `error-context.md` — ends at: ``` error: A definition for option `virtualisation.oci-containers.containers.omeka.environmentFiles."[definition 1-entry 1]"' is not of type `absolute path'. Definition values: ``` with NOTHING after `Definition values:`. Nix prints the offending value(s) on the next line(s) — the one line that says whether the entry was `""` or a relative path. `grep -A3` across `logs/` and `artifacts/` finds nothing following it anywhere in the harvest, so the diagnosis on #1247 had to be made from code reading, not from the record. ## Where to look `internal/clan/adapter.go` — the config_eval preflight's failure classification: `excerpt()` (~1101/1149) greps a load-bearing token list and `lastLines()`/the bounded tail (~784/826/1153) keep a cut of the raw output. One of those cuts lands exactly on the `Definition values:` line, or the eval error is captured line-by-line and the continuation lines (indented) are dropped. Either way the Detail that reaches the deploy error, the journal and the leg record loses the value list. ## What to build 1. When the excerpt matches a Nix `A definition for option … Definition values:` error, carry the following value line(s) (Nix indents them; up to the next `error:`/blank) into the Detail, so the deploy error names the offending value. 2. Red-first test with a captured Nix eval error of this shape proving the value line survives into `Failure.Detail`. 3. Keep the existing bounds — this widens one match by a few lines, not the tail. ## Acceptance A re-run of the same eval error records `Definition values:` followed by the value (e.g. `- In `…/archive.nix`: ""`) in `legs.json`'s error and in the control-plane journal line.

swarm-claim host=elitebook-distributed-server-03 run=18620
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18620 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18620
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18620 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18630
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18630 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18630
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18630 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18630
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18630 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18642
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18642 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18642
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18642 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18642
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18642 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18642
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18642 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18651
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18651 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18652
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18652 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18652
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18652 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18660
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=18660 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1248 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1248,
  "status": "success",
  "commits": [
    "5855aecf"
  ],
  "changed_files": [
    "internal/clan/adapter.go",
    "internal/clan/errors_detail_test.go",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A re-run of the same eval error records `Definition values:` followed by the value (e.g. `- In `…/archive.nix`: \"\"`) in legs.json's error and in the control-plane journal line": "excerpt() (internal/clan/adapter.go) now carries the '- In `<file>`: <value>' line(s) after a 'Definition values:' header into the kept set; Detail (=excerpt) is what classify()/evalReadiness set on Failure and what flows to legs.json's error and the control-plane journal via Failure.Error(). Proven by TestExcerpt_CarriesDefinitionValues (errors_detail_test.go) which feeds the exact captured eval error shape and asserts the archive.nix value line survives into the excerpt; TestExcerpt_DefinitionValuesStaysBounded pins the bound. Full ./internal/clan/ suite green."
  },
  "summary": "excerpt() carries the Nix 'Definition values:' offending-value line(s) into Failure.Detail so an eval type error names the value in legs.json and the journal, not just the option.",
  "blockers": []
}
**close-report** for #1248 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1248, "status": "success", "commits": [ "5855aecf" ], "changed_files": [ "internal/clan/adapter.go", "internal/clan/errors_detail_test.go", "STATUS.md" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/clan/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/clan/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/clan/", "exit_code": 0 } ], "criteria": { "A re-run of the same eval error records `Definition values:` followed by the value (e.g. `- In `…/archive.nix`: \"\"`) in legs.json's error and in the control-plane journal line": "excerpt() (internal/clan/adapter.go) now carries the '- In `<file>`: <value>' line(s) after a 'Definition values:' header into the kept set; Detail (=excerpt) is what classify()/evalReadiness set on Failure and what flows to legs.json's error and the control-plane journal via Failure.Error(). Proven by TestExcerpt_CarriesDefinitionValues (errors_detail_test.go) which feeds the exact captured eval error shape and asserts the archive.nix value line survives into the excerpt; TestExcerpt_DefinitionValuesStaysBounded pins the bound. Full ./internal/clan/ suite green." }, "summary": "excerpt() carries the Nix 'Definition values:' offending-value line(s) into Failure.Detail so an eval type error names the value in legs.json and the journal, not just the option.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1248
No description provided.