# `Juggernaut.View.Advise`
[🔗](https://github.com/holsee/juggernaut/blob/v0.4.0/lib/juggernaut/view/advise.ex#L1)

`mix juggernaut.advise` for people (`:human`) and for agents (`:agent`, one JSON
document, `"kind": "advise"`), from `Juggernaut.Advise.analyse/2`, and the result of
`--verify` (`verified/2`).

The agent document holds `counts` (mutants by category), `modules`, `startup` (each
boot-set function with its `advice` and evidence), `tests` (each probed test file:
`observed` and `declared` category), `misclassified`, `seams`, `declarations` and
`next`, the commands that would act on the advice. A `declare` advice is a person's to
act on: its command is listed under `for_a_person`, never under `next`.

# `agent`

```elixir
@spec agent(Juggernaut.Advise.t()) :: Jason.OrderedObject.t()
```

The agent document of `advice` (keys in a stable order).

# `for_a_person`

```elixir
@spec for_a_person(Juggernaut.Advise.t()) :: [String.t()]
```

The commands only a person may run on `advice`: declaring each function whose evidence
allows it, and acknowledging each core declaration still unacknowledged.

# `next`

```elixir
@spec next(Juggernaut.Advise.t()) :: [String.t()]
```

The commands an agent may run on `advice`: `--verify` for functions with no evidence.

# `render`

```elixir
@spec render(:human | :agent, Juggernaut.Advise.t()) :: iodata()
```

Renders `advice` in `format`.

# `verified`

```elixir
@spec verified(:human | :agent, [map()]) :: iodata()
```

The human or agent output of `--verify`: each function's pairs and their agreement.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
