Skip to content

docs: simplify guides and document CLI flags - #49

Merged
longvo92 merged 2 commits into
mainfrom
Codex/concise-documentation
Oct 18, 2026
Merged

longvo92 merged 2 commits into
mainfrom
Codex/concise-documentation

Conversation

@longvo92

@longvo92 longvo92 commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

What

Shorten the English/Vietnamese README, user guides, architecture guides and supporting READMEs using DBC Compare Tool's writing style. Copy its documentation rules into AGENTS.md while retaining this project's Python 3.8, stdlib, comparison-safety and delivery constraints.

Document all 24 current CLI flags/aliases with their purpose, defaults, mode restrictions and examples. Link both READMEs to the complete flag reference.

Why

Make setup and review tasks easier to find, remove repeated explanations and keep architecture focused on the current design. Clarify report/export behavior, consistency policies and --exit-zero without hiding coverage or export limitations.

Validation

  • Matched the complete EN/VI flag reference against the actual CLI parser; checked matching examples/options and all 30 local links/anchors in the four updated documents.
  • Ran all six new CLI examples with expected output and exit codes; verified seven incompatible flag combinations return usage errors.
  • Verified --exit-zero still returns 1 for enabled consistency failures and 2 for delivery coverage gaps.
  • Checked help/version and viewer aliases; parsed JSON/YAML examples using project loaders during the initial documentation revision.
  • git diff --check passed. Documentation-only change; full application tests, GUI execution and builds were not run locally. Viewer aliases were checked without launching Qt.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 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-10-18T03:29:26.505875Z 3ef4e0e 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.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ef4e0e2ff

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

Comment thread docs/architecture.md
A generated rename is applied only after a one-to-one mapping is inferred and rechecked against the shadow. Function callees require matching generated checksum roots. Literal contents are never rewritten.
- Unexplained differences remain real; scan/read/compare failures produce errors.
- Verdicts: `identical`, `comment-only`, `ignorable-only`, `real-change`, `added`, `deleted`, `error`.
- `diff_engine._status_of` owns verdict decisions; `scanner.FOLDABLE` permits only comment/noise folding. Filters never change raw verdicts, counts or exports.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Limit the filter invariant to presentation filters

Qualify this contract as applying to UI/view filters. The documented --exclude filter is passed to scanner.scan, where matching paths are skipped entirely, so it intentionally changes verdict counts and JSON/SARIF exports. Leaving “Filters” unqualified documents an invariant that the CLI violates and can mislead maintainers implementing or testing exclusion behavior.

AGENTS.md reference: AGENTS.md:L21-L21

Useful? React with 👍 / 👎.

Comment thread README.md
| `--json` / `--sarif` | Export comparison results for pipelines |

`--exit-zero` suppresses only file-difference failures, never consistency failures or incomplete scans. `--check-current` returns `0` for a policy pass, `1` for failed rules and `2` for incomplete input/scanning or unchecked items under delivery policy.
CURRENT consistency findings are terminal-only; JSON/SARIF exports contain comparison results and old/new advisories.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Distinguish SARIF from JSON advisory output

State that only JSON contains the old/new advisories. When a pipeline requests SARIF, serialize.build_sarif() emits only actionable per-file findings and has no advisory field, whereas the JSON document stores advisories under consistency; the current wording incorrectly promises SARIF consumers data they cannot receive.

Useful? React with 👍 / 👎.

@longvo92 longvo92 changed the title docs: simplify guides and adopt DBC writing rules docs: simplify guides and document CLI flags Oct 18, 2026
@longvo92
longvo92 merged commit 9027301 into main Oct 18, 2026
6 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.

1 participant