Skip to content

knowledge_record: the tool never states its block grammar, and a malformed block writes nothing and reports success #212

Description

@drewstone

What two directors did today

Both directors of the capability-per-parameter pursuit (press c, 2026-09-15, agent-knowledge 16.0.0 under agent-runtime 0.226.0) spent turns discovering the input grammar of knowledge_record by trial. From their retained streams:

  • DeepSeek V4.1 Flash: "The record silently wrote nothing. Let me test the exact file-block format with a minimal page." → "Let me brute-force the block terminator with parallel probes." → "Closer found: ---END FILE---. Now writing my real scope and stake pages."
  • GLM-5.3: registered checks/20260915c-record-format-probe4.md, its fourth probe page, before its first real page.

On the previous press the DeepSeek director gave up on the tool and wrote six pages with the shell write tool under <workspace>/pages/, where no peer or successor could retrieve them (discovery-lab#766 patches the brief; this issue is the tool).

Why

The tool's whole description is Write pages into the store of this run from ---FILE: ...--- blocks. The grammar (---FILE: <path>--- newline, frontmatter and body, newline ---END FILE---) is only visible in the code that formats blocks (dist/index.js:4773), never to the model. And an input from which the parser extracts zero blocks is accepted: the call returns without an error, so the model reads "ok" and finds nothing in the store.

Ask

  1. Put the grammar in the description with a one-block example, including the terminator.
  2. Refuse an input that yields zero pages with an error that repeats the grammar, and refuse a block that opens without closing. Silent success on a no-op write is the defect that turns a tool problem into a research loss.

🤖 Generated with Claude Code

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions