feat: modified agent behavior for a more test centric workflow
This commit is contained in:
@@ -100,3 +100,13 @@ The Obsidian plugin runs inside Obsidian desktop/mobile and interacts with the O
|
||||
If using CouchDB-based self-hosted LiveSync:
|
||||
- A local watcher or CouchDB change listener daemon can be configured to detect updates to notes marked with `published: true` or in a dedicated `Blog/` folder.
|
||||
- When an update event fires, the daemon pulls the latest revision from the CouchDB database, runs the normalization pipeline, and saves it to `src/posts/`.
|
||||
|
||||
---
|
||||
|
||||
## 6. Validation & Verification
|
||||
|
||||
Always write automated test cases in `test/ingestion-api.test.js` before modifying or adding any functional synchronization or endpoint code:
|
||||
- **Mandatory Adversarial Testing:** Include adversarial tests covering unauthorized tokens, invalid/missing frontmatter schemas, path traversals in slugs, and malformed base64 asset payloads.
|
||||
- **Pre-Presentation Verification:** Run `npm test` and ensure all test cases pass before presenting the final output.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user