Skip to main content
Glama
ShadowGit MCP Server

ShadowGit MCP Server

Read a change's Lens

get_lens
Read-onlyIdempotent

Reads a change’s Lens—snapshots, steps, canvas components/flows, dependency links, and named project rules—so you can describe the change with write_lens_words after saving a snapshot.

Instructions

Read ShadowGit's Lens of a change, the snapshots from base to head, by default your latest session's: its steps with their code, the cards (components) and flows on its canvas, each with an id and its words so far; what the change makes depend on what: each new, gone or two-way dependency between the project's areas and layers, with the links that make it and the steps that hold it; and each of the project's rules (.shadowgit-rules) that names a link the change adds, with its reason, links and steps, also for a change with no Lens. Read it at the end of a session, after the saved snapshot, to word it with write_lens_words; your words may say why a dependency appeared, or why a link a rule names is there: say the rule names it, and quote the rule. Needs the ShadowGit app running.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_lens"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoThe snapshot the change starts from, with head (null: the start of the history). Leave both out for your latest session
headNoThe change's newest snapshot; leave out for your latest session
repoNoProject name or absolute path. Defaults to the current project.

Output Schema

NameRequiredDescriptionDefault
lensYes
repoYes
rangeYes
rulesNoThe change checked against the project's rules, also for a change with no Lens; null without rules
limitsYes
rulesFailureNoWhy the project's rules couldn't be read

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.9.0
    • changedInput schema / properties / base / description
      Previous value: -"The snapshot the range starts from, with head (null: the start of the history). Leave both out for the latest AI session"New value: +"The snapshot the change starts from, with head (null: the start of the history). Leave both out for your latest session"
    • changedInput schema / properties / head / description
      Previous value: -"The range's newest snapshot; leave out for the latest AI session"New value: +"The change's newest snapshot; leave out for your latest session"
    • changedOutput schema / properties / lens / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "components": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "context": {
      -              "type": "boolean"
      -            },
      -            "delta": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "kind": {
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            },
      -            "path": {
      -              "type": "string"
      -            },
      -            "role": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "symbols": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "kind",
      -            "delta",
      -            "context",
      -            "role",
      -            "path",
      -            "symbols"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "dependencies": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "facts": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "evidence": {
      -                  "description": "The links the range added or removed that make it, at most 3",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "from": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "label": {
      -                      "type": "string"
      -                    },
      -                    "path": {
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "label",
      -                    "path"
      -                  ],
      -                  "type": "object"
      -                },
      -                "kind": {
      -                  "description": "new, gone, both (each now depends on the other) or count (a dependency that grew or shrank)",
      -                  "type": "string"
      -                },
      -                "level": {
      -                  "description": "area or layer",
      -                  "type": "string"
      -                },
      -                "sentence": {
      -                  "type": "string"
      -                },
      -                "steps": {
      -                  "description": "The ids of the steps that hold it",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "to": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "label": {
      -                      "type": "string"
      -                    },
      -                    "path": {
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "label",
      -                    "path"
      -                  ],
      -                  "type": "object"
      -                }
      -              },
      -              "required": [
      -                "sentence",
      -                "level",
      -                "kind",
      -                "from",
      -                "to",
      -                "evidence",
      -                "steps"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "more": {
      -            "description": "How many more facts past these",
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "facts",
      -          "more"
      -        ],
      -        "type": "object"
      -      },
      -      "flows": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "from": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "label": {
      -              "type": "string"
      -            },
      -            "to": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "from",
      -            "to",
      -            "label"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "layers": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "quotes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "steps": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "body": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "components": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "dependencies": {
      -              "description": "The sentences of the step's own facts",
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "diff": {
      -              "type": "string"
      -            },
      -            "files": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "rules": {
      -              "description": "The texts of the rules that name links it holds",
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "symbols": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "base": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "end": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          },
      -                          "start": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "start",
      -                          "end"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "basePath": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "head": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "end": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          },
      -                          "start": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "start",
      -                          "end"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "name": {
      -                    "type": "string"
      -                  },
      -                  "path": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "path",
      -                  "basePath",
      -                  "base",
      -                  "head"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "title": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "title",
      -            "body",
      -            "components",
      -            "files",
      -            "diff"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "summary": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "words": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "author": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "source": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "source",
      -          "author"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "title",
      -      "words",
      -      "summary",
      -      "steps",
      -      "components",
      -      "layers",
      -      "flows"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "components": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "context": {
      +              "type": "boolean"
      +            },
      +            "delta": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "path": {
      +              "type": "string"
      +            },
      +            "role": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "symbols": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "kind",
      +            "delta",
      +            "context",
      +            "role",
      +            "path",
      +            "symbols"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "dependencies": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "facts": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "evidence": {
      +                  "description": "The links the change added or removed that make it, at most 3",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "from": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "label": {
      +                      "type": "string"
      +                    },
      +                    "path": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "label",
      +                    "path"
      +                  ],
      +                  "type": "object"
      +                },
      +                "kind": {
      +                  "description": "new, gone, both (each now depends on the other) or count (a dependency that grew or shrank)",
      +                  "type": "string"
      +                },
      +                "level": {
      +                  "description": "area or layer",
      +                  "type": "string"
      +                },
      +                "sentence": {
      +                  "type": "string"
      +                },
      +                "steps": {
      +                  "description": "The ids of the steps that hold it",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "to": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "label": {
      +                      "type": "string"
      +                    },
      +                    "path": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "label",
      +                    "path"
      +                  ],
      +                  "type": "object"
      +                }
      +              },
      +              "required": [
      +                "sentence",
      +                "level",
      +                "kind",
      +                "from",
      +                "to",
      +                "evidence",
      +                "steps"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "more": {
      +            "description": "How many more facts past these",
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "facts",
      +          "more"
      +        ],
      +        "type": "object"
      +      },
      +      "flows": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "from": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "label": {
      +              "type": "string"
      +            },
      +            "to": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "from",
      +            "to",
      +            "label"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "layers": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "quotes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "steps": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "body": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "components": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "dependencies": {
      +              "description": "The sentences of the step's own facts",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "diff": {
      +              "type": "string"
      +            },
      +            "files": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "rules": {
      +              "description": "The texts of the rules that name links it holds",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "symbols": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "base": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "end": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "start": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "start",
      +                          "end"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "basePath": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "head": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "end": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "start": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "start",
      +                          "end"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "path": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "path",
      +                  "basePath",
      +                  "base",
      +                  "head"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "title",
      +            "body",
      +            "components",
      +            "files",
      +            "diff"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "summary": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "words": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "author": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "source",
      +          "author"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "words",
      +      "summary",
      +      "steps",
      +      "components",
      +      "layers",
      +      "flows"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / rules / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "file": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "added": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "removed": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "added",
      -              "removed"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "The rules the range adds to and removes from .shadowgit-rules; null when it leaves the file alone"
      -      },
      -      "matches": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "count": {
      -              "description": "How many links the range adds that the rule names",
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            },
      -            "links": {
      -              "description": "The first links, in words; count has them all",
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "rule": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "because": {
      -                  "description": "Its reason, as written after \"because\"",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "form": {
      -                  "description": "never, only or nothing",
      -                  "type": "string"
      -                },
      -                "from": {
      -                  "description": "The names on its first side; none for a nothing-rule",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "line": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": -9007199254740991,
      -                  "type": "integer"
      -                },
      -                "text": {
      -                  "description": "The rule as written, without its reason",
      -                  "type": "string"
      -                },
      -                "to": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "required": [
      -                "line",
      -                "text",
      -                "form",
      -                "from",
      -                "to",
      -                "because"
      -              ],
      -              "type": "object"
      -            },
      -            "steps": {
      -              "description": "The ids of the steps that hold them",
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "rule",
      -            "count",
      -            "links",
      -            "steps"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "rules": {
      -        "description": "How many rules it was checked against",
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "rules",
      -      "matches",
      -      "file"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "file": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "added": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "removed": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "added",
      +              "removed"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The rules the change adds to and removes from .shadowgit-rules; null when it leaves the file alone"
      +      },
      +      "matches": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "count": {
      +              "description": "How many links the change adds that the rule names",
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            },
      +            "links": {
      +              "description": "The first links, in words; count has them all",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "rule": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "because": {
      +                  "description": "Its reason, as written after \"because\"",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "form": {
      +                  "description": "never, only or nothing",
      +                  "type": "string"
      +                },
      +                "from": {
      +                  "description": "The names on its first side; none for a nothing-rule",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "line": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "text": {
      +                  "description": "The rule as written, without its reason",
      +                  "type": "string"
      +                },
      +                "to": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "line",
      +                "text",
      +                "form",
      +                "from",
      +                "to",
      +                "because"
      +              ],
      +              "type": "object"
      +            },
      +            "steps": {
      +              "description": "The ids of the steps that hold them",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "rule",
      +            "count",
      +            "links",
      +            "steps"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "rules": {
      +        "description": "How many rules it was checked against",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "rules",
      +      "matches",
      +      "file"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / rules / description
      Previous value: -"The range checked against the project's rules, also for a range with no lens; null without rules"New value: +"The change checked against the project's rules, also for a change with no Lens; null without rules"
  2. Changed3 schema fields changedv2.5.0
    • changedOutput schema / properties / lens / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "components": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "context": {
      -              "type": "boolean"
      -            },
      -            "delta": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "kind": {
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            },
      -            "path": {
      -              "type": "string"
      -            },
      -            "role": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "symbols": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "kind",
      -            "delta",
      -            "context",
      -            "role",
      -            "path",
      -            "symbols"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "flows": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "from": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "label": {
      -              "type": "string"
      -            },
      -            "to": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "from",
      -            "to",
      -            "label"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "layers": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "quotes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "steps": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "body": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "components": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "diff": {
      -              "type": "string"
      -            },
      -            "files": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "symbols": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "base": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "end": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          },
      -                          "start": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "start",
      -                          "end"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "basePath": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "head": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "end": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          },
      -                          "start": {
      -                            "maximum": 9007199254740991,
      -                            "minimum": -9007199254740991,
      -                            "type": "integer"
      -                          }
      -                        },
      -                        "required": [
      -                          "start",
      -                          "end"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "name": {
      -                    "type": "string"
      -                  },
      -                  "path": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "path",
      -                  "basePath",
      -                  "base",
      -                  "head"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "title": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "title",
      -            "body",
      -            "components",
      -            "files",
      -            "diff"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "summary": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "words": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "author": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "source": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "source",
      -          "author"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "title",
      -      "words",
      -      "summary",
      -      "steps",
      -      "components",
      -      "layers",
      -      "flows"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "components": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "context": {
      +              "type": "boolean"
      +            },
      +            "delta": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "path": {
      +              "type": "string"
      +            },
      +            "role": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "symbols": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "kind",
      +            "delta",
      +            "context",
      +            "role",
      +            "path",
      +            "symbols"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "dependencies": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "facts": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "evidence": {
      +                  "description": "The links the range added or removed that make it, at most 3",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "from": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "label": {
      +                      "type": "string"
      +                    },
      +                    "path": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "label",
      +                    "path"
      +                  ],
      +                  "type": "object"
      +                },
      +                "kind": {
      +                  "description": "new, gone, both (each now depends on the other) or count (a dependency that grew or shrank)",
      +                  "type": "string"
      +                },
      +                "level": {
      +                  "description": "area or layer",
      +                  "type": "string"
      +                },
      +                "sentence": {
      +                  "type": "string"
      +                },
      +                "steps": {
      +                  "description": "The ids of the steps that hold it",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "to": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "label": {
      +                      "type": "string"
      +                    },
      +                    "path": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "label",
      +                    "path"
      +                  ],
      +                  "type": "object"
      +                }
      +              },
      +              "required": [
      +                "sentence",
      +                "level",
      +                "kind",
      +                "from",
      +                "to",
      +                "evidence",
      +                "steps"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "more": {
      +            "description": "How many more facts past these",
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "facts",
      +          "more"
      +        ],
      +        "type": "object"
      +      },
      +      "flows": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "from": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "label": {
      +              "type": "string"
      +            },
      +            "to": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "from",
      +            "to",
      +            "label"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "layers": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "quotes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "steps": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "body": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "components": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "dependencies": {
      +              "description": "The sentences of the step's own facts",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "diff": {
      +              "type": "string"
      +            },
      +            "files": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "rules": {
      +              "description": "The texts of the rules that name links it holds",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "symbols": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "base": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "end": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "start": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "start",
      +                          "end"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "basePath": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "head": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "end": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "start": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "start",
      +                          "end"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "path": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "path",
      +                  "basePath",
      +                  "base",
      +                  "head"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "title",
      +            "body",
      +            "components",
      +            "files",
      +            "diff"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "summary": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "words": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "author": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "source",
      +          "author"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "words",
      +      "summary",
      +      "steps",
      +      "components",
      +      "layers",
      +      "flows"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / rules
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "file": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "added": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "removed": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "added",
      +                "removed"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The rules the range adds to and removes from .shadowgit-rules; null when it leaves the file alone"
      +        },
      +        "matches": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "count": {
      +                "description": "How many links the range adds that the rule names",
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "links": {
      +                "description": "The first links, in words; count has them all",
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "rule": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "because": {
      +                    "description": "Its reason, as written after \"because\"",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "form": {
      +                    "description": "never, only or nothing",
      +                    "type": "string"
      +                  },
      +                  "from": {
      +                    "description": "The names on its first side; none for a nothing-rule",
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "line": {
      +                    "maximum": 9007199254740991,
      +                    "minimum": -9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  "text": {
      +                    "description": "The rule as written, without its reason",
      +                    "type": "string"
      +                  },
      +                  "to": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "line",
      +                  "text",
      +                  "form",
      +                  "from",
      +                  "to",
      +                  "because"
      +                ],
      +                "type": "object"
      +              },
      +              "steps": {
      +                "description": "The ids of the steps that hold them",
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "rule",
      +              "count",
      +              "links",
      +              "steps"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "rules": {
      +          "description": "How many rules it was checked against",
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "rules",
      +        "matches",
      +        "file"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The range checked against the project's rules, also for a range with no lens; null without rules"
      +}
    • addedOutput schema / properties / rulesFailure
      Added value: +{
      +  "description": "Why the project's rules couldn't be read",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv2.2.0
    • changedOutput schema / properties / lens / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "components": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "context": {
      -              "type": "boolean"
      -            },
      -            "delta": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "kind": {
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            },
      -            "path": {
      -              "type": "string"
      -            },
      -            "role": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "symbols": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "kind",
      -            "delta",
      -            "context",
      -            "role",
      -            "path",
      -            "symbols"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "flows": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "from": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "label": {
      -              "type": "string"
      -            },
      -            "to": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "from",
      -            "to",
      -            "label"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "layers": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "steps": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "body": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "components": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "diff": {
      -              "type": "string"
      -            },
      -            "files": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "title": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "title",
      -            "body",
      -            "components",
      -            "files",
      -            "diff"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "summary": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "words": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "author": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "source": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "source",
      -          "author"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "title",
      -      "words",
      -      "summary",
      -      "steps",
      -      "components",
      -      "layers",
      -      "flows"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "components": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "context": {
      +              "type": "boolean"
      +            },
      +            "delta": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "kind": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "path": {
      +              "type": "string"
      +            },
      +            "role": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "symbols": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "kind",
      +            "delta",
      +            "context",
      +            "role",
      +            "path",
      +            "symbols"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "flows": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "from": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "label": {
      +              "type": "string"
      +            },
      +            "to": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "from",
      +            "to",
      +            "label"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "layers": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "quotes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "steps": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "body": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "components": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "diff": {
      +              "type": "string"
      +            },
      +            "files": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "symbols": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "base": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "end": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "start": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "start",
      +                          "end"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "basePath": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "head": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "end": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          },
      +                          "start": {
      +                            "maximum": 9007199254740991,
      +                            "minimum": -9007199254740991,
      +                            "type": "integer"
      +                          }
      +                        },
      +                        "required": [
      +                          "start",
      +                          "end"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "path": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "path",
      +                  "basePath",
      +                  "base",
      +                  "head"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "title",
      +            "body",
      +            "components",
      +            "files",
      +            "diff"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "summary": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "words": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "author": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "source",
      +          "author"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "words",
      +      "summary",
      +      "steps",
      +      "components",
      +      "layers",
      +      "flows"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Addedv2.1.1

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already establish that this is a non-destructive, read-only, idempotent operation in a closed world. The description adds useful behavior beyond that: it defaults to the latest session, works even when no Lens exists, and requires the ShadowGit app to be running.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is front-loaded with the tool's purpose, but the first sentence becomes a dense semicolon-heavy enumeration of Lens contents. That enumeration overlaps with the output schema, making the description longer and harder to parse than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The definition is largely complete for this tool: annotations cover safety, the schema covers parameters at full coverage, and an output schema exists. The description adds operational context such as default session behavior, no-Lens handling, and the app prerequisite.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so base, head, and repo are already well documented in the input schema. The description reinforces the default-to-latest-session behavior but does not add meaningful new semantics for the individual parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: reading ShadowGit's Lens of a change, covering snapshots from base to head and enumerating what the Lens contains. It also distinguishes the read action from the sibling write_lens_words, which is named as the follow-up action for wording the Lens.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear timing guidance: read the Lens at the end of a session, after the saved snapshot, in order to word it with write_lens_words. It also notes the tool works for a change with no Lens and requires the ShadowGit app running, though it does not explicitly compare against other read tools such as get_map or get_code_context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.