Expand description
Output renderers (validate + relationships surfaces), per
PORT-CONTRACT.d/07: human text (code-point padding, TTY-gated ANSI),
--json via pyjson::dumps_indent2, and SARIF 2.1.0.
Functions§
- evidence_
value - The search-match
evidencedict exactly asdecided find --json --explainserializes it:{field, terms, tier, score, components:{bm25, lexical_rank, graph_rank, inbound}}. - find_
match_ value ResolvedArtifact.to_dict(include_evidence=…)— the search-match / resolved-artifact dict in pinned key order (id, type, title, path, [section], [snippet], [evidence], [recency], [tags]); conditional keys are absent, never null (excepttitle). Shared by the CLIdecided findrenderers and the MCP tool payloads.- portfolio_
summary_ value PortfolioSummary.to_dict()as aValue— shared by the portfolio JSON renderer and the index store’s portfolio segment (ADR-103/104), so the two cannot drift.- rac_
version - The injectable version string (PORT-CONTRACT decision 6):
DECIDED_RS_VERSIONwhen set, otherwise the Cargo package version. - recency_
value - The match
recencydict:{last_committed, age_days, stale}, all three keys always present, each null when unknown. - render_
agent_ rules_ human - render_
agent_ rules_ json json.dumps(result.to_dict(), indent=2)(ensure_ascii default).- render_
coverage_ human - Human
decided coverageoutput (render_coverage_human). - render_
coverage_ json - JSON
decided coverageoutput —json.dumps(report.to_dict(), indent=2, ensure_ascii=False). - render_
decisions_ for_ human - Human
decided decisions-foroutput: alignedid status titlerows with the matching declared## Applies Toentry under each, or a valid empty result. - render_
decisions_ for_ json - JSON
decided decisions-foroutput — the sameScopeLookupResultpayload the MCPfind_decisionspath argument serializes (ADR-031). - render_
diff_ human - render_
diff_ json render_diff_json— fixed key order;old/newecho the raw argv paths.- render_
dir_ inspect_ human - render_
dir_ inspect_ json - render_
doctor_ human - render_
doctor_ json json.dumps(..., indent=2, ensure_ascii=False)— raw UTF-8, unlike gate’s default-ASCII dump.- render_
documents_ jsonl - render_
export_ json - render_
find_ human render_find_human— aligned match rows, or a valid empty result (PORT-CONTRACT.d/06 §13).{query!r}is Python string repr.- render_
find_ json render_find_json—SearchResult.to_dict(include_evidence=explain).- render_
gate_ human - render_
gate_ json - render_
gate_ sarif - One combined SARIF run over ALL gate findings, blocking and advisory
alike; the intrinsic severity drives the level, the enforcement class
lives only in the exit code. A relationship finding’s path is already
the percent-encoded uri (shared builder), so it is quoted AGAIN here —
exactly the oracle’s double
quote()on that source. - render_
graph_ json - render_
hook_ install_ human - Human
decided hook install. - render_
hook_ install_ json - JSON
decided hook install. - render_
hook_ list_ human - Human
decided hook list: bold header, blank line,- <style ljust w> <desc>rows (style column width dynamic = 11 with the current set). - render_
hook_ list_ json - JSON
decided hook list(stable contract, ADR-007). - render_
improve_ human - render_
improve_ json ImprovementResult.to_dict()—{type, missing_required, missing_recommended, guidance}, sections snake_cased.- render_
improve_ template - Markdown templates for the missing sections (required first).
- render_
index_ human - Human
decided indexoutput: the repository manifest (services/index.py). - render_
index_ json - JSON
decided indexoutput —json.dumps(index.to_dict(), indent=2)(ensure_ascii default; identity-only contract, ADR-007). - render_
init_ human - Human
decided init: the established identity namespace. The idempotent verb carries its own colon (Already initialized:). - render_
init_ json - JSON
decided init(stable contract, ADR-007). - render_
inspect_ human - render_
inspect_ json InspectionResult.to_dict()— additive-friendly: decision metadata andrelationshipsappear only when present.- render_
inspect_ verbose - Explainable single-file output: matches, misses, and the score math.
- render_
mcp_ stats_ human - Human
decided mcp-statsoutput — what the local telemetry log says. An empty or missing log is a valid answer, rendered as guidance. NoteFirst Event:/Last Event:print the Python value directly, so a populated log whose events all lack a stringtsprintsNone. - render_
mcp_ stats_ json - JSON
decided mcp-statsoutput —json.dumps(to_dict(), indent=2), which isensure_ascii=True(the ONLY ascii-escaped payload of the three state surfaces;usage --jsonand both share URLs useensure_ascii=False). - render_
migrate_ human - Human
decided migrate metadata: assigned IDs and what remains. The migrated path column is code-point ljust’d; the Skipped block appears only when unknowns exist. - render_
migrate_ json - JSON
decided migrate metadata(stable contract, ADR-007). - render_
new_ human - Human
decided new: what was created, its identity, and the next step. The path is the argv string VERBATIM (no pathlib normalization). - render_
new_ json - JSON
decided new(stable contract, ADR-007) — note: NObytes_written(in the oracle’s dataclass but not itsto_dict). - render_
portfolio_ human - Human
decided portfoliooutput (render_portfolio_human). - render_
portfolio_ json - JSON
decided portfoliooutput —PortfolioSummary.to_dict()(ADR-007). - render_
quickstart_ human - Human
decided quickstart: identity (Initialized/Using), first artifact, next step. - render_
quickstart_ json - JSON
decided quickstart(stable contract, ADR-007) — nestedartifact. - render_
relationship_ validation_ human - render_
relationship_ validation_ json - render_
relationships_ human - render_
relationships_ json - render_
relationships_ sarif - render_
rename_ human - Human
decided renameplan: a reviewable diff-hunk preview (dry run) or a refusal (the CALLER routes refusals to stderr). - render_
rename_ json - JSON
decided renameplan (stable additive contract, ADR-007) — emitted to STDOUT for refusals too (unlike the human refusal, which goes stderr). - render_
rename_ result_ human - Human
decided rename --applyoutcome. - render_
rename_ result_ json - JSON
decided rename --applyoutcome (noeditsarray). - render_
resolve_ human render_resolve_human: the resolved-artifact card. Missing title renders—(U+2014); the id is bold only on a tty.- render_
resolve_ json render_resolve_json—ResolutionResult.to_dict()withindent=2.- render_
retrieve_ human render_retrieve_human(payload)— the humandecided retrieveblock (ADR-113), rendered from the budget-shaped payload (post-truncation), so the human view reflects exactly what the JSON face carries.- render_
review_ human - render_
review_ json - render_
review_ sarif - render_
schema_ human - render_
schema_ json - render_
schema_ list_ human - render_
schema_ list_ json - render_
schema_ template - render_
sentry_ human - render_
sentry_ json - render_
sentry_ sarif - render_
skill_ install_ human - Human
decided skill install: oneInstalled <name> skill: <path>line per skill, blank line, the discovery blurb. - render_
skill_ install_ json - JSON
decided skill install— note: nobytes_written(it is in the oracle’s model but NOT into_dict, skill brief landmine 4). - render_
skill_ list_ human - Human
decided skill list: bold header, blank line,- <name ljust w> <desc>rows in registry order; the name column width is computed dynamically asmax(len(name))(13 with the current set). - render_
skill_ list_ json - JSON
decided skill list(stable contract, ADR-007;ensure_ascii=True). - render_
stats_ human - render_
stats_ json - render_
stdin_ corpus_ human - render_
stdin_ corpus_ json - render_
templates_ human - render_
templates_ json - render_
unknown_ schema - render_
usage_ human - Human
decided usageoutput — the unified CLI + Guide read-back (ADR-046). Two DIFFERENT error pluralizations by design: CLI rows useerror/errors('s' if errors != 1), Guide rows alwayserror(s); both suffixes appear only when the count is nonzero, with the tool/command column left-justified to 16 code points. - render_
usage_ json - JSON
decided usageoutput — the combined payload withensure_ascii=False, indent=2(raw UTF-8, unlike mcp-stats). - render_
validate_ dir_ human - render_
validate_ dir_ json - render_
validate_ sarif - render_
validation_ human - render_
validation_ json - render_
watchkeeper_ github - The Markdown step-summary report (
decided watchkeeper --format github). - render_
watchkeeper_ human - Human-readable
decided watchkeeperoutput (v0.12.0). - render_
watchkeeper_ json - JSON
decided watchkeeperoutput (stable contract, ADR-007). - resolution_
error_ value ResolutionResult.to_dict()for the failure outcomes — thedecided resolve --jsonerror body, also served as the MCP structured lookup error (errors.from_resolution, ADR-034).- search_
result_ value SearchResult.to_dict(include_evidence=…)—{schema_version, query, type, match_count, matches}. Shared byrender_find_json(which wraps it inindent=2dumps) and the MCP search payloads (budget serializer).- watchkeeper_
annotations - Workflow-command lines for the step log, one annotation per line. Recommendation triggers annotate as errors; other warnings as warnings; informational findings as notices. Deterministic order: delta-driven errors first, then findings in report order.