Skip to content

Commit 2641623

Browse files
committed
develop-secure-contracts: add Sui pattern-discovery test case (3.6)
Fresh-subagent case: integrate OZ RBAC into an existing Sui Move module — verifies discovery from library metadata/examples (no CLI generator), import via MVR (not copy), and reading installed dependency source for signatures.
1 parent bb7b33c commit 2641623

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

dev/TESTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,20 @@ Apply these checks to every test unless noted otherwise:
249249
- Does NOT blindly stack both — proposes a coherent approach (e.g., migrate to Ownable, or keep AccessControl and adjust roles)
250250
- Explains the conflict to the user
251251
252+
### 3.6 Sui Move — pattern discovery from installed dependency
253+
254+
**Setup:** A Sui Move project whose `Move.toml` already depends on an OpenZeppelin package via MVR (e.g. `openzeppelin_access = { r.mvr = "@openzeppelin-move/access" }`) and a module under `sources/` that uses it.
255+
256+
**Prompt:**
257+
> Add role-based access control from OpenZeppelin to my Sui Move module.
258+
259+
**Expected:**
260+
- `develop-secure-contracts` skill activates and follows the pattern-discovery methodology
261+
- Searches `**/*.move` and reads `Move.toml` `[dependencies]` to identify the installed OZ packages
262+
- Discovers the component from the library's own metadata/examples (`llms.txt` → package `README` → `examples/`), not a hardcoded list — and does NOT reach for a CLI generator (none exists for Sui)
263+
- Integrates by importing via the Move package name (`use <move_package_name>::<module>;`) — never copies library source
264+
- Reads the installed dependency source/doc-comments (e.g. under `build/<project_package>/sources/dependencies/…` or via `sui move build --doc`) for exact signatures
265+
252266
---
253267
254268
## 4. CLI Contract Generators

0 commit comments

Comments
 (0)