Judge a range of history
Every commit in a git range against the commit policy, in one pass: how many were read, how many git composed and are exempt, how many carry an error, and every commit that has a finding with what it is. What the gate reads to refuse new debt, and what answers `is the history of this branch clean?` without a process per commit.
- query
- behaviorally_verified
- benchmark required
- cache disabled
- MCP tool majordomus_commit_history
- $ commit history
Query parameters
| name | type | required | description | examples |
|---|---|---|---|---|
| range | string | no | Anything `git log` accepts: `origin/master..HEAD`, `v0.6.0..`, a bare `HEAD`. Default `HEAD`, which is the whole history reachable from here. | whole-history: "HEAD" |
Try it
The port is whatever the server logged; 8741 is the one it asks for first. The values are the operation's first example.
curl -s "http://127.0.0.1:8741/api/v1/commit/history?range=HEAD"
Tested by apps/majordomus-cli/tests/http_serve.rs, which replays the route with these values against a server on a real socket.
Responses
| status | body | meaning |
|---|---|---|
| 200 | HistoryReport | Judge a range of history: the result. |
| 400 | ErrorBody | invalid_input: The input does not fit the schema: a parameter of the wrong type, an unknown one, or a value the capability rejects. |
| 404 | ErrorBody | not_found: The input names something the repository does not hold. |
| 500 | ErrorBody | internal: The capability failed for a reason of its own; the message names it. |
| default | ErrorBody | Any other failure the transport reports: 405 method_not_allowed for another method on this path, 400 invalid_input for a body that is not a JSON object. |