JSON reports: ascribe permalinks and ascribe addresses

The JSON Schemas of what ascribe permalinks and ascribe addresses write with --format json.

For AI agents: the documentation index is at llms.txt, and this page is available as Markdown.

The JSON Schemas of what ascribe permalinks and ascribe addresses write with --format json. Each document follows the rules of the JSON report contract.

The fields of schemas/permalinks-sync.schema.json:

PermalinksSyncReport: What ascribe permalinks sync does to the list.

Field Type Required Nullable Description
schema_version integer yes no The version of this schema. It changes only when a field is removed or changes meaning.
ascribe_version string yes no The release of Ascribe that wrote it, as 0.4.5.
changed boolean yes no Whether the list’s file changes: it’s new, or its text differs.
written boolean yes no Whether the list’s file was written: it changes, and nothing said to write nothing (--check, --dry-run).
created boolean yes no Whether the project had no list, so this makes one.
added string[] yes no The names added, by name.
moved object[] yes no The names whose place changed, by name.
moved[].name string yes no Its name.
moved[].from string yes no Where the list had it.
moved[].to string yes no Where it’s declared now.
aliased string[] yes no The names moved to another permalink recorded, new or leading somewhere new, by name.
forwarded string[] yes no The names moved to a page recorded, new or leading somewhere new, by name.
retired string[] yes no The retired permalinks recorded, new or with a new reason, by name.
removed string[] yes no The names the list keeps that the project no longer has, by name. ascribe check warns about each.

The fields of schemas/permalinks-list.schema.json:

PermalinksListReport: What ascribe permalinks list answers.

Field Type Required Nullable Description
schema_version integer yes no The version of this schema. It changes only when a field is removed or changes meaning.
ascribe_version string yes no The release of Ascribe that wrote it, as 0.4.5.
has_list boolean yes no Whether the project has ascribe.permalinks. Without it, every permalink is not_listed, and nothing is removed.
permalinks object[] yes no Every permalink the content declares, in path order and then in document order, a page’s own first. A name declared in several places is here once for each.
permalinks[].name string yes no Its name.
permalinks[].place string yes no Where it’s declared, as the list writes it: the file’s path from the content root, and # and the id for a heading.
permalinks[].file string yes no The file it’s declared in, from the project root, as ascribe check reports it.
permalinks[].line integer yes no The line of its @id or its frontmatter permalink, from 1.
permalinks[].state ListState yes no Whether the list has it: listed at one of the places its name is declared, moved when the list has it somewhere else, or not_listed.
permalinks[].listed_at string yes yes The place the list has for it, when that’s somewhere else.
aliases object[] yes no The names ascribe.addresses moves to another permalink, by name.
aliases[].name string yes no Its name.
aliases[].target string yes no The name it was moved to.
aliases[].state ListState yes no Whether the list has it, leading there: listed, or not_listed.
moved object[] yes no The names ascribe.addresses moves to a page, by name.
moved[].name string yes no Its name.
moved[].to string yes no Where its address leads now, as written: a page, and # and a heading’s id.
moved[].state ListState yes no Whether the list has it, leading there: listed, or not_listed.
retired object[] yes no The names ascribe.addresses retires, or moves to one that’s retired, by name.
retired[].name string yes no Its name.
retired[].reason string yes no Why it was retired.
retired[].state ListState yes no Whether the list has it as retired, with this reason: listed, or not_listed.
removed object[] yes no The names the list has that the project no longer has, by name.
removed[].name string yes no Its name.
removed[].was ListedAs yes no What the list has it as.
removed[].place string yes no Where the list says a permalink was declared; for an alias, the name it led to; for a moved one, where; for a retired one, its reason.

ListState: Whether the list has a permalink where it’s declared. One of:

Value Description
"listed" At one of the places its name is declared.
"moved" At a place that doesn’t declare it any more.
"not_listed" Not at all.

ListedAs: Which of the list’s tables has a name. One of:

Value Description
"permalink" [permalinks]: a permalink the content declared.
"alias" [aliases]: a name moved to another permalink.
"moved" [moved]: a name moved to a page.
"retired" [retired]: a retired permalink.

The fields of schemas/permalinks-verify.schema.json:

PermalinksVerifyReport: What ascribe permalinks verify answers.

Field Type Required Nullable Description
schema_version integer yes no The version of this schema. It changes only when a field is removed or changes meaning.
ascribe_version string yes no The release of Ascribe that wrote it, as 0.4.5.
list string yes no The list checked against, as given.
found string[] yes no The names the list has, as permalinks, or moved to another permalink or a page, in the order given, each once.
retired object[] yes no The names the list has as retired, in the order given, each once.
retired[].name string yes no The name.
retired[].reason string yes no Why it was retired, as the docs’ writers wrote it.
missing string[] yes no The names it doesn’t have at all, in the order given, each once.

The fields of schemas/permalinks-retire.schema.json:

PermalinksRetireReport: What ascribe permalinks retire did.

Field Type Required Nullable Description
schema_version integer yes no The version of this schema. It changes only when a field is removed or changes meaning.
ascribe_version string yes no The release of Ascribe that wrote it, as 0.4.5.
retired string[] yes no The names retired, each written in ascribe.addresses as go:<name>: in [retired], or, with to, in [moved], in order.
reason string yes yes The reason each was given; none when each leads to to.
to string yes yes Where each address leads now, as written in ascribe.addresses; none when it shows the reason.
created boolean yes no Whether ascribe.addresses was made, since the project had none.
list_changed boolean yes no Whether ascribe.permalinks was changed to record them. Only a name the content no longer declares is recorded as retired.
written boolean yes no Whether the files were written: false with --dry-run, which says what would change.

ascribe addresses init

The fields of schemas/addresses-init.schema.json:

AddressesInitReport: What ascribe addresses init --format json writes.

Field Type Required Nullable Description
schema_version integer yes no The version of this schema. It changes only when a field is removed or changes meaning.
ascribe_version string yes no The release of Ascribe that wrote it, as 0.4.5.
file string yes no The file, from the project’s folder: ascribe.addresses.
created boolean yes no Whether the project had no file, so this made one. A file already there is left as it is, but for what’s moved into it.
moved string[] yes no The keys moved into the file from ascribe.toml’s [permalinks], each go:<name>, in the order written there; empty when it has none.
written boolean yes no Whether a file was written: one made, or moved into, without --dry-run.

ascribe addresses move and retire

The fields of schemas/addresses-record.schema.json:

AddressesRecordReport: What ascribe addresses move and retire write with --format json.

Field Type Required Nullable Description
schema_version integer yes no The version of this schema. It changes only when a field is removed or changes meaning.
ascribe_version string yes no The release of Ascribe that wrote it, as 0.4.5.
file string yes no The file, from the project’s folder: ascribe.addresses.
table string yes no The table the entry is in: moved or retired.
key string yes no The entry’s key: a page’s path from the content root, a file’s path with # and an id, an address starting with /, or a permalink, go:<name>.
value string yes no The entry’s value: where it moved, or why it was retired.
changed boolean yes no Whether the file changed: an entry already the same changes nothing.
written boolean yes no Whether the change was written: the MCP server’s tools write nothing, and give the edits to apply.
edits object[] yes no The edits that make the change, each replacing the text of its range in the file as it was; none when nothing changed.
edits[].range object yes no The text it replaces.
edits[].range.start Pos yes no Its first character.
edits[].range.end Pos yes no Just past its last character.
edits[].new_text string yes no The text that replaces it.

Pos: A position in a file.

Field Type Required Nullable Description
line integer yes no The line, from 1.
column integer yes no The column, from 1, in Unicode characters (not bytes or UTF-16 units).
offset integer yes no The byte offset from the start of the file.

ascribe addresses move --from-git

The fields of schemas/addresses-from-git.schema.json:

AddressesFromGitReport: What ascribe addresses move --from-git --format json writes.

Field Type Required Nullable Description
schema_version integer yes no The version of this schema. It changes only when a field is removed or changes meaning.
ascribe_version string yes no The release of Ascribe that wrote it, as 0.4.5.
file string yes no The file, from the project’s folder: ascribe.addresses.
base string yes no The base git’s renames are seen from: the revision asked for, or the default branch, and its commit when that’s something else.
moves object[] yes no Each move recorded, in path order: the page’s old path, from the content root, and its new one.
moves[].key string yes no The entry’s key: where the page was.
moves[].value string yes no The entry’s value: where it is now.
changed boolean yes no Whether the file changed.
written boolean yes no Whether the change was written: the MCP server’s tools write nothing, and give the edits to apply.
edits object[] yes no The edits that make the change, each replacing the text of its range in the file as it was; none when nothing changed.
edits[].range object yes no The text it replaces.
edits[].range.start Pos yes no Its first character.
edits[].range.end Pos yes no Just past its last character.
edits[].new_text string yes no The text that replaces it.

Pos: A position in a file.

Field Type Required Nullable Description
line integer yes no The line, from 1.
column integer yes no The column, from 1, in Unicode characters (not bytes or UTF-16 units).
offset integer yes no The byte offset from the start of the file.

ascribe addresses list

The fields of schemas/addresses-list.schema.json:

AddressesListReport: What ascribe addresses list --format json writes.

Field Type Required Nullable Description
schema_version integer yes no The version of this schema. It changes only when a field is removed or changes meaning.
ascribe_version string yes no The release of Ascribe that wrote it, as 0.4.5.
has_file boolean yes no Whether the project has ascribe.addresses. Without it, every build’s lists are empty.
builds object[] yes no Each build’s redirects and retired addresses, as its _ascribe/redirects.json has them, in the content model’s order.
builds[].version integer yes no The format’s version.
builds[].build string yes no The build’s name.
builds[].redirects object[] yes no Each pair, sorted by from.
builds[].redirects[].from string yes no The old address, from the host’s root, in the published case and slash form.
builds[].redirects[].to string yes no Where it leads now, from the host’s root.
builds[].redirects[].status integer yes no The HTTP status: 301.
builds[].redirects[].entry string yes no The ascribe.addresses key the pair comes from; or, for a pair a [former] setting makes, former. and the setting: former.base-path, former.permalink-path, or former.agents.
builds[].gone object[] yes no Each retired address, sorted by path.
builds[].gone[].path string yes no The address, from the host’s root.
builds[].gone[].reason string yes no Why it was retired.
builds[].gone[].entry string yes no The ascribe.addresses key it comes from.
builds[].gone[].page string yes no Where the page saying so is, from the host’s root: the base path, GONE_FOLDER, and the key’s address from the base path, its page’s for a Markdown version.