Skip to content

Correct documentation that disagreed with the code - #11

Merged
adrian-crainic merged 5 commits into
developfrom
docs/drift-cleanup-2026-11-22
Nov 24, 2026
Merged

adrian-crainic merged 5 commits into
developfrom
docs/drift-cleanup-2026-11-22

Conversation

@gabalint

@gabalint gabalint commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Weekly documentation cleanup: corrects statements the code contradicts. No behavior changes; nothing under crates/, console/src/ or packaging/ scripts is touched.

Each row gives the code that proves the correction (paths at df8f9b8).

Agent instructions and contributor documentation

File Change Proof
AGENTS.md rule 4 Adds "When documentation and code disagree, the code is right. Follow the code and correct or delete the documentation." Policy sentence; no code claim
docs/testing.md, docs/development/README.md CI and Scenarios run on pushes to develop and main, not main only .github/workflows/ci.yml:3-6, scenarios.yml:9-13
docs/testing.md, docs/spec/acceptance.md Console journeys run on the mock engine, not a "simulator-backed engine" console/playwright.config.ts:5-7, console/e2e/smoke.spec.ts:4
docs/development/README.md Crate table (16 of 19 crates, missing packie-audit, packie-backup, packie-notify) replaced by a link to architecture §7, which already lists purpose and dependencies ls crates/, docs/architecture.md §7

Configuration (docs/spec/configuration.md, docs/operations/configuration-reference.md)

Statement corrected Proof
max_frame_chars is 64–64,000, not 64–240 crates/packie-config/src/validate/protocols.rs:70
AU: format.test_code_digits also has a default (2) crates/packie-config/src/protocol/instrument.rs:144-146
sequence and $. are also valid inside append ($. also in a calculate find) crates/packie-transform/src/mapping.rs:143-145,699-703, formula.rs:98
Highest ack_required: AU class A and HL7 ack_mode: none are handed_off crates/packie-config/src/protocol/mod.rs:89-97
A same-protocol HL7 or ASTM target starts as a copy of the source crates/packie-routing/src/message/transform.rs:211-222
Secrets file: no group or other permission bits (not only read) crates/packie-config/src/secrets.rs:321
ack_message_types codes must start with a letter crates/packie-config/src/validate/protocols.rs:279-285
Only the ASTM result presets set require_single_group; the ORM presets require one specimen type and Roche adds collection time; an ASTM preset also carries source_settings crates/packie-config/profiles/profiles.json

Diagnostics, audit, backup specifications

Statement corrected Proof
An audit log that cannot be opened at start is retried by every audited command and the minute maintenance, not "until restart" crates/packie/src/audit.rs:64-75, crates/packie-audit/src/audit.rs:68-112, audit/maintenance.rs:68-78, test tests/audit/availability.rs:42
recent_errors keeps diagnostics.retain_recent_errors (default 100), not a fixed 100 crates/packie-routing/src/status/mod.rs:32-33,363-375
operator.command also names verify_config_version, test_endpoint, test_notification crates/packie-engine/src/handler.rs:387-405
config.save_failed is warn when only the apply outcomes could not be saved crates/packie-engine/src/handler.rs:88-97,525
backup.undo_failed is warn for the final state-directory sync crates/packie-backup/src/restore.rs:234-236
A lost backup outcome is printed as a warning by the offline CLI crates/packie/src/backup.rs:225-229

Channel specifications and architecture

Statement corrected Proof
An empty listener allowlist accepts any peer only on loopback or with allow_any_peer crates/packie-config/src/endpoint/tcp.rs:104-108, validate/endpoints.rs:110
disconnected also covers the unbound sender-side listener under receiver_then_sender crates/packie-routing/src/bridge.rs:347-356
Per-destination counters: no cancelled; the field is last_error; attempts, bytes_out, last_attempt_at exist crates/packie-diagnostics/src/snapshot/message.rs:99-163
Reconciliation step 5: pause flags come from <state>/routing/paused.json, not the store crates/packie-routing/src/registry/mod.rs:164,281-283; Store::set_paused has no caller outside tests
packie-engine depends on packie-notify crates/packie-engine/Cargo.toml:23
File completion detection is in the transports, not packie-files crates/packie-files/src/lib.rs:1, crates/packie-transport/src/folder/mod.rs:172-304, sftp/source.rs:221-224

Console specification, README, manual checklist, help

Statement corrected Proof
Idle cover button is "Continue", not "Show again" console/src/app/IdleOverlay.tsx:31-44
Logs list is newest first; scrolling away from the newest event or opening a row pauses following console/src/features/logs/LogsPage.tsx:27-28,143-147
disconnected shape is a dashed circle console/src/features/shared-operate/stateShapes.ts:82
export_messages and verify_transmission are console operations (Export dialog, Transmission report page) console/src/features/messages/ExportDialog.tsx:58-93, console/src/app/routes.tsx:65
Help (Connection): reconnection starts at about 0.5 s and doubles to about 5 s, not 1 s to 10 s console/src-tauri/src/state.rs:84-102
MANUAL.md: config apply needs --note; the verify title is "Chain verified: OK" crates/packie/src/main.rs:126-130, console/src/features/audit/VerifyResult.tsx:27-52
console/README.md: engine lookup order includes the installed bootstrap; features do import each other; acceptance rows are in §5, §9, §10; help files are per article console/src-tauri/src/endpoint.rs:3-6,122-130, console/src/features/channels/RecentMessages.tsx:11-13, docs/spec/acceptance.md:96,151,167

Operator guides and packaging checklist

Statement corrected Proof
macOS daemon error log is /Library/Logs/Positive ACK/launchd.stderr.log (install.md, VERIFY.md M5a) crates/packie-host/src/launchd.rs:47,79, packaging/macos/bootstrap.json:10
VERIFY.md M6: no uninstall.sh ships with the release .github/workflows/release.yml:199-203, packaging/macos/build-pkg.sh:52-54
Dashboard engine state labels are Running, Needs attention, Stopping console/src/features/dashboard/HeaderStrip.tsx:47-56
Every stopped channel ranks 8; "Stopped: error" and "configuration invalid" are neutral, not red console/src/features/dashboard/rank.ts:64-67, stateShapes.ts:39-42
The Messages text filter never searches bodies crates/packie-store/src/query.rs:376-387, crates/packie-ipc/src/messages.rs:105-106
A truncated transmission CSV ends with a # truncated: line; totals cover the whole period crates/packie-ipc/src/reports.rs:19-21,231-234, crates/packie-engine/src/reports.rs:196-227
An unreadable original stops an export with bodies crates/packie-engine/src/reports.rs:93-110
message.filtered is not a log event no emitter in crates/; not in docs/spec/diagnostics.md

Added after review

An independent review agent tried to refute each correction. It asked for: the missing packie-notify row in architecture §7 (crates/packie-notify/src/lib.rs:1-9, Cargo.toml), the same two transmission and export statements in docs/operations/compliance.md (crates/packie-ipc/src/reports.rs:20,231, crates/packie-engine/src/reports.rs:93-109), the endpoint settings row left as "Required" (reverted), and three statements that would otherwise disagree with the corrected ones: console/help/mapping-rules.json (same-protocol target starts as a copy, crates/packie-routing/src/message/transform.rs:210-224), acceptance E-05 verified by packie-transport too (crates/packie-transport/tests/folder.rs), console spec rank 8 is every stopped channel (console/src/features/dashboard/rank.ts:64-67). It approved the pull request at 7d9b6df.

Changelog

console/help/connection.json and console/help/mapping-rules.json are in-app help, so the change is observable: changelog.d/2026-11-22-help-reconnect-timing.md (fixed, low) and the regenerated CHANGELOG.md.

Checks

npm run changelog:check passes locally. No Rust or TypeScript source changed; CI runs the workspace gate.

No new dependencies.

🤖 Generated with Claude Code

gabalint and others added 4 commits November 22, 2026 03:20
Weekly documentation cleanup. Corrects statements in the specifications, operator
guides, contributor documentation and one console help article that the code
contradicts, replaces the developer guide's stale copy of the crate table with a
link to architecture section 7, and states in the agent instructions that the code
wins when documentation and code disagree. No behavior changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@gabalint

Copy link
Copy Markdown
Contributor Author

Status from the weekly documentation cleanup run (2026-11-22), at 7d9b6df:

  • Independent review: approved at 7d9b6df after two rounds (its findings are listed under "Added after review" in the description).
  • Checks: fmt, clippy and tests on Linux, macOS and Windows, console (typecheck, lint, tests, build, journeys), console backend, scenarios and the changelog check all pass.
  • Not merged: licenses and advisories fails. It is not caused by this pull request, which changes no Cargo.toml, Cargo.lock or deny.toml: RustSec published six advisories for lettre 0.11.23 (RUSTSEC-2026-0560 to 0565, fixed in 0.11.24), used by packie-notify. The same job will fail on develop and on every other pull request until lettre is updated.

The cleanup job does not change dependencies and does not merge past a failing check. Once lettre is updated on develop, update this branch and merge; nothing else is pending.

…-2026-11-22

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	CHANGELOG.md
#	docs/architecture.md
@adrian-crainic
adrian-crainic merged commit 8588546 into develop Nov 24, 2026
8 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.

2 participants