Skip to content

One mistyped tree value refuses the whole artifact (ARA100): keep scalar source text and degrade field mismatches to warnings #130

Closed

Description

@EYH0602

Problem

One wrongly typed value in trace/exploration_tree.yaml makes the whole tree fail to load (ARA100), so ls, show and find refuse the entire artifact. Two real ARAs hit this on ara 0.1.34 (fix/128-readable-real-aras, after #128):

ARA Source What YAML produces Error
DissClaimer evidence: list item - 7258910 (a short git SHA) an integer data did not match any variant of untagged enum Evidence
MSI alternatives: item - Build on Debian 12 like the task images (rejected: its glibc is above the floor). a one-key mapping (the : inside the parentheses) expected string scalar

The first case will keep happening: about 4% of 7-character git SHAs are all digits, and 1234e56-style SHAs parse as floats. Any ARA that cites commits in evidence: will eventually hit it.

This is the same failure shape as #128 ask 2: one bad value refuses everything.

Proposal

  1. Scalars in text fields. When a text or text-list tree field holds an integer, float or boolean scalar, keep its source spelling as text (the read model already has exact UTF-8 source spans). Never stringify the parsed number: 0123456 or 1e5 would lose their spelling. Warn on the field with path:line so authors can quote it.
  2. Other type mismatches in one field (a mapping where text is expected, as in MSI): keep the node, keep the raw source value, and warn on that field instead of failing the whole document. Decide whether this warning is node-scoped (refuses reads, like ARA226) or reads through with an incomplete marker (as Real ARAs are unreadable: accept dash entry headings and stop refusing whole artifacts on optional-layer warnings (ARA217/218) #128 does for optional layers).
  3. ara check --fix: offer to quote such scalars and plain-scalar items containing : .

Writes keep their current strictness.

Out of scope

Duplicate node IDs (ARA105) and contradictory parents (ARA112) are record conflicts only authors can resolve; they are raised in the owning repos.

Repro

mkdir -p t/trace && printf 'tree:\n  - id: N01\n    type: decision\n    title: Q\n    evidence:\n    - 7258910\n' > t/trace/exploration_tree.yaml
ara validate t   # error: ... did not match any variant of untagged enum Evidence
ara -C t ls      # invalid_artifact, blocking ARA100

Activity

  1. added
    bug
    on Oct 19, 2026
  2. EYH0602 commented on Oct 19, 2026

    @EYH0602
    CollaboratorAuthor

    Fixed by #131 (squash-merged into feat/agent-cli-interface as 8fb34ea, 0.1.35). A mistyped value in a node text field is now read as its source text with warning ARA230 instead of failing the tree with ARA100. ara check --fix quotes one-line values (ARA008). DissClaimer and MSI now read. Design doc: docs/agent-cli-interface/24-tree-field-tolerance.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions