Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test: report instruction guardrails independently

Affaan Mustafa99177e81ea42
diff --git a/tests/ci/agent-instruction-safety.test.js b/tests/ci/agent-instruction-safety.test.js
index 1e0f465a9..920ee2cdc 100644
--- a/tests/ci/agent-instruction-safety.test.js
+++ b/tests/ci/agent-instruction-safety.test.js
@@ -79,15 +79,15 @@ function run() {
let passed = 0;
let failed = 0;
- if (test('flagged instruction artifacts keep scoped safety sections', () => {
- for (const guardrail of guardrails) {
+ for (const guardrail of guardrails) {
+ if (test(`${guardrail.path} keeps scoped safety guardrails`, () => {
const source = read(guardrail.path);
assert.ok(source.includes(guardrail.heading), `${guardrail.path} missing ${guardrail.heading}`);
for (const pattern of guardrail.requiredPatterns) {
assert.ok(pattern.test(source), `${guardrail.path} missing ${pattern}`);
}
- }
- })) passed++; else failed++;
+ })) passed++; else failed++;
+ }
console.log(`\nPassed: ${passed}`);
console.log(`Failed: ${failed}`);