Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test/
├── DebtEngineAccessControl.t.sol # role-specific tests for the RBAC variant
├── DebtEngineOwnable.t.sol # owner-specific tests for the Ownable variant (incl. ERC-165 / ERC-173)
├── DebtEngineHarness.t.sol # test-only engine: proves public functions stay `virtual`, covers the base `_msgSender()`
├── DebtEngineThreatModel.t.sol # security-analysis tests: PoCs for AUDIT/RESULT.md findings, fuzzed access-control and set/clear model
├── DebtEngineThreatModel.t.sol # security-audit tests: PoCs for the CLAUDE_AUDIT.md findings, fuzzed access-control and set/clear model
├── DeployGuideCMTATv3.0.0.t.sol # runs every step of doc/technical/guides/DEPLOY_DEBT_ENGINE_CMTAT_V3.0.0.md against CMTAT v3.0.0
└── script/DeployScripts.t.sol # tests for the deployment scripts
script/
Expand All @@ -85,7 +85,7 @@ script/
- `doc/tools/AUDIT_OVERVIEW.md` — index of every analysis (static analysis, AI reviews, coverage) with their results.
- `doc/tools/<version>/` — tool reports per release: `slither-report.md` / `aderyn-report.md` with their `*-feedback.md` triage, the AI-assisted code-quality review `CLAUDE_ANALYSIS.md` and the published security audit `CLAUDE_AUDIT.md` (currently `doc/tools/v0.3.0/`).
- `doc/script/` — Surya scripts; output in `doc/surya/` (graph, inheritance, report).
- `AUDIT/` — working deliverables of the v0.3.0 security analysis (published version: `doc/tools/v0.3.0/CLAUDE_AUDIT.md`): `THREAT_MODEL.md` (actors, threat IDs, invariants), `TEST_IMPROVEMENT.md`, `RESULT.md` (findings with PoCs and fix code).
- `doc/tools/v0.3.0/CLAUDE_AUDIT.md` — published security audit of v0.3.0 (findings, invariants, access-control verification, remediation). Its working files (threat model, test plan, raw results) are local drafts in `draft/AUDIT/`, not committed.
- `lib/` — git submodules (do not edit).
- `draft/` — local, git-ignored folder for working notes and scratch files (e.g. `FEEDBACK.md`, `INSTRUCTION.md`). Put drafts there, never at the root; never cite a `draft/` file from a committed file (code, docs, changelog), since readers of the repository cannot open it.

Expand Down
367 changes: 0 additions & 367 deletions AUDIT/RESULT.md

This file was deleted.

43 changes: 0 additions & 43 deletions AUDIT/TEST_IMPROVEMENT.md

This file was deleted.

124 changes: 0 additions & 124 deletions AUDIT/THREAT_MODEL.md

This file was deleted.

4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ Commit: to be added on release
- Add ERC-165 / ERC-173 tests for `DebtEngineOwnable`, including `OwnershipTransferred` at deployment
- Add `DebtEngineHarness`, a test-only engine that overrides public functions (so removing `virtual` breaks the build) and covers the base `_msgSender()`

## v0.2.0
## v0.2.0 - 2024/09/09

Commit: `f6fb806b5f9b2ed7987500bb48bf8ea16346e85b`

- Add ERC-2771 support

## v0.1.0
## v0.1.0 - 2024/09/03

Commit: `272c97e7953834794df8e0f32346236e6de9c7cd`

Expand Down
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test/
├── DebtEngineAccessControl.t.sol # role-specific tests for the RBAC variant
├── DebtEngineOwnable.t.sol # owner-specific tests for the Ownable variant (incl. ERC-165 / ERC-173)
├── DebtEngineHarness.t.sol # test-only engine: proves public functions stay `virtual`, covers the base `_msgSender()`
├── DebtEngineThreatModel.t.sol # security-analysis tests: PoCs for AUDIT/RESULT.md findings, fuzzed access-control and set/clear model
├── DebtEngineThreatModel.t.sol # security-audit tests: PoCs for the CLAUDE_AUDIT.md findings, fuzzed access-control and set/clear model
├── DeployGuideCMTATv3.0.0.t.sol # runs every step of doc/technical/guides/DEPLOY_DEBT_ENGINE_CMTAT_V3.0.0.md against CMTAT v3.0.0
└── script/DeployScripts.t.sol # tests for the deployment scripts
script/
Expand All @@ -85,7 +85,7 @@ script/
- `doc/tools/AUDIT_OVERVIEW.md` — index of every analysis (static analysis, AI reviews, coverage) with their results.
- `doc/tools/<version>/` — tool reports per release: `slither-report.md` / `aderyn-report.md` with their `*-feedback.md` triage, the AI-assisted code-quality review `CLAUDE_ANALYSIS.md` and the published security audit `CLAUDE_AUDIT.md` (currently `doc/tools/v0.3.0/`).
- `doc/script/` — Surya scripts; output in `doc/surya/` (graph, inheritance, report).
- `AUDIT/` — working deliverables of the v0.3.0 security analysis (published version: `doc/tools/v0.3.0/CLAUDE_AUDIT.md`): `THREAT_MODEL.md` (actors, threat IDs, invariants), `TEST_IMPROVEMENT.md`, `RESULT.md` (findings with PoCs and fix code).
- `doc/tools/v0.3.0/CLAUDE_AUDIT.md` — published security audit of v0.3.0 (findings, invariants, access-control verification, remediation). Its working files (threat model, test plan, raw results) are local drafts in `draft/AUDIT/`, not committed.
- `lib/` — git submodules (do not edit).
- `draft/` — local, git-ignored folder for working notes and scratch files (e.g. `FEEDBACK.md`, `INSTRUCTION.md`). Put drafts there, never at the root; never cite a `draft/` file from a committed file (code, docs, changelog), since readers of the repository cannot open it.

Expand Down
5 changes: 3 additions & 2 deletions test/DebtEngineThreatModel.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ import {CMTATStandaloneDebt} from "CMTAT/deployment/debt/CMTATStandaloneDebt.sol
import {ICMTATConstructor} from "CMTAT/interfaces/technical/ICMTATConstructor.sol";

/**
* @dev Tests derived from AUDIT/THREAT_MODEL.md (threat IDs in each @notice).
* PoC tests assert the current behaviour of a finding in AUDIT/RESULT.md.
* @dev Tests derived from the v0.3.0 security audit, doc/tools/v0.3.0/CLAUDE_AUDIT.md
* (each test's notice names its finding ID F-n or threat ID). PoC tests assert the current behaviour of a finding;
* the F-4 PoC was inverted into a regression test once the fix landed.
*/
contract DebtEngineThreatModelTest is Test, DebtEngineInvariantStorage {
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
Expand Down
Loading