Skip to content

docs: fix AI-doc drift vs code#164

Merged
TheDZhon merged 2 commits into
feat/mantle-metafrom
docs/ai-doc-accuracy
Jun 2, 2026
Merged

docs: fix AI-doc drift vs code#164
TheDZhon merged 2 commits into
feat/mantle-metafrom
docs/ai-doc-accuracy

Conversation

@tamtamchik

Copy link
Copy Markdown
Member

Audited the AI docs (CLAUDE.md + .claude/skills/*) against the actual code and fixed the factual drift found. Docs were largely accurate; these are the real mismatches.

Fixes

  • new-configfail_on_bytecode_comparison_error was described as "set to true for strict mode", but true is already the default (diffyscan.py); reworded to "defaults to true; set to false to log instead of fail". Also documented two config keys the code reads but the skill omitted: rpc_url_env_var and deployment_gas_limit.
  • debug-diff — "differences outside immutable regions raise BinVerifierError" implied a fatal abort; clarified that process_config catches it and records a non-match (match=False). Also quoted the full user-visible log line (Failed in binary comparison: ...).
  • CLAUDE.md — HTML diff path corrected to digest/<timestamp>/diffs/.

Not changed

- new-config: fail_on_bytecode_comparison_error defaults to true (not an
  opt-in 'strict mode'); document the rpc_url_env_var and deployment_gas_limit
  config keys that the code actually reads
- debug-diff: BinVerifierError is caught in process_config and recorded as a
  non-match (match=False), it does not abort the run; quote the full
  'Failed in binary comparison: ...' log line
- CLAUDE.md: HTML diffs are saved under digest/<timestamp>/diffs/
@tamtamchik tamtamchik requested a review from a team as a code owner June 2, 2026 17:15
@tamtamchik tamtamchik requested a review from Copilot June 2, 2026 17:18

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.

Pull request overview

This PR updates repository AI guidance docs (CLAUDE.md and .claude/skills/*) to correct factual drift versus the current Diffyscan runtime behavior and output paths.

Changes:

  • Corrected the HTML diff report output path documentation to the timestamped digest/<timestamp>/diffs/ layout.
  • Updated config documentation to reflect actual defaults and documented additional config keys used by the code (rpc_url_env_var, deployment_gas_limit).
  • Clarified how bytecode comparison immutable-region mismatches surface (exception raised, but handled as a recorded non-match) and updated the user-visible error string.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
CLAUDE.md Fixes documented location of generated HTML diff reports to match the timestamped digest structure.
.claude/skills/new-config/SKILL.md Updates config option docs (defaults + newly documented keys).
.claude/skills/debug-diff/SKILL.md Clarifies bytecode diff error handling behavior and updates the quoted log/error line.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .claude/skills/new-config/SKILL.md Outdated
Per Copilot review on #164: bytecode comparison errors are always caught
and recorded as match=False; the flag actually controls whether a
per-contract exception (e.g. explorer fetch/verify failure) aborts the run.
@TheDZhon TheDZhon merged commit 09e81b9 into feat/mantle-meta Jun 2, 2026
13 checks passed
@TheDZhon TheDZhon deleted the docs/ai-doc-accuracy branch June 2, 2026 18:10
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.

3 participants