COHERENS SELF-TESTING SYSTEM
COHERENS SELF-TESTING SYSTEM
MVP v1.0 — Design Specification
Document status: Initial Design
Version: 1.0
Purpose: Reusable testing of COHERENS plugins and independent AI agents
Strategic objective: Reduce the time, effort and repetition required to test a new or modified agent.
1. VISION AND OBJECTIVE
COHERENS Self-Testing System is an independent, reusable testing environment designed to evaluate the behavior, functional integrity and reliability of AI agents and plugins.
Its primary objective is to make agent testing faster, more consistent, reproducible and less dependent on manually repeating previously completed work.
The MVP will be deliberately limited in scope.
It will provide the minimum capabilities necessary to:
select appropriate tests;
execute tests through an assisted process;
evaluate results against predefined criteria;
identify defects and regressions;
generate standardized reports;
preserve evidence and testing history.
The system must be usable with agents that do not implement University-in-a-Box.
Core principle: Build once, reuse across the ecosystem, improve through experience.
2. ARCHITECTURAL PRINCIPLES
2.1. Independence
COHERENS Self-Testing System must remain architecturally independent of University-in-a-Box.
It must be capable of testing:
University-in-a-Box;
agents using other cognitive architectures;
simple specialized agents;
complex multi-role agents;
future COHERENS plugins.
2.2. Reusability
Tests must be classified into:
Common Tests
Applicable to multiple agents, such as instruction integrity, context continuity, epistemic integrity and user authorization.
Agent-Specific Tests
Designed for the particular purpose, functions, integrations and risks of an individual agent.
Regression Tests
Previously executed tests retained to detect behavioral degradation after changes.
2.3. Evidence-Based Evaluation
Every verdict must be supported by identifiable evidence.
The system must distinguish:
observed behavior;
documented structure;
verified technical execution;
interpretation;
assumptions;
unknown or untested behavior.
A missing demonstration must not automatically be classified as a failure.
2.4. Human-in-the-Loop
The system can execute tests, analyze results and generate recommendations.
Human approval remains necessary for:
accepting significant risks;
approving unresolved major defects;
approving release decisions;
authorizing consequential modifications.
The TEST AGENT must not independently certify its own final release.
2.5. Incremental Development
The MVP must avoid unnecessary technical complexity.
Initially, execution may be assisted and partially manual. Automation will be introduced only where it demonstrably saves time and improves reliability.
3. MVP ARCHITECTURE
The MVP consists of four operational components.
3.1. TEST LIBRARY
The central repository of reusable test scenarios.
Responsibilities:
store common tests;
store agent-specific tests;
preserve test criteria and expected behavior;
maintain test versions;
retain reference results;
identify tests affected by agent modifications.
Initial structure:
Common Tests
Agent-Specific Test Packages
Regression Tests
Test Templates
Acceptance Criteria
Each test must have a unique identifier.
3.2. TEST PROTOCOL
The standardized procedure governing test execution.
Responsibilities:
identify the agent and its version;
record the modifications being evaluated;
select the relevant test package;
define execution instructions;
establish the evidence to be collected;
determine completion criteria.
The protocol must prevent unnecessary repetition of tests that are unaffected by a modification.
3.3. COHERENS TEST AGENT
The cognitive evaluation component.
Responsibilities:
interpret test objectives;
select applicable evaluation criteria;
examine the agent's responses;
compare evidence against acceptance criteria;
identify defects and observations;
compare results with previous executions;
prepare the final evaluation report.
The TEST AGENT must distinguish between evaluation and certification.
It can recommend a verdict but cannot independently approve its own release.
3.4. TEST REPORT
The standardized output of each testing cycle.
The report must include:
agent identity and version;
test package and version;
tests executed;
results and supporting evidence;
defects and observations;
regression findings;
unresolved limitations;
overall verdict;
release recommendation.
4. STANDARD TESTING WORKFLOW
The MVP uses the following six-step workflow.
Step 1 — AGENT IDENTIFICATION
Record:
agent name;
version;
purpose;
principal functions;
relevant architecture;
changes since the previous tested version.
Step 2 — TEST SELECTION
Select:
common tests;
agent-specific tests;
regression tests.
Selection must reflect the scope and risk of the modifications.
Step 3 — TEST EXECUTION
Execute the selected scenarios.
For the MVP, execution may be assisted:
TEST PROTOCOL provides instructions;
the target agent performs the scenario;
the resulting interaction is preserved as evidence.
Step 4 — EVALUATION
TEST AGENT evaluates the evidence against predefined acceptance criteria.
It must not invent missing evidence or infer successful execution from a declaration alone.
Step 5 — REGRESSION ANALYSIS
Compare results with previous executions.
Identify:
newly introduced defects;
previously resolved defects that have returned;
behavioral changes;
differences requiring human review.
Step 6 — FINAL REPORT
Generate the standardized report and provide a release recommendation.
Human approval is required for the final release decision.
5. VERDICT CLASSIFICATION
The MVP adopts four primary verdicts:
| Verdict | Meaning |
|---|---|
| PASS | Acceptance criteria satisfied |
| PASS WITH OBSERVATIONS | Criteria substantially satisfied, with documented limitations |
| NOT DEMONSTRATED | Available evidence is insufficient |
| FAIL | A demonstrated behavior violates an acceptance criterion |
Verdicts must apply to individual tests and to the overall evaluation.
A NOT DEMONSTRATED result must not be silently converted into PASS or FAIL.
6. TEST PACKAGE STRUCTURE
Every test package should use a standardized structure.
Test Package
Package ID
Package name
Version
Target agent
Applicable agent versions
Test objectives
Preconditions
Test scenarios
Execution instructions
Expected behavior
Acceptance criteria
Evidence requirements
Verdict
Known limitations
Individual Test
Test ID
Test name
Test category
Objective
Input or scenario
Expected behavior
Acceptance criteria
Evidence collected
Result
Observations
Tests must be independently identifiable and reusable.
7. THREE LEVELS OF TESTING
The MVP provides three testing modes.
7.1. QUICK TEST
Used after small or localized modifications.
Tests only the functions and behaviors directly affected by the change, together with essential safeguards.
7.2. REGRESSION TEST
Used after significant modifications.
Executes affected tests and relevant previously validated tests to detect degradation.
7.3. FULL TEST
Used:
before a major release;
when introducing a new agent;
when substantial architectural changes occur;
when previous results indicate systemic problems.
The complete applicable test package is executed.
The system must retain the reason for selecting each testing mode.
8. FIRST REFERENCE PACKAGE — TIR-07
TIR-07 becomes the first reference test package in the TEST LIBRARY.
Target: COHERENS University-in-a-Box.
The package will contain the six Stage 4 probes:
A — ADVISOR → LIBRARIAN
B — LIBRARIAN → TUTOR
C — TUTOR → EDITOR
D — ROOMMATE → ADVISOR
E — LIBRARIAN → TUTOR → EDITOR → ADVISOR
F — EDITOR → LIBRARIAN
It will also retain relevant tests from:
Stage 1 — Plugin Inventory;
Stage 2 — Skill Loading & Runtime Accessibility;
Stage 3 — Selective Role Activation & Cognitive Orchestration;
Stage 5 — Final Audit.
The package must preserve the distinction between behavioral validation and technical implementation verification.
TIR-07 is a reference case, not a universal test template. Other agents will receive additional tests according to their own functions and risks.
9. TIME-EFFICIENCY MEASUREMENT
Time reduction is the primary success criterion of the MVP.
The system will record:
Test preparation time.
Test execution time.
Evaluation and reporting time.
Total testing time.
Number of tests reused.
Number of manual steps.
Number of defects and regressions detected.
The first reference measurement will be the manual TIR-07 process, where reliable time information is available.
Subsequent testing cycles will be compared against that baseline.
No arbitrary percentage improvement will be assumed in advance.
The objective is to establish measurable improvement through actual use.
10. APPLICATION ACROSS THE COHERENS ECOSYSTEM
After the MVP is established, it will be applied progressively to all COHERENS plugins.
For each plugin:
Identify its purpose and architecture.
Select common tests.
Develop specific tests.
Execute the appropriate testing mode.
Evaluate and report results.
Preserve reusable tests and lessons learned.
The same common tests should be reused wherever applicable.
Agent-specific tests must not be forced onto unrelated agents.
The objective is consistent evaluation without unnecessary uniformity.
11. VERSION CONTROL AND LEARNING
The MVP must preserve:
Test Library versions;
Test Protocol versions;
TEST AGENT instruction versions;
individual execution records;
test results;
defect history;
regression history;
final reports.
Changes to the testing system itself must be documented.
A correction to the MVP must not silently invalidate previous test results.
When a test changes materially, its version and comparability with previous results must be recorded.
12. MVP SCOPE — WHAT WE WILL NOT BUILD YET
The following capabilities are intentionally deferred:
fully automated test execution;
autonomous runtime integration;
complex dispatch and orchestration infrastructure;
automatic monitoring of every agent modification;
sophisticated dashboards;
advanced analytics;
automatic release authorization;
centralized multi-agent execution infrastructure.
These may be considered after practical experience demonstrates their value.
The MVP must not become a large development project that delays the testing of the ecosystem.
13. IMPLEMENTATION PLAN
Phase 1 — MVP DESIGN
Confirm the architecture.
Define the TEST LIBRARY structure.
Define the TEST PROTOCOL.
Define the TEST AGENT instructions.
Define the TEST REPORT template.
Phase 2 — MVP CONSTRUCTION
Create the initial test repository.
Convert TIR-07 into the first reference package.
Prepare reusable common test templates.
Establish the assisted execution workflow.
Phase 3 — FIRST PRACTICAL VALIDATION
Apply the MVP to University-in-a-Box.
Compare its operation with the manual TIR-07 experience.
Identify unnecessary steps and missing capabilities.
Correct only issues that prevent effective use.
Phase 4 — ECOSYSTEM TESTING
Apply the MVP to the remaining COHERENS plugins.
Add domain-specific tests.
Reuse common tests.
Record time and quality indicators.
Preserve experience and improvement proposals.
Phase 5 — POST-ECOSYSTEM OPTIMIZATION
After all plugins have been tested:
analyze accumulated experience;
evaluate actual time savings;
identify recurring inefficiencies;
assess which capabilities should be automated;
redesign or extend the system where justified.
This phase may produce COHERENS Self-Testing System v2.0.
14. MVP ACCEPTANCE CRITERIA
The MVP is considered operational when it can:
Identify an agent and its version.
Select an applicable test package.
Execute tests using a standardized protocol.
collect and preserve evidence.
Evaluate results using the four verdicts.
identify observations and defects.
compare results with a previous execution.
generate a standardized report.
retain the testing history.
be reused for a second, independent agent without redesigning its core structure.
The tenth criterion is particularly important: the MVP must demonstrate reusability beyond its first application to University-in-a-Box.
15. GOVERNING PRINCIPLE
COHERENS Self-Testing System must remain a practical instrument for improving the reliability of the COHERENS ecosystem.
Its success is not measured by the number of modules, the sophistication of its architecture or the amount of automation.
Its success is measured by whether it makes testing:
faster;
more consistent;
more reusable;
more evidence-based;
more effective at detecting regressions.
Build a small system. Use it across the ecosystem. Learn from every test. Optimize after experience.
Document conclusion
COHERENS Self-Testing System MVP v1.0 establishes the initial reusable testing capability for the COHERENS ecosystem.
TIR-07 provides the first reference test package. The subsequent testing of all COHERENS plugins will provide the practical evidence needed to determine the architecture and automation priorities of the next version.
Comentarii
Trimiteți un comentariu