hex-audit 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dashboard/.next/BUILD_ID +1 -1
  2. package/dashboard/.next/app-build-manifest.json +24 -24
  3. package/dashboard/.next/app-path-routes-manifest.json +1 -1
  4. package/dashboard/.next/build-manifest.json +2 -2
  5. package/dashboard/.next/next-minimal-server.js.nft.json +1 -1
  6. package/dashboard/.next/next-server.js.nft.json +1 -1
  7. package/dashboard/.next/prerender-manifest.js +1 -1
  8. package/dashboard/.next/prerender-manifest.json +1 -1
  9. package/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/dashboard/.next/server/app/_not-found.html +1 -1
  11. package/dashboard/.next/server/app/_not-found.rsc +1 -1
  12. package/dashboard/.next/server/app/access/page_client-reference-manifest.js +1 -1
  13. package/dashboard/.next/server/app/calls/page_client-reference-manifest.js +1 -1
  14. package/dashboard/.next/server/app/conformance/page_client-reference-manifest.js +1 -1
  15. package/dashboard/.next/server/app/diagram/page_client-reference-manifest.js +1 -1
  16. package/dashboard/.next/server/app/diagram.html +1 -1
  17. package/dashboard/.next/server/app/diagram.rsc +1 -1
  18. package/dashboard/.next/server/app/flows/page_client-reference-manifest.js +1 -1
  19. package/dashboard/.next/server/app/flows.html +1 -1
  20. package/dashboard/.next/server/app/flows.rsc +1 -1
  21. package/dashboard/.next/server/app/functions/page_client-reference-manifest.js +1 -1
  22. package/dashboard/.next/server/app/issues/page_client-reference-manifest.js +1 -1
  23. package/dashboard/.next/server/app/notes/page_client-reference-manifest.js +1 -1
  24. package/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  25. package/dashboard/.next/server/app/progress/page_client-reference-manifest.js +1 -1
  26. package/dashboard/.next/server/app/report/page_client-reference-manifest.js +1 -1
  27. package/dashboard/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  28. package/dashboard/.next/server/app-paths-manifest.json +10 -10
  29. package/dashboard/.next/server/chunks/530.js +1 -1
  30. package/dashboard/.next/server/functions-config-manifest.json +1 -1
  31. package/dashboard/.next/server/middleware-build-manifest.js +1 -1
  32. package/dashboard/.next/server/pages/404.html +1 -1
  33. package/dashboard/.next/server/pages/500.html +1 -1
  34. package/dashboard/.next/server/server-reference-manifest.js +1 -1
  35. package/dashboard/.next/server/server-reference-manifest.json +1 -1
  36. package/dist/commands/init.d.ts.map +1 -1
  37. package/dist/commands/init.js +6 -3
  38. package/dist/commands/init.js.map +1 -1
  39. package/dist/skills/generate-report.md +2 -0
  40. package/dist/skills/ingest-aa-report.md +11 -2
  41. package/dist/skills/validate-finding.md +4 -3
  42. package/dist/skills/write-finding.md +8 -6
  43. package/package.json +1 -1
  44. /package/dashboard/.next/static/{ZYqkgvjnS38aMxfanyctA → AyrRAwu4mazjp8iX4Yjbb}/_buildManifest.js +0 -0
  45. /package/dashboard/.next/static/{ZYqkgvjnS38aMxfanyctA → AyrRAwu4mazjp8iX4Yjbb}/_ssgManifest.js +0 -0
@@ -59,7 +59,7 @@ The `id`, `poc`, and `created_at` fields are managed by `hex issue new` (see Act
59
59
  "title": "<concise, descriptive title>",
60
60
  "severity": "Critical|High|Medium|Low|Info",
61
61
  "category": "<e.g., Math / Rounding, Access Control, Reentrancy, Oracle Manipulation>",
62
- "description": "<flat prose covering what the vulnerability is, why it exists, and its impact — no markdown headings; see Description format below>",
62
+ "description": "<short structured paragraphs (expected behavior, the flaw, the impact) with a fenced solidity snippet and every identifier backticked as `name(...)`; no headings or bold section labels — see Description format below>",
63
63
  "root_cause": {
64
64
  "locations": [
65
65
  { "file": "<path>", "snippet": "<relevant code>" }
@@ -90,12 +90,14 @@ Phrase recommendations as suggestions, not commands. The auditor proposes direct
90
90
 
91
91
  ### Description format (STRICT)
92
92
 
93
- The finding is rendered as a flat template (`## [Severity] Title`, then `**Description**:`, `**Recommendation(s)**:` …). The description goes inline after `**Description**:`, so it must read as **flat prose**:
93
+ The finding is rendered inline after `**Description**:` in the report, so it must be prose (no markdown headings), but it must be **structured and readable**, not a wall of text:
94
94
 
95
- - **No markdown headings and nothing that looks like one** — no `#`/`##`/`###`, and no section labels such as `Summary`, `Details`, `Impact`, `Affected code`, whether as a heading or a bold line on its own. Weave the impact into the prose instead of giving it its own section.
96
- - **Code blocks are allowed when a snippet is genuinely needed** — a fenced ```` ```solidity ```` block illustrating the bug is fine. Keep it to what's relevant; follow the Code Block Formatting Rules below.
97
- - Affected file paths belong in `--file` (the File(s) line), not in an "Affected code" section in the description.
98
- - **Be concise.** Prefer a single tight paragraph: what the issue is, why it exists, and its impact — just enough to drive the point home. Don't restate the title, don't pad with background the reader doesn't need, and don't repeat the recommendation. There's no hard word count; brevity is the goal.
95
+ - **Split into short paragraphs that separate the parts of the finding.** Cover, in order, how the code is supposed to work (the expected behavior or spec), what is wrong (the flaw), and the impact. Give each its own short paragraph rather than one dense block. Look at how a clean finding reads: a paragraph of context/expected behavior, the offending code, then a paragraph on what breaks and why it matters.
96
+ - **No markdown headings and no bold section labels.** The separation is paragraph breaks, not headers. Do not write `#`/`##`, and do not introduce paragraphs with `**Summary**:`, `**Impact**:`, `**Details**:`, `**Affected code**:` or similar labels — those read as machine-generated. Let the prose carry the structure.
97
+ - **Backtick every Solidity identifier** so the report renders it in monospace. Functions are written as `` `functionName(...)` `` with the literal `(...)`, e.g. `` `deposit(...)` ``, `` `sweepTreasury(...)` ``. Contracts, interfaces, variables, constants, and hex/number literals get plain backticks: `` `CardinalExchange` ``, `` `undeployedLpCapital` ``, `` `feeBps` ``. Standard names (ERC-4626, UUPS, ERC-20) stay as plain text. Never leave a bare identifier in the prose.
98
+ - **Show the offending code.** Include a fenced ```` ```solidity ```` block of the relevant lines (with `@audit-issue` comments per the Code Block Formatting Rules below) rather than describing the code only in words. Keep it minimal — just what's needed to see the issue.
99
+ - Affected file paths belong in `--file` (the File(s) line), not narrated in the description.
100
+ - **Be concise within the structure.** Short paragraphs, no padding, don't restate the title or repeat the recommendation. Readable and specific beats long.
99
101
 
100
102
  ### Report-facing content (STRICT)
101
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hex-audit",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "type": "module",
5
5
  "description": "CLI toolkit for Solidity smart contract auditors",
6
6
  "bin": {