Skip to content

Seeded skill guidance teaches parameter name relation_type but the tool schema and executor require relationship_type #2200

Closed

Description

@mstomar125

Summary

The Relationship Management and Organization skill bodies injected into the Stage-2 prompt instruct the model three times to pass relation_type (lines 147, 151, 208 — including the worked instruction relation_type="member_of"), but def_create_relationship/def_get_related_nodes declare relationship_type and the param structs (tools.rs CreateRelationshipParams/GetRelatedNodesParams, lines 113-132) use #[serde(deny_unknown_fields)] with no alias, so a call following the guidance fails deserialization outright.

Failure scenario

User: 'add this note to the Projects collection' — routing surfaces the Organization skill, whose guidance says to call create_relationship with relation_type="member_of". A small local model (the primary deployment target, measured in this repo to copy shapes it is shown 8-of-8 times) emits {"from_id":...,"to_id":...,"relation_type":"member_of"} → serde rejects it (unknown field relation_type / missing relationship_type) → error tool result burns an iteration; the RESPONSE RULES then permit exactly one retry, and a model that trusts the injected skill text repeats the taught name and the turn ends in failure — the prompt-assembly layer actively teaches an argument shape the dispatcher rejects, the exact prompt/tool-schema inconsistency class. Notably the registry authors added serde aliases for the analogous node_id/id split but not here.

Location

packages/agent/src/skill_pipeline.rs:147

Severity

important


Found via a full-repo adversarial bug sweep, independently verified by two separate skeptical reviewers reading the actual current code before filing.

Activity

  1. self-assigned this
    on Aug 21, 2026
  2. mstomar125 commented on Sep 4, 2026

    @mstomar125
    ContributorAuthor

    Baseline before implementation: Frontend: 229 test files, 4848 tests passed.

  3. self-assigned this
    on Sep 4, 2026
  4. mstomar125 commented on Sep 4, 2026

    @mstomar125
    ContributorAuthor

    Root cause confirmed and fixed in PR #2362: the seeded Relationship Management and Organization skill guidance taught relation_type at 3 call sites while create_relationship/get_related_nodes both require relationship_type and reject unknown fields. Fixed the guidance text, plus added a defensive serde alias mirroring the existing node_id/id precedent. Full test:all + quality:fix + pre-push gate all green; new guidance-text regression test verified via mutation testing.

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

Metadata

Metadata

Assignees

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