Expands on the Evaluation section of TECHNICAL_CONCEPT.md. Audience: Technical / Research Prerequisites: TECHNICAL_CONCEPT.md Sections 1–4 Status: Complete
The core thesis — that accumulated structure can substitute for repeated inference — is falsifiable. This section defines how it will be tested.
The primary metric is the total token count required to achieve a given outcome, used as the operational measure of reasoning cost:
- Input tokens — tokens consumed by the model per task (context, prompts, tool results)
- Output tokens — tokens generated by the model per task (responses, plans, reasoning)
- Total tokens — input + output, tracked per task type and aggregated over time
The thesis is validated if total token count decreases measurably across phases for equivalent outcomes, regardless of model class, provider, or pricing. Monetary cost is not a primary metric — the goal is to demonstrate that accumulated structure reduces the amount of reasoning (tokens) required, independent of which model provides that reasoning.
The baseline is established in Phase 2 (RPU + Orchestration): reasoning cost for tasks using planning-first workflows with structured contracts but no memory, knowledge, or macros. This represents the "structured but not compressed" baseline.
| Phase | What Is Added | Expected Effect |
|---|---|---|
| Phase 2 | Planning-first, structured contracts | Minimal reduction: plan reuse avoids re-derivation |
| Phase 3 | Signal-to-intent pipeline | Moderate reduction: structured context replaces ad-hoc prompting |
| Phase 4 | Memory + Knowledge artifacts + Skill Registry | Significant reduction: validated facts eliminate re-derivation, memory artifacts replace raw context. Skills provide structured behavior from day one (not part of the thesis test) |
| Phase 5 | Macros (pattern-derived + skill-derived) | Additional reduction: compiled execution patterns replace reasoning entirely for repeated tasks; skill-derived macros provide faster path for skill-covered domains |
Skills are available from Phase 4 and execute through the RPU with full reasoning. They make the harness functionally complete but do not affect the thesis measurement. The falsification criterion compares Phase 4 (memory + knowledge) against the Phase 2 baseline — skills are a constant across both and therefore cancel out.
If Phase 4 does not demonstrate a statistically significant reduction (p < 0.05) in reasoning cost for equivalent task outcomes compared to the Phase 2 baseline, the core thesis fails. "Equivalent outcomes" means the same task completed to the same quality standard.
To ensure valid measurement:
- The same model instance is used across all phases within a single evaluation run
- Separate evaluation runs are conducted with different model classes to measure how each responds to structural accumulation
- Task complexity is held constant within each measurement cohort
- The same evaluation harness measures cost across all phases
- Results are aggregated over a minimum of 100 task executions per task type
In addition to internal phase-to-phase comparison, Byte will be evaluated against existing agent frameworks on identical tasks:
| Framework | Comparison Dimension |
|---|---|
| LangGraph | Token consumption, task success rate, reasoning cost over repeated executions |
| AutoGen | Multi-agent coordination cost, memory persistence, execution auditability |
| CrewAI | Role-based task completion cost, learning across sessions |
| Custom prompt-chain baseline | Direct comparison to a well-engineered prompt-chain agent on the same tasks |
The comparison uses the same task taxonomy, the same model family where possible, and the same quality standard for "equivalent outcomes." This ensures that Byte's improvement is measured not just against itself but against the state of the art.
The evaluation harness is designed to run against multiple model classes to test whether structural accumulation benefits all models equally or disproportionately.
Model class dimensions:
- Parameter size (e.g., 7B, 13B, 70B) — does structure benefit smaller models more (closing the gap) or do larger models compress proportionally better?
- Lab/architecture — different labs produce models with different reasoning styles. Some models use significantly more tokens for reasoning; the hypothesis is that these would benefit most from structure, but they may also scale proportionally with more efficient counterparts.
- Reasoning style — models optimized for chain-of-thought vs. direct answer vs. tool-use may respond differently to macro execution and knowledge injection.
Measurement: For each model class, the same task taxonomy and evaluation harness is run. The compression curve (token reduction over time) is compared across model classes. Key questions:
- Does structure reduce tokens for all model classes?
- Is the reduction proportional (all models improve by a similar percentage) or differential (some models benefit more)?
- Do token-heavy models converge toward efficient models' baselines, or do they maintain their relative overhead?
Findings will be released publicly. Outside evaluations with different providers are welcomed and encouraged.
To isolate the contribution of each subsystem, the following ablation studies will be conducted:
| Ablation | What Is Removed | What Is Measured |
|---|---|---|
| No skills | All skills uninstalled; system starts cold | Baseline reasoning cost without any seed behaviors; measures cold-start penalty |
| No knowledge graph | Knowledge validation pipeline disabled | Impact of validated facts vs. raw memory alone |
| No memory graph | Memory artifacts and retrieval disabled | Impact of experience recall vs. no recall |
| No macros | Macro discovery and compilation disabled | Impact of execution compression vs. raw execution |
| No skill-derived macros | Skills execute via RPU only; no compression of skill traces | Impact of skill-to-macro transformation vs. skill-only baseline |
| No temporal intent | Temporal pattern extraction disabled | Impact of proactive automation vs. reactive only |
| No personality state | Personality projection replaced with defaults | Impact of personality adaptation vs. static behavior |
| No entity permissions | All entities have full access (no filtering) | Impact of permission-based retrieval vs. unrestricted access |
| No dual-access knowledge | Knowledge is either fully accessible or fully restricted | Impact of factual propagation with contextual protection vs. all-or-nothing |
| No channel approval | All channels active by default | Impact of Admin-gated channel activation vs. open channel model |
Each ablation is run for 100 task executions per task type, with results compared to the full system and the Phase 2 baseline.
The minimum of 100 task executions per task type is based on a power analysis targeting:
- Effect size: Cohen's d = 0.5 (medium effect)
- Alpha: 0.05 (standard significance threshold)
- Power: 0.80 (80% chance of detecting a true effect)
- Test: Two-sample t-test (Phase 2 baseline vs. Phase 4)
This sample size provides sufficient power to detect a 20% reduction in reasoning cost with 95% confidence.
Tasks are categorized by complexity and domain:
| Category | Examples | Expected Compression Benefit |
|---|---|---|
| Information retrieval | Weather check, calendar lookup, fact query | High — facts become knowledge, queries become macros |
| Workflow execution | Multi-step task with tool calls | High — repeated workflows become macros |
| Creative generation | Writing, brainstorming, design | Low — inherently novel, less compressible |
| Problem solving | Debugging, analysis, planning | Medium — patterns emerge but context varies |
| Conversation | Open-ended dialogue | Low — highly contextual, less compressible |
Tasks are further categorized by skill coverage:
| Skill Coverage | Description | Expected Effect |
|---|---|---|
| Skill-covered | A skill exists for this task category | Faster initial competence; skill-derived macros accelerate compression |
| Uncovered | No skill exists for this task category | Cold-start reasoning until patterns are discovered organically |
| Partially covered | A skill exists but does not cover all sub-tasks | Mixed behavior — skill-covered sub-tasks compress faster, uncovered sub-tasks follow organic discovery |
The taxonomy ensures that evaluation covers both compressible and non-compressible tasks, preventing the thesis from being validated only on easy cases.
"Equivalent outcomes" is defined per task type:
- Information retrieval: Correct answer with the same accuracy and completeness.
- Workflow execution: Same end state achieved (e.g., same files created, same API calls made).
- Creative generation: Subjective quality rated by blinded human evaluators on a 1–5 scale; scores within 0.5 points are considered equivalent.
- Problem solving: Same solution correctness; alternative valid solutions are accepted.
- Conversation: Task completion (e.g., information conveyed, decision reached) rather than conversational quality.
- RPU invocations — number of model calls required per task
- Inference latency — wall-clock time from intent to completion
- Knowledge graph growth rate — how quickly validated facts accumulate
- Macro hit rate — percentage of executions served by macros vs. full reasoning
- Skill-to-macro conversion rate — percentage of installed skills that produce at least one derived macro
- Provenance-linked knowledge accuracy — accuracy of knowledge derived from skills vs. discovered knowledge from general execution
- Hierarchical macro depth distribution — how deep do composed macros go in practice; what is the typical parent-to-child ratio
- Plan artifact capture rate — percentage of macros that captured a plan artifact (contingent on the detected pattern including plan generation)
- Temporal intent accuracy — percentage of temporally-scheduled intents accepted vs. denied by the user
- Confidence calibration — how well confidence scores predict actual correctness
- Degradation behavior — system performance when components are removed (simulating failures)
- Skill version update impact — time to re-validate derived macros after a skill update; reasoning cost delta during the re-validation window
- Security audit detection rate — true positive and false positive rates for skill security audit findings
- Token compression ratio by model class — percentage token reduction per model class, compared across sizes and architectures
- Cross-model consistency of macro hit rates — whether the same patterns become macros across different model classes
- Retrieval latency — time to complete the six-step retrieval filter chain per RPU invocation
- Permission check overhead — additional latency introduced by entity permission validation
- Entity resolution accuracy — precision and recall of identity matching across channels
- Merge suggestion quality — rate of true positive vs. false positive merge suggestions
- Dual-access projection correctness — rate of contextual metadata leakage (should be zero)
- Channel approval latency — time from channel connection to Admin approval to active status
- Permission delegation chain depth — typical depth of delegation chains in practice
Related: TECHNICAL_CONCEPT.md for the original specification. KNOWN_GAPS.md for evaluation limitations.