Skip to content

docs(archify): regenerate hwp-cli architecture with archify 3.0 - #405

Merged
entelecheia merged 3 commits into
mainfrom
docs/archify-3-refresh
Sep 28, 2026
Merged

entelecheia merged 3 commits into
mainfrom
docs/archify-3-refresh

Conversation

@entelecheia

@entelecheia entelecheia commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Summary

Archify 3.0 fails the 2.x spec on composition/desktop-readability (fixed 1376px viewBox) and verifies repository evidence against committed bytes at a pinned revision. This regenerates docs/architecture/hwp-cli* at 1989573f62ae1db4176caa43d232c8094dc0673a (v1.3.1-5-g1989573: five CI/deploy commits after the v1.3.1 tag; the workspace version in Cargo.toml is 1.3.1), 45 commits past the old pin 982c3e63.

Content changes:

  • A shared command layer (crates/hwp-cli/src/commands) now sits between the clap entry and the crates; the 22 MCP tools reuse the command modules' execute and publish helpers (not their stdout run paths).
  • File IO follows its real owners: codecs open inputs and write hwp/hwpx by path, the command layer stages, verifies and renames command outputs (and hwp_put_file), and hwp serve --files uploads and hwp_get_file hit the root directly (MCP -> fs edge). The old hwp-convert -> fs and hwp-render -> fs edges were wrong (those crates return bytes) and are gone.
  • The remote edge covers both deploy tiers (Cloudflare Worker with OAuth/PAT, AgentCore), both images pinned to v1.3.1.
  • Added Korean form-field scan/fill (slots --forms, fill --forms, kordoc port), the shared slot grammar in hwp-model, and drawing-object text rows in render-layout-v1.
  • --root path checks are qualified: always on for hwp serve, unrestricted for hwp mcp without --root.
  • Recounted at the pin: 26 CLI commands, 22 MCP tools, 10 lint rules, 6 official-document profiles. Fixed viewBox dropped; every component carries sources verified at the pin.
  • Round 2: removed the retired meta.views (archify 3.0 renderers ignore them, so the spec declared guided paths the HTML never showed). The one uncovered fact, that MCP tools run the CLI's command code, moved into the MCP card.

Verification

  • archify finalize architecture hwp-cli.architecture.json hwp-cli-rendered.html --repo-root <worktree> --quality showcase --json: pass (validate, deliver, strict check, browser-check), no diagnostics, no crossover hints.
  • archify visual-check hwp-cli-rendered.html --summary --require-provenance --out-dir docs/architecture: pass (containment, readability, viewer chrome, theme states, captures).
  • Perceptual review of the 1440x900 light and dark captures: no clipped or overlapping text, labels sit off the lines. Minor: the tools/call and atomic publish verticals under the Command layer run about 15px apart, still readable.
  • Re-run after the round-2 edit at head ce35cae: finalize pass (0 diagnostics), visual-check pass; the 1440x900 light capture is unchanged in layout.
  • Round 4 (pre-merge review) at head 1a715c7: finalize pass (0 diagnostics), visual-check pass. Fixes: MCP -> fs edge for /files and hwp_get_file; codecs tag scoped to unedited hwp5 and cited to crates/hwp5/tests/identity.rs; JPEG/WebP moved from hwp-render to the command layer (commands/render.rs 640-672); segment_map citation relabelled (render-layout-v1 is named in render_layout.rs); security-group title shortened so the hwp mcp | serve arrowhead is visible.
  • The absolute worktree prefix was scrubbed from hwp-cli-rendered.visual-check.json; grep -l '/Users/' over the staged files prints nothing.

Checklist

  • scripts/check.sh: not run, docs-only change (no Rust, schema or fixture files touched)
  • Hancom Office verification not needed: docs only
  • Data policy respected (no fixtures, no specification material)
  • Design documents: not applicable
  • Tests: not applicable
  • Bilingual docs: not applicable (generated diagram artifacts only)

🤖 Generated with Claude Code

Pinned revision: 1989573 (origin/main, v1.3.1),
up from 982c3e6 (45 commits).

Content changes:
- Split a shared command layer out of the CLI entry: clap dispatch and the
  22 MCP tools both run crates/hwp-cli/src/commands.
- File IO now follows its real owners: codecs open inputs and write
  hwp/hwpx by path; the command layer stages, verifies and renames every
  output. hwp-convert and hwp-render return bytes and no longer draw a
  direct filesystem edge.
- Remote edge covers both deploy tiers (Cloudflare Worker with OAuth/PAT,
  AgentCore), both images pinned to v1.3.1.
- Added Korean form-field scan/fill (slots --forms, fill --forms, kordoc
  port), the shared slot grammar in hwp-model, and drawing-object text
  rows in render-layout-v1.
- --root path checks are qualified: always on for hwp serve, unrestricted
  for hwp mcp without --root.
- Recounted at the pin: 26 CLI commands, 22 MCP tools, 10 lint rules,
  6 official-document profiles. Dropped the fixed 1376px viewBox.

Gates: finalize (validate, deliver, strict check, browser-check) pass with
--repo-root evidence; visual-check pass with --require-provenance.
Copilot AI balanced review requested due to automatic review settings September 28, 2026 12:30

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Code review skipped: your organization has reached its API usage limit, so Code Review can't run right now.

An organization admin can review the limit in your organization's usage and billing settings.

Once the limit resets or is raised, reopen this pull request to trigger a 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T12:34:37.444580Z 311bba2 PR opened
ℹ️ 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.

Archify 3.0 retired meta.views: renderers ignore it, so the three views
declared guided paths the HTML never showed. Removed them. The only view
note fact not already in a card (MCP tools run the CLI's command code) is
folded into the MCP and deployment card; the other two notes duplicated
card text and were dropped.

Review findings: PR #405 has no review threads. Codex completed with no
findings; the Claude and Copilot reviews were skipped over quota.

Pin unchanged at 1989573. Gates:
finalize (validate, deliver, strict check, browser-check) pass with
--repo-root; visual-check pass with --require-provenance.
- MCP file IO: serve /files writes uploads straight to root.join(name)
  and hwp_get_file reads directly (mcp/http.rs 364-456, mcp/mod.rs
  1028-1060). Added an mcp -> fs edge ("/files, get_file") and reworded
  the Core card: command outputs and hwp_put_file are staged, verified,
  renamed; /files writes in place.
- Codecs tag "byte-exact hwp5" became "unedited hwp5 lossless", cited to
  crates/hwp5/tests/identity.rs; the Core card now scopes the guarantee to
  unedited hwp-origin files (README Limitations).
- JPEG and WebP are encoded in the command layer (commands/render.rs
  640-672), not hwp-render: render tag is now "PNG/SVG/PDF pages" and the
  encode site is cited on the command layer.
- segment_map.rs source relabelled "per-page segment geometry rows"; the
  render-layout-v1 name belongs to hwp-cli's render_layout.rs.
- MCP card no longer says tools run the CLI's command code: mcp/mod.rs:7
  says they wrap the library layer, not commands/*::run; they reuse the
  command modules' execute and publish helpers.
- Shortened the security-group title to "--root gate" so the
  cli -> mcp arrowhead is no longer hidden under it.

Pin unchanged at 1989573 (v1.3.1-5-g1989573).
Gates: finalize (validate, deliver, strict check, browser-check) pass with
--repo-root; visual-check pass with --require-provenance.
@entelecheia
entelecheia merged commit 6aac765 into main Sep 28, 2026
6 checks passed
@entelecheia
entelecheia deleted the docs/archify-3-refresh branch September 28, 2026 13:36
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.

2 participants