Issue #2746: A single-file script can use json without a manifest, and scripts/agent.nika reads the agent’s output through json::parse (ADR-338 D3)

Open and answer this issue on GitHub.

ready, json · opened 2026-11-22 · updated 2026-11-22 · 0 comments

Part of #539

Goal. A single-file script run with nikaia run FILE.nika can use json without a manifest, and scripts/agent.nika reads the agent’s JSON output through json::parse instead of searching the text.

Governing decision. ADR-338 D3: use json where neither [dependencies] nor a project directory names json takes in the official package. A single-file script has no manifest, so nothing names it, and D3 applies.

Where it stands (read in the code).

Done when. nikaia run of a single file with use json builds offline, and agent_json is replaced by a json::parse lookup that reads the right value when the key appears twice or inside a string. The last code step carries Fixes #N; the report gives a Found: line per finding.

To build

  1. Probe: a single file with use json and json::parse, run with nikaia run. If it is refused, the single-file path takes in official packages as project_members_taken_in does for a project; test in tests/compiler/tests/.
  2. scripts/agent.nika: agent_json reads through json::parse; a test script with a repeated key and a key inside a string value prints the right values.

Files and limits. scripts/agent.nika, the single-file path of nikaia run (named by the builder after the probe), compiler/project_members.nika if needed. Not: packages/json.

Back to Open Issues