Skip to content

docs(layout): document inspection and show migration - #227

Merged
toddysm merged 3 commits into
mainfrom
feature/oci-layout-tree/user-docs-47d30c9e
Nov 27, 2026
Merged

toddysm merged 3 commits into
mainfrom
feature/oci-layout-tree/user-docs-47d30c9e

Conversation

@toddysm

@toddysm toddysm commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #217.

  • Document the delivered inspect_layout / summarize_layout signatures, typed results, budgets, diagnostics and selected-view JSON serialization.
  • Add a local inspection walkthrough covering expanded/summary/JSON/ASCII forms, colors and encoding, source-owned metadata, subjects, shared content and explicit partial recovery.
  • Explain the pinned BusyBox/referrer example without trust or discovery claims. Distinguish the real 11,277,619-byte baseline from the 5,522-byte offline stand-in fixture.
  • Preserve the 0.2 show warning / 0.3 removal schedule and unchanged SDK read_index; inspect JSON is not legacy show JSON.
  • Update navigation, stale companion-spec delivery notes and classified inventory documentation links. The locked full baseline tree and implementation/schema/fixtures/workflows remain unchanged.

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:

  • Nine Markdown files, 311 relative links/anchors.
  • All five literal Python snippets compile and execute; guide shell snippets pass sh -n. Complete, partial and invalid-root SDK examples also pass under redirect_stdout(StringIO()).
  • All six expanded/summary/JSON/ASCII forms match the selected SDK result; version-1 schema validation passes.
  • Exact BusyBox object/reference/subject/storage counts, missing-object stderr, partial/root failure behavior, output limits, NO_COLOR and unchanged show stdout/warning verified.
  • Actual public API signatures, constructor defaults and CLI help checked.
  • Existing focused integration selection: 30 passed, 42 deselected.
  • git diff --check passes.

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.

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>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 23:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T19:55:28.143911Z 8c75ff5 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 show migration, with read_index unchanged.
  • 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

Comment thread docs/library/layout-inspection.md Resolved
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block approval of this documentation-only change.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Comment thread docs/guides/inspect-oci-layout.md Resolved
Comment thread docs/library/layout-inspection.md Resolved
Comment thread docs/guides/inspect-oci-layout.md Resolved
Comment thread docs/guides/inspect-oci-layout.md Resolved
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>
@toddysm
toddysm requested a balanced review from Copilot November 27, 2026 19:52
@toddysm

toddysm commented Nov 27, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the OCI layout inspection documentation update.

No open issues 🎉

Review effort: Balanced

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 8c75ff5ee3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@toddysm
toddysm merged commit 9be40df into main Nov 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document layout inspection, summaries, JSON and show migration

2 participants