Awesome Reviewers

Reviewer · Documentation

Accurate behavior documentation

Documentation, comments, and API examples must precisely match actual runtime behavior, especially for non-obvious semantics such as replace-vs-merge update rules, heuristic validations, deprecated or repurposed fields, and data-matching rules (e.g., flattening, type coercion). Before merging, verify that any example payload truly demonstrates the behavior...

Instruction

Documentation, comments, and API examples must precisely match actual runtime behavior, especially for non-obvious semantics such as replace-vs-merge update rules, heuristic validations, deprecated or repurposed fields, and data-matching rules (e.g., flattening, type coercion). Before merging, verify that any example payload truly demonstrates the behavior its description claims — don’t just check that it’s syntactically valid. For instance, if an example claims to “skip one value” using excludedValues, make sure the example doesn’t instead set enabled: false, which disables the field entirely and makes excludedValues irrelevant:

# Wrong: description says "skips one value" but this disables the whole field
observableTypeSettings:
  - key: observable-type-agent-id
    paths:
      - path: agent.id
        enabled: false   # should be enabled: true to actually use excludedValues

When a field’s meaning becomes narrower or is superseded by another mechanism (e.g., a boolean flag that no longer fully captures rejection state because a new field like extraction_method now carries that information), add an inline comment pointing future readers to the authoritative field so ad-hoc queries or new consumers don’t rely on stale assumptions. Likewise, for PATCH/POST semantics, validation heuristics, or field-matching rules, spell out edge cases explicitly (e.g., “replaces the whole array, does not merge by key”, “heuristic check may reject safe patterns or miss unsafe ones”, “arrays of objects are not flattened/traversed”) so API consumers don’t get silently incorrect results. Whenever bundled/generated documentation artifacts (e.g., OpenAPI spec bundles) exist, remember to regenerate them after fixing source descriptions or examples.