Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ Accuracy figures inside a released entry are the numbers measured **at that rele
left as written. The current numbers live on the [evidence page](https://fixmap.aryam.me/evidence),
which is generated from the recorded results rather than transcribed by hand.

## 0.9.5 - 2026-11-22

Every addition in this release is a preview: it works and is tested, but its output and options may change before v0.10.0.

### Added

- `fixmap plan --evidence <bundle.json>` (and MCP `fixmap_plan` `evidence`) attaches findings from other tools to the files in a plan. Bundles are data only and never executed; claims are labelled as unverified and unrelated items are counted rather than dropped silently.
- `fixmap contracts` and `fixmap contracts diff <from>..<to>` list OpenAPI, AsyncAPI, GraphQL, Protobuf, JSON Schema, and SQL migration contracts and classify changes between two exact Git refs as compatible, breaking, or unknown, without a checkout. YAML specs behave like JSON. MCP: `fixmap_contracts`.
- `fixmap history` now reports architecture drift between two refs (added and removed imports, cycles, policy violations, coupling growth) and decision disagreements where an accepted architecture decision record's explicit rule is broken. Snapshots are cached per commit. `fixmap plan --at <ref>` ranks against the repository as it was at a commit.
- `fixmap reviewers` suggests reviewers from CODEOWNERS, annotation owners, architecture policy, and history, with `.mailmap` support and `--no-history-authors`. Names are never written with `@`, so nobody is notified. MCP: `fixmap_reviewers`.
- `fixmap outcome` and `fixmap dossier` save prediction outcomes and change dossiers under `.fixmap/` with atomic writes, `--redact`, pruning, and calibration that never changes ranking weights. MCP: `fixmap_outcomes`, `fixmap_dossier`.
- The GitHub Action accepts `change-scope-touch`, `change-scope-add`, and `capability` to add change-scope and capability-map sections to its pull request comment.

## 0.9.4 - 2026-11-22

### Fixed
Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,23 @@ FixMap follows bounded imports and dependents, then joins existing tests, contra
review ownership, and architecture policy. A missing `--add` path stays unresolved. FixMap does
not interpret what "checkout" means, call an API or LLM, or require an account.

Ask who could review a change:

```bash
fixmap reviewers --diff main...HEAD
fixmap reviewers --working-tree --no-history-authors
fixmap reviewers --report plan.json --format json
```

Each changed path lists suggested reviewers with the exact reason: the highest-precedence
CODEOWNERS file (the last matching rule wins) with its line, active annotation owners,
architecture-policy reviewers, and up to three frequent authors from the newest 250 non-merge
commits. Commit authors are canonicalized through the repository's `.mailmap` when one exists.
`--no-history-authors` leaves commit authors out entirely and reads no commit history. Names are
printed without `@`, so pasting the output into a pull request notifies nobody, and FixMap never
requests reviews. A name is not evidence of identity, employment, or current availability. The
MCP tool `fixmap_reviewers` takes the same inputs and is read-only.

Persist a reviewed product-to-implementation map without persisting generated conclusions:

```bash
Expand All @@ -239,7 +256,7 @@ contract, decision, test-association, reviewer, and architecture evidence.

## Complete feature catalog

> **Preview features.** `change-scope`, `capability` / `capabilities`, `workspace`, `ask`, `migrate`, `reverse-docs`, `history`, `supply-chain`, `runtime`, `sandbox`, `editor`, `--semantic-model`, `--evidence`, and their MCP tools are previews: they work and are tested, but their output and options may change before v0.10.0. Language support beyond JavaScript and TypeScript is also preview quality while testing on unseen repositories continues. `fixmap features` lists which features are previews.
> **Preview features.** `change-scope`, `reviewers`, `capability` / `capabilities`, `workspace`, `ask`, `migrate`, `reverse-docs`, `history`, `supply-chain`, `runtime`, `sandbox`, `editor`, `--semantic-model`, `--evidence`, and their MCP tools are previews: they work and are tested, but their output and options may change before v0.10.0. Language support beyond JavaScript and TypeScript is also preview quality while testing on unseen repositories continues. `fixmap features` lists which features are previews.

### Inputs and repository mapping

Expand Down Expand Up @@ -376,6 +393,7 @@ Architecture rules live in a reviewed `.fixmap/policy.json` file. Every rule has
- Its public API also exposes Explain, Compare, and Verify builders and result types, so another tool can compose the same workflow without shelling out to the CLI.
- `fixmap annotate` writes a versioned `.fixmap/annotations.json` with stable content identities, file/symbol/service/contract scopes, optional owner and expiry, and rename/missing-target checks. Relevant notes retain the store fingerprint in Markdown, JSON, and compact agent reports. See the [candidate annotation guide](docs/annotations.md) for workflows, ownership boundaries, and interrupted-lock recovery.
- The candidate MCP tool `fixmap_annotate` shares that store and its locking/validation. It requires an explicit `action`: `add` accepts `target`/`symbol` or `service`/`contract`, `note`, optional `owner`/`expires`, and local `repo`; `list` accepts `repo` and `format`; `remove` requires the exact annotation `id` and optional `repo`. Only add/remove writes files. The tool advertises mutation/destructive hints; those hints are not authorization, and agents must obtain the user's request before changing notes. Invalid or action-inapplicable fields fail before mutation. This candidate tool is not a claim that the published npm release already supports it.
- Preview: `fixmap outcome record|list|show|remove|calibrate|prune` and `fixmap dossier create|list|show|remove` save predicted-versus-edited outcomes and fingerprinted change dossiers under `.fixmap/outcomes/` and `.fixmap/dossiers/` with atomic writes, link refusal, `--redact` (free text stored as SHA-256), and age-based pruning. Calibration is report-only (`automaticWeightChanges: false`). The read-only MCP tools `fixmap_outcomes` and `fixmap_dossier` list and show them. See [outcomes and change dossiers](docs/outcomes-and-dossiers.md).
- `.fixmap/policy.json` defines bounded, repository-owned dependency boundaries, required test changes, reviewer routing, and breaking-contract rules. Plan and Verify use the same evaluator and retain the exact policy fingerprint; Core can also compare deterministic architecture snapshots for new edges, cyclic components, boundary violations, and coupling growth.
- Historical Core APIs resolve refs to immutable commits and compare exact Git-blob architecture snapshots without checking out a branch, moving `HEAD`, or writing into the worktree.
- The opt-in local sensitive-data evidence provider emits provenance-marked credential/token/PII/payment indicators and structural proximity to logging/network/storage/analytics sinks. It never copies detected values or snippets and explicitly labels every result as low-confidence, incomplete evidence rather than a taint or security proof.
Expand Down Expand Up @@ -451,7 +469,7 @@ jobs:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: aryamthecodebreaker/FixMap@v0.9.4
- uses: aryamthecodebreaker/FixMap@v0.9.5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
24 changes: 23 additions & 1 deletion apps/web/app/changelog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,31 @@ type Release = {

const releases: Release[] = [
{
version: "0.9.4",
version: "0.9.5",
date: "November 22, 2026",
label: "Latest release",
summary: "Six previews: other tools' findings in plans, API contract checks, architecture drift and historical plans, reviewer suggestions, saved outcomes and dossiers, and new GitHub Action sections.",
groups: [
{
label: "Added",
items: [
"fixmap plan --evidence attaches findings from scanners, CI, or monitoring tools to the files in a plan, labelled as the tool's claim and never executed.",
"fixmap contracts lists API and schema contracts and classifies changes between two Git refs as compatible, breaking, or unknown.",
"fixmap history reports architecture drift and broken architecture decisions between two commits, and fixmap plan --at ranks against an older commit.",
"fixmap reviewers suggests reviewers from CODEOWNERS, notes, policy, and history without notifying anyone.",
"fixmap outcome and fixmap dossier save what a plan predicted against what changed, locally and with optional redaction.",
"The GitHub Action can add change-scope and capability-map sections to pull request comments."
]
},
{
label: "Improved",
items: ["All six are previews: they work and are tested, but may change before v0.10.0."]
}
]
},
{
version: "0.9.4",
date: "November 22, 2026",
summary: "Local semantic search now finishes on large repositories, and an honest test on 28 never-seen projects keeps language support in preview because Java missed.",
groups: [
{
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@aryam/fixmap-core": "0.9.4",
"@aryam/fixmap-core": "0.9.5",
"@phosphor-icons/react": "^2.1.10",
"next": "16.4.6",
"react": "19.2.7",
Expand Down
81 changes: 81 additions & 0 deletions docs/outcomes-and-dossiers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Outcomes and change dossiers (preview)

Preview: these commands may change before v0.10.0.

FixMap can save two kinds of local record after a change is done. Both live inside the
repository, one JSON file per record, and nothing leaves the machine.

| Record | Directory | Command | MCP (read-only) |
| --- | --- | --- | --- |
| Outcome | `.fixmap/outcomes/` | `fixmap outcome record\|list\|show\|remove\|calibrate\|prune` | `fixmap_outcomes` (list, show, calibrate) |
| Change dossier | `.fixmap/dossiers/` | `fixmap dossier create\|list\|show\|remove` | `fixmap_dossier` (list, show) |

## Outcomes

An outcome record keeps what a saved plan predicted (`contextFiles`) next to the paths that were
actually edited, the commands that ran, and who judged the task.

```sh
fixmap plan --issue "Fix login redirect" --format json --output plan.json
# ... make the change ...
fixmap outcome record --report plan.json --working-tree \
--command-result test-result.json --assessment agent --status succeeded
fixmap outcome calibrate
```

- `--diff <spec>` or `--working-tree [--include-untracked]` is required: it is where the edited paths come from.
- `--command-result <file>` (repeatable) takes one object or an array. Each entry is either a
`fixmap sandbox` result or `{ "command", "status", "evidence"?, "relatedPaths"? }` with status
`passed`, `failed`, `timeout`, `crashed`, or `unavailable`.
- `--assessment human|agent|external|unassessed` and `--status succeeded|failed|partial|unknown`
record who judged the task. A passing command is never treated as task success.

`fixmap outcome calibrate` reports precision (predicted paths that were edited), recall (edited
paths that were predicted), misses, false positives, and command and assessment counts across every
stored record. It is a report. Ranking weights never change automatically, and the output always
says `automaticWeightChanges: false`.

## Change dossiers

```sh
fixmap dossier create --report plan.json --task "Fix login redirect" \
--diff main...HEAD --pr https://github.com/owner/repo/pull/12 --commit <sha>
```

A dossier links the request text and its SHA-256, the report and Impact Graph fingerprints, the
report's ADR references, the diff's changed paths, command results, and commit/PR identifiers.
The record carries a content fingerprint; a hand-edited file fails validation and is reported.

## Privacy: `--redact`

`--redact` stores `sha256:<hex>` in place of free text:

- `outcome record`: the assessment reason and each command's evidence.
- `dossier create`: the task text (`request.summary`).

Paths, commands, and fingerprints are kept, since calibration needs them. Outcome records never
store task text; the task id defaults to `plan-<first 16 hex of the report's SHA-256>` unless you
pass `--task-id`.

## Retention: `prune`

```sh
fixmap outcome prune --older-than 90
```

deletes outcome records recorded more than 90 days ago. Malformed files are listed, never deleted.
`fixmap outcome remove <id>` and `fixmap dossier remove <id>` delete a single record.

## Safety and recovery

- Writes go to a temp file and are renamed into place, so a reader never sees half a record.
- `.fixmap`, `.fixmap/outcomes`, and `.fixmap/dossiers` must be real directories: links and
junctions are refused. Record files and locks must be regular files with one link.
- Record ids are letters, digits, `.`, `_`, and `-` only, so an id cannot name a path outside the store.
- Writers take `.fixmap/outcomes.lock` or `.fixmap/dossiers.lock`. A second writer waits about a
second, then stops. FixMap never takes over a lock, however old: if a writer was interrupted,
confirm no FixMap process is running, then delete the lock file by hand.
- `list` and `calibrate` report unreadable or invalid files under "Unreadable stored files" (or
`problems` in JSON) and keep going.
- Decide whether to commit these directories. They are plain JSON and reviewable; add them to
`.gitignore` if they should stay on one machine.
Loading
Loading