# `go_resolved_graph`

Resolver-owned settled Go module graph. Provisional version choices never
produce this target.

[`go_module_resolution`](/reference/prelude/go_module_resolution) and
[`go_workspace`](/reference/prelude/go_workspace) generate the target. It writes
`resolution.json` with the settled selection and graph metadata. When update
proposals are enabled, it also writes native file copies beneath `proposed`
and a `transaction.json` describing an explicit guarded source update.
Building, querying or restoring cached outputs never applies that transaction.

## Attributes

| Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `resolution` | string | required | Resolver-produced JSON encoding of the settled graph |
| `proposed_files` | map&lt;string,string&gt; | `{}` | Workspace-relative native file paths mapped to proposed text |
| `source_guards` | string | `"{}"` | JSON preconditions derived from the original files and observed absences |
| `source_directories` | string | `"[]"` | JSON shallow-directory membership guards for import-derived updates |
| `_default_test_roots` | list&lt;string&gt; | `[]` | Resolver-owned generated test roots for graph selection |

These attributes are generated records, not a stable hand-authored graph format.
The `deps` role accepts `go_package` providers. The target emits `go_resolution`,
including the resolution output path, and exposes `build` with the `default`
output group.

See [Go requirement previews](/reference/modules#go-requirement-previews) for
publication commands, preserved native formats and unsupported update semantics.
