Repository navigation
docs(layout): document inspection and show migration - #227
Conversation
Document the delivered SDK/CLI contracts and pinned BusyBox/referrer workflow for #217. Preserve structural-versus-verification and real-versus-offline distinctions, partial recovery, and the 0.2/0.3 migration schedule. Reconcile related specifications and documentation links while keeping #130 In progress. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟡 Changes recommended
The documentation example passes an unset stdout encoding to to_json, causing an uncaught ValueError when output is redirected to io.StringIO() instead of producing the report.
1 open issue
What changed in this PR
Documents the delivered local OCI layout inspection SDK and CLI for unreleased 0.2, addressing #217 while keeping #130’s final close-out and release separate.
Changes:
- Expands SDK documentation for typed results, limits, diagnostics and selected-view serialization.
- Adds an inspection walkthrough covering output modes, BusyBox examples, recovery and
showmigration, withread_indexunchanged. - Updates navigation and delivery notes without changing runtime code, schemas, fixtures or the locked display baseline.
| File | Description |
|---|---|
specs/layout/layout-inspect.md |
Updates delivery status and links to current references. |
specs/cli/layout.md |
Clarifies colors and links recovery and migration guidance. |
specs/cli/layout-inspect.md |
Reconciles delivered contracts with the approved display design. |
README.md |
Adds inspection guide and SDK reference links. |
docs/project-state.md |
Records delivered work while retaining In progress status. |
docs/library/README.md |
Links the walkthrough and non-deprecated read_index reference. |
docs/library/layout-inspection.md |
Expands SDK contracts, diagnostics, budgets and examples. |
docs/index.md |
Adds inspection guide and command-reference navigation. |
docs/guides/inspect-oci-layout.md |
Adds the inspection, interpretation, recovery and migration walkthrough. |
Review effort: Balanced
Use UTF-8 byte-budget accounting when an in-memory stdout stream has no encoding. The literal example now preserves complete, partial and invalid-root outcomes with contextlib.redirect_stdout(io.StringIO()). Addresses the hosted review on #227. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Link development source installation, document the legacy UnicodeDecodeError contract without changing runtime behavior, label incomplete text summaries accurately, and include metadata reports in cleanup guidance. Addresses all four current human review comments on #227. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |

Summary
Closes #217.
inspect_layout/summarize_layoutsignatures, typed results, budgets, diagnostics and selected-view JSON serialization.showwarning / 0.3 removal schedule and unchanged SDKread_index; inspect JSON is not legacy show JSON.Related tracking issue: #130, still In progress. Final Implemented inventory close-out, parent lifecycle decisions and release publication remain separate. The owner authorized addressing all review comments and normal PR merge on 2026-11-27 after all gates pass; #130 inventory close-out remains separate.
Validation
Verified on signed head
8c75ff5ee3e45b4c2e67a074bd47ec11ff6d0f8a, macOS / Python 3.12.4:sh -n. Complete, partial and invalid-root SDK examples also pass underredirect_stdout(StringIO()).git diff --checkpasses.No docs builder or Markdown linter is configured; none added. No source, dependency, test, fixture, schema or workflow change. Local self-review of the documentation has no unresolved findings after fixing the report-script failure exit and the reproduced StringIO encoding issue. The pushed fix-SHA reply was individually owner-approved, posted and verified before resolving its review thread. All ten active hosted checks pass on 8c75ff5 (Tests 46059762145, CodeQL 46059757970); dispatch-only benchmark skipped as intended. Fresh Python 3.12 full suite: 5289 passed, five skipped, 268 warnings in 224.08 seconds. Current-head Copilot 6092825050 recommends approval/no open issues; configured Codex 7227002102 and full-head marker 7206050101 confirm completed/no findings. Local and hosted evidence are recorded separately.
Human review fixes
Linked source installation and stale-environment recovery, documented the unchanged read_index UnicodeDecodeError contract, corrected the incomplete text-summary label, and included generated reports in cleanup/privacy guidance. All four threads received separate pushed-fix replies before resolution. Current-head hosted CI and Copilot/Codex re-review completed without outstanding findings. Normal owner-authorized merge verified as signed 9be40df, exact tested-head tree and latest-main/head parents; #217 closed and all eight original obligations reconciled through completion evidence. #130 remains open/In progress; parent close-out and release remain separate.