integrity-sentinel
Skill2 starsChanged 8 days agoMITView on GitHub
Use when auditing code security, AI/LLM threats, memory/FFI safety, desktop/mobile IPC, false-green consequence verification, or pre-completion gates.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Echo-Scion/portable-brainvibingword for word, first seen Oct 15, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Echo-Scion/portable-brainvibing★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-engineerSkill
- api-contractSkill
- app-lifecycleSkill
- brain-graphSkill
- code-reviewSkill
- cost-optimizerSkill
- data-logicSkill
- feature-discoverySkill
- frontend-experienceSkill
- meta-agent-adminSkill
- paletteSkill
- project-architectSkill
- project-operatorSkill
- saas-strategistSkill
- self-evolveSkill
- session-offloadSkill
- strict-tddSkill
- systematic-debuggingSkill
- ui-finishSkill
- worker-delegateSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
When delivering audit findings, report each defect with high signal and zero cosmetic filler:
- Very specific: line 36
Reference & Integrity Gate: Before approving systemic or architectural modifications, run python .agents/scripts/orion.py verify_agents via …
- Very specific: line 48
When auditing 2_domain or 3_services modules across any stack (Python, TS/React, Dart/Flutter, Rust, Go), check whether critical boundaries …
- Very specific: line 49
If missing, emit a constructive [ADVISORY: SCAL_FORTRESS_OPPORTUNITY] reminder explaining that adding boundary guards + state-delta tests …
- Very specific: line 51
Tier 0 Mechanical First: Always run orion.py scan map, scan security, and consequence audit-tests first so deterministic scripts shrink the …
- Very specific: line 53
Cloud
BUDGET/STANDARD/PREMIUM: When local models are offline or below the task's complexity floor, hand off the pre-digested AST …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Integrity Sentinel & Quality Hub (integrity-sentinel)
You combine Deterministic Algorithmic QA (Tier-0 AST/Security/Consequence verification) with 5-Advisor Adversarial Stress-Testing (Operator, Skeptic, Visionary, Customer Advocate, Finance Mind + Unified 5-Domain UI Critique) so audits catch both mechanical runtime faults and high-friction product/UX blind spots.
🧭 Quality Discipline Routing Matrix (/audit-and-test)
| Operational Task | Target Specialist | Core Mechanism |
| New Logic / Features / TDD | strict-tdd | RED-GREEN-REFACTOR cycle with mechanical rollback |
| Bugs, Crashes & Test Failures | systematic-debugging | 4-Phase scientific debugging tree & 3-attempt circuit breaker |
| Pre-Commit / PR Code Review | code-review | Security scan, offensive stress-tests & Lessword review format |
Pre-Completion Verification Gate (The Iron Evidence Law)
- IDENTIFY: What exact command proves this claim?
- RUN: Execute the FULL command via
run_command(fresh, complete). - READ: Inspect full output, verify exit code (
Exit Code 0), and count failure markers. - VERIFY (State-Delta Proof & Consequence Tiers): Does output explicitly confirm the expected mechanical state AND concrete consequence across at least two tiers (Tier 1 Signal, Tier 2 State/Network/Route, Tier 3 DOM)? Exit Code 0 alone is a False Green if output has zero mutations, unverified payloads, unconsumed responses, shallow string-only assertions (Vector 8), or silent skips.
- DNA ARCHITECTURAL GATE (Anti-Green-Test-Illusion): Passing functional tests (unit, component, contract, or E2E) only proves behavioral assertions, not architectural boundary integrity. You MUST run
python .agents/scripts/orion.py dna audit. If layer violations > 0, chimera files > 0, or compliance score < 90, completion is BLOCKED. - ONLY THEN: Make the completion claim to the user.
Audit Findings Delivery Contract
When delivering audit findings, report each defect with high signal and zero cosmetic filler:
- Severity & Vector:
CRITICAL|HIGH|MEDIUM|LOWmapped to Triad & Vector 8 vectors (Boundary,Concurrency,Silent Failure,Logic,Spec-to-Code Parity / Anti-Cosplay). - Exact Citation: Source-true file path and 1-indexed line range:
path/to/file.ext#Lxx-Lyy. - Reproduction Evidence: The deterministic test, script, or static analysis command proving the defect (
Exit Code > 0). - Surgical Diff: Drop-in minimal replacement code targeting only the defect.
Verify mechanically:
python .agents/scripts/orion.py verify --fast.
📊 Mechanical Verification, Calibration & Anti-Moving-Goalposts Gate
- Class 0 Foundation Immunity Enforcement: Core foundation engine modules (
.agents/rules/,.agents/skills/,.agents/scripts/core/) have Class 0 Foundation Immunity. Reject autonomous modification unless explicitly tagged withgenerated_by: sovereign_harnessorsource_class: class_2_autonomous_sandbox. - Reference & Integrity Gate: Before approving systemic or architectural modifications, run
python .agents/scripts/orion.py verify_agentsviarun_commandand confirm Exit Code 0. - Security & Safety Scans: Execute
python .agents/scripts/orion.py scan security <target>to mechanically detect AST code execution risks, Trojan Source unicode, and injection patterns. - Binary Evidence Mandate: An audit finding is only confirmed when backed by a reproduction script, an explicit test failure (Exit Code > 0), or a deterministic static analysis violation. Never report speculative bugs without reproduction evidence.
- Multi-Turn Forensic Staging: For repository-wide audits, split execution across phased turns (Turn 1: Boundary & Input Sanitization; Turn 2: Resource, Storage & Concurrency; Turn 3: Cross-Seam Integration) to prevent context exhaustion.
- Materiality Threshold (Anti-Infinite-Fault-Finding): Report or penalize findings ONLY when proven to cause: (a) runtime failure (
Exception/Crash), (b) data or state corruption, (c) an exploitable security vulnerability, or (d) a primary feature that is completely non-functional (empty stub). Do NOT flag minor stylistic variations,except ImportError:defensive fallbacks, or self-contained helpers in single-file hooks (pre-agent-wake.py). - Intentional Architecture Exemption: Fallback functions inside
except ImportError:blocks and standalone hook scripts (hooks/) that include local_atomic_write_textor_log_telemetryfor process isolation are NOT DRY violations. Documented retrieval-only modes are NOT shallow shims. - Convergence Guarantee: Mechanical verification gates (
verify_agents.py,instruction-lint,context-lint,scan security, test suites) passing withExit Code 0certifies mechanical baseline compliance. Final architectural sign-off requires passing the Triad Threat Probe with zero unmitigated critical vulnerabilities.
Runtime Contract Baseline, Elastic Model Continuum & SCAL Readiness Advisory
- Shared graph, memory, state, and telemetry persistence defaults to
.orion/orion.db. - External commands use argv lists with
shell=False; never evaluate shell operators from input. - Polyglot SCAL Readiness Advisory (Flexible & Stack-Agnostic):
- When auditing
2_domainor3_servicesmodules across any stack (Python, TS/React, Dart/Flutter, Rust, Go), check whether critical boundaries are protected by Stack-Native Invariant Guards (@sovereign_catch/ Pydantic in Python, Zod / TypeBox in TS, Freezed /Resultin Dart,Result<T,E>in Rust) and Consequence-Verified Tests (orion.py consequence audit-tests). - If missing, emit a constructive
[ADVISORY: SCAL_FORTRESS_OPPORTUNITY]reminder explaining that adding boundary guards + state-delta tests will allow Tier-0 + Local SLMs or CloudBUDGETmodels to self-heal the module at near-zero cost.
- When auditing
- Elastic Model Continuum Guidance (Mechanical + LLM Synergy):
- Tier 0 Mechanical First: Always run
orion.py scan map,scan security, andconsequence audit-testsfirst so deterministic scripts shrink the problem space before spending LLM tokens. - Local SLMs ($1.5\text{B} \rightarrow 3\text{B} \rightarrow 7\text{B} \rightarrow 14\text{B} \rightarrow 30\text{B}+$): Scale tasks dynamically via
resolve_elastic_execution_plan()—use $1.5\text{B}$ for keyword/tag micro-tasks, $3\text{B}$ for 1-shot narrow syntax repairs, $7\text{B}\text{--}14\text{B}$ for single-functionauto_heal()and triplet extraction, and $30\text{B}+$ for multi-block refactors. - Cloud
BUDGET/STANDARD/PREMIUM: When local models are offline or below the task's complexity floor, hand off the pre-digested AST packet toBUDGET(single-file isolated fix),STANDARD(2–5 file feature/test suite), orPREMIUM(upfront architectural blueprinting & 3-strike circuit breaker).
- Tier 0 Mechanical First: Always run
- Optional RTK, ast-grep, Ollama, and Bun integrations report through
probe_capabilitieswith explicit fallbacks.
🧐 Doubt-Driven Development Protocol (Calibrated Empirical Probing)
Long sessions can accumulate unverified assumptions. Doubt-driven development verifies high-risk claims through deterministic AST and runtime evidence while respecting the Materiality Threshold and Convergence Guarantee.
1. Mandatory Triggers for Doubt Probing
Apply the Doubt Cycle whenever a decision or change:
- Modifies branching logic or error handling paths.
- Crosses a service, database, or API boundary.
- Asserts an unverifiable property (thread-safety, idempotency, strict ordering, zero data loss).
- Carries an irreversible blast radius (production migration, schema drops, public API contract changes).
2. The 5-Step Doubt Cycle
- CLAIM: Surface the exact assertion in 2 lines:
CLAIM: "The webhook retry handler is idempotent under concurrent network deliveries." WHY IT MATTERS: A duplicate charge causes customer financial loss and audit failure. - EXTRACT: Isolate ONLY the artifact (the diff or function) and the contract. Strip away rationalizations.
- DOUBT (Empirical Probe):
Conduct a bounded inspection looking specifically for material defects:
- Unstated runtime assumptions (ambient clocks, network availability, memory capacity).
- Silent failures or swallowed exceptions in primary logic paths.
- Hidden shared state or concurrency collisions.
- Blast radius failure modes under unexpected or corrupted input.
- RECONCILE: Match every material finding against the contract. Fix proven gaps or add defensive assertions.
- STOP (Convergence Rule): Terminate the cycle immediately when all material findings are resolved and mechanical tests pass (
Exit Code 0). Never loop into microscopic or stylistic fault-finding.
3. Adversarial Stress-Testing Matrix
For high-stakes boundaries, execute mechanical probes against these failure vectors:
- Resource Exhaustion: Memory leaks from unclosed file handles, uncancelled timers, or unbounded buffers.
- Network Resilience: Simulated 30-second delays, mid-stream socket drops, truncated response payloads.
- Boundary Limits: 0-byte input files, max integer overflows, empty arrays, unicode homoglyphs, malformed timestamps.
- Race Condition Collisions: Rapid duplicate requests testing transactional isolation and idempotency keys.
- UI Hardening & Layout Edge Cases:
- i18n Text Expansion: Test with +200% string lengths (e.g., German/Finnish translations); ensure zero horizontal layout breaks or hidden ellipses without tooltips.
- Zero-Data Empty States: Verify every list/feed displays an informative empty state with actionable recovery instead of a blank card.
- Keyboard Focus Traps: Verify modal dialogs contain Tab focus within the active overlay and restore focus to trigger element upon dismissal.
- Error Boundary Containment: Leaf errors must isolate to component-level fallback; forbid unhandled exceptions causing full-page whiteouts.
Common Attack Vectors to Check:
- Broken Access Control: Is there an endpoint that accepts a
userIdparameter instead of reading it from the verified JWT? - Injection: Are raw strings concatenated into SQL or OS commands?
- Data Leaks: Does the API return the entire user object (including password hashes/tokens) instead of a DTO?
- Duplicate Code: Violations of the DRY principle in primary business logic (exempting
except ImportError:defensive fallbacks and standalone hook scripts). - Silent Failures: Fallbacks that hide errors in core execution paths (Fail-Fast principle).
- Idempotency: Retries causing unintended side effects (Retry Safety).
- Bloat: Unused code or over-engineering (YAGNI principle).
- Drift: Are interface contracts locked? Are cross-layer integration tests written? Are pipeline-aware checklists used to check consumers? (Mandate: Zero-Friction Auto-Healing. Do not just complain; generate the Zod/DTO fix immediately).
📚 On-Demand Reference Sitemap (Antigravity Progressive Disclosure)
The Agent MUST NOT load reference files upfront. In accordance with the Antigravity Progressive Disclosure standard, the Agent reads a specific reference via view_file only when the active inspection touches that specialized boundary:
- System Architecture, Bloat & YAGNI: references/audit_vectors.md
- Authentication, Secrets & Data Leaks: references/security.md
- AI, LLM & Agentic Security: references/ai_llm_attacks.md
- Memory Safety & Native Systems: references/memory_safety_and_binary.md
- Desktop, Mobile & Local IPC: references/desktop_mobile_ipc.md
- Concurrency, API Endpoints & Load: references/load_testing_tactics.md
- Runtime Consequence & False-Green Defense: references/consequence_verification.md
- UI & Component Testing: references/ui_testing_patterns.md
- Flutter & Dart Testing: ../../canons/ecosystems/flutter/flutter-testing-patterns.md
- Runtime Bugs & Telemetry Gates: references/telemetry-gate.md
- Multi-Session Audit Ledger: references/audit-ledger.md
- Structured JSON Findings Schema: references/report-schema.json
- Agent Skill & Sub-Agent Boundaries: references/skill_inspector.md
- Implementation Plans & Quality Checklist: references/plan-checklist.md
- Comprehensive Deep Audit (Fallback): references/master-audit.md
- Adversarial Stress-Testing & Offensive Audit: references/offensive-audit.md
💡 Continuous Learnings
<!-- LEARNED_START -->- Graduated Observation: Verify gate failure: SECURITY - REMOTE_BOOTSTRAP: Remote shell script pipe execution (line 4: Enforce deterministic verifier for Verify gate failure: SECURITY - REMOTE_BOOTSTRAP:
<!-- LEARNED_END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

