# Lab 033 raw lab detail: Offer certified logic to an agent and it routes around it. Make it the path.

Qlik Cloud, on a tenant Qlik provided for testing, and Claude Code on the author's Mac, with Claude
Sonnet 5.5 on a subscription login. The arms were built November 24 and 25, 2026. The 675 scored
runs finished November 26 at 3:28 a.m. Central. Qlik Answers ran November 26 and 27, and the expert
arm on November 27.

Nothing was metered per token. The consumer runs' API-equivalent cost is about $108 for phase 1 and
about $135 with the expert arm. The raters ran on existing ChatGPT and Antigravity subscriptions.
The author's time is estimated at 23.5 hours, a floor, from message timestamps.

This download carries:
- the routes and how they were built;
- the grading apparatus;
- every pre-registered endpoint;
- the call-log analysis behind the finding;
- the two arms added after the results;
- the failures and how they were found.

The question set, the answer key, the grading standards and the method for assessing a vendor's
placement aren't published.

## The one question

An enterprise certifies its business logic once, as governed definitions in a platform IT runs, and
exposes it to agents through the Model Context Protocol (MCP). When an agent can reach that logic,
does it use it? And are its answers better when it does?

The pre-registered form compared two ways of offering the logic:
- certified functions behind a local MCP server;
- Qlik's governed master measures behind Qlik's MCP Server.

Both were compared against a floor where the agent re-derives everything from the raw records.

## The corpus and the certified definitions

The questions are about the Layer2C 4+1 assessment corpus:
- 51 vendor rows and 510 layer cells;
- 32 labs, with their Decision Authority Placement Model (DAPM) entries;
- the validation join between labs and cells;
- the methodology.

The snapshot was frozen on November 25, 2026.

Nine definitions (D1 to D9) were frozen before any build. Each one is a rule for reading the
published corpus, and each became an acceptance test:

1. **D1:** two DAPM readings, never mixed. A cell carries decision authority, and a component carries
   portability.
2. **D2:** control without exit. A layer Retained on decision authority whose components are all
   Ceded for portability.
3. **D3:** layer labels across model versions, including Layer 0's split into 0A, 0B and 0C.
4. **D4:** instruments don't mix. Fourth Cloud labels never map onto 4+1 layers.
5. **D5:** corrections are claim-level.
6. **D6:** general availability, and how it's established for each component.
7. **D7:** entities, meaning how display names map to row ids.
8. **D8:** validated cells. A lab validates the claim it tested, not the whole cell.
9. **D9:** insufficient evidence. When the records don't hold the answer, say so.

The 75 questions came from three sources:
- probes harvested from errors seen while reading this corpus;
- questions drafted by Gemini, blind to those errors;
- the author's own field questions.

44 of the questions need at least one definition to answer correctly. That set is the primary
endpoint.

## The three routes

**A, re-derive.** The agent gets the raw records with read-only SQL over SQLite and file read and
search. It applies the rules itself, the way every client parsing raw data would.

**K, certified functions.** The nine definitions are written as functions behind a local MCP server,
with record retrieval tools beside them. The server was built by codex (OpenAI, gpt-6.1-terra, high
reasoning) in a staged directory. It passed acceptance in round 1, 110 of 110 checks. After the
round 2 spec changes it passed 174 of 174.

**B, Qlik.** One Qlik Cloud app holds the records as fields and the definitions as 20 master
measures, plus 10 master dimensions. A Qlik knowledge base holds 84 documents of record text. The
agent reaches all of it through Qlik's MCP Server: search, fields, measures, data objects,
selections and knowledge-base search. Every write tool is withheld.

The same builder produced B's load script and measures as files. B took four build rounds, which is
one more than the three-round cap. The fourth changed only how the knowledge-base documents were
tagged.

The builder never touched the tenant. An inline load script can't pass byte for byte through a
model's tool call, so the data went up another way:
- the data was split into 12 CSV files, and the author uploaded them one at a time through the Qlik
  hub;
- a 1.4 KB script went through MCP and was read back byte-identical;
- the measures were created verbatim from the builder's files.

Acceptance confirmed all 20 measures against the reference with no selection. It also confirmed
"control without exit" for all 18 rows, under both selections that could bias it.

The knowledge base first came back with every hit duplicated, because both document sets had been
indexed. Removing the three bundle documents fixed it, and four retrieval probes then returned the
correct record text.

## The consumer

Every run used Claude Sonnet 5.5, pinned, at default effort:
- a fresh headless Claude Code session per run;
- an empty directory, with no project instructions;
- tools restricted per route;
- a 12-turn limit, where a run that ends without an answer scores wrong;
- runs in random order.

There were three runs per question per route, 675 runs in all. Every run carries harness hash
`a8fd22f1fdd840ba`, and none was invalid. Two B runs hit the turn limit with no answer.

B's Qlik tools come through Claude Code's claude.ai connector. They load through the deferred tool
search, while K's tools load directly. A B session waits 10 seconds for the connector, and a run
whose session lacked the Qlik tools would have been marked invalid and rerun. None was.

## Grading

**The key.** Gemini wrote it through the Antigravity command-line tool, from a staged directory of
the public records. It was blind to the consumer and the builder. The author checked it against a
deterministic reference before the arms were built and ruled every disagreement. There are two
rubrics:
- certified, which uses the definitions;
- corpus-independent, which accepts any defensible reading.

**Code checks.** 279 hard values (counts, ids and labels) were extracted from the key and frozen
before the grading standards existed. Code binds: a missing value fails the claim, and a present
value doesn't by itself make it correct.

**Raters.** codex and Gemini each judged every required claim, blind to route, with tool names,
field names and source lines stripped from the answers. Vendor names stay, because they're content.
A claim is met when both raters say met and its code check passes. The raters disagreed in one
direction: Gemini passed what codex failed in 337 phase 1 cases, and never the reverse.

**Adjudication.** Every disagreement went to a queue: 687 items in phase 1, all resolved.
- The author ruled the first 25 units himself.
- His assessment agent, the one that wrote the corpus records, wrote grading standards for the
  rest from the key alone.
- codex attacked every set of standards, and the author ratified them.
- The agent proposed the rulings. The author settled the low-confidence calls himself or by his
  precedents, and spot-checked confident calls at random.
- He overruled the agent once in phase 1.

Part C, whether a wrong answer flagged its uncertainty, was left unruled. It's reported under each
rater.

**Intervals.** Paired by question, as a Jeffreys bootstrap: each resample redraws the questions,
then each question's pass rate per route from Beta(k + 1/2, n − k + 1/2). The non-inferiority
margin and the superiority margin are both 0.10, and the fidelity floor is 0.80.

## The pre-registered verdict

The verdict rules were written before any data, and the first match wins. On the primary endpoint,
44 questions on the certified rubric:

| Comparison | Estimate | Interval |
|---|---|---|
| B minus K | −0.061 | −0.141 to +0.051 |
| B minus A | −0.129 | −0.192 to −0.004 |
| K minus A | −0.068 | −0.151 to +0.046 |

Fidelity: A 0.697, K 0.629, B 0.568. B minus K spans the margin, so the verdict is rule 1,
inconclusive. Every route is also below the 0.80 floor.

Secondary endpoints, pre-registered:

| Endpoint | A / K / B | B minus K | K minus A |
|---|---|---|---|
| Strict 44, corpus-independent | 0.712 / 0.606 / 0.568 | −0.038 (−0.120 to +0.060) | −0.106 (−0.173 to +0.008) |
| All 75, certified | 0.702 / 0.693 / 0.529 | −0.164 (−0.199 to −0.050) | −0.009 (−0.078 to +0.063) |

Outcomes by route, all 75 questions, certified rubric, runs:

| Route | Correct | Justified abstention | Silent wrong | Wrong, flagged | Flag unruled | Other |
|---|---|---|---|---|---|---|
| A | 140 | 18 | 36 | 18 | 13 | 0 |
| K | 135 | 21 | 20 | 26 | 19 | 4 unjustified abstentions |
| B | 100 | 19 | 32 | 35 | 28 | 9 unjustified abstentions, 2 type unruled |

The share of wrong runs that were silent, under each rater's reading of part C:

| Route | codex | Gemini |
|---|---|---|
| A | 65% | 60% |
| K | 51% | 49% |
| B | 47% | 32% |

## The path, from the call logs

The finding rests here. Two measures were taken from the full call log of every run, and no model
judgment is involved in either.

**Which tools each run used, on the 44 definition questions.**
- B called a governed library measure in 13 of 132 runs.
- Five more B runs computed only with an expression the agent wrote. The other 114 answered from
  knowledge-base text and field lookups.
- K called a certified function in 119 of 132 runs. Across all 75 questions, K made 1,436 function
  calls and 1,559 record-retrieval calls.

**Which call's result states each checked value.**
- **The scorer's rule:** a count gets credit only from a call that computes it (a master measure, an
  agent-written expression, a certified function or a SQL query) and whose result states it.
  Listing and selection calls never count as support. A count no computing call states was made by
  the agent from what it retrieved, and it's credited to the agent.
- **Across all 75 questions:**
  - B: 9 of 309 counted claims from a governed measure and 2 from certified fields. Knowledge-base
    text 134, the agent's own counting 118, agent-written expressions 18, mixed 28.
  - K: 39 of 309 from a certified function. Retrieved records 134, the agent's own counting 119,
    mixed 17.
- **On the 44 definition questions:** B 4 of 156 from a measure, and K 18 of 156 from a function.

The two measures read differently, and the difference is the finding.

**B.** The agent mostly didn't reach for the governed measures at all. The cause isn't assigned. It
may be how the platform surfaces measures through MCP, or how this lab named and documented them.

**K.** The agent used the functions, then took the last step itself. In several questions, a
function returns the matching cells and the agent counts them by hand, which the scorer credits to
the agent. It was right in those cases, and nothing checked it. The agent also restated the
definitions in its own words.

A third reading sorts every correct enforced value on the 44 questions by source. Computed means a
computing call returned it. Retrieved means only a retrieval call did. Agent means no tool result
holds it.

| Route | Counts: computed / retrieved / agent | Labels and ids: computed / retrieved / agent |
|---|---|---|
| A | 61% / 33% / 6% (n=82) | 91% / 9% / 0% (n=258) |
| K | 42% / 38% / 21% (n=77) | 39% / 55% / 6% (n=226) |
| B | 23% / 77% / 0% (n=70) | 9% / 91% / 0% (n=221) |

A string match can't tell real grounding from coincidence. A small count can appear by chance in a
large result, and a read is the only check. Nothing in the traces points to answers from memory,
but no closed-book control was run.

## The eight questions every route failed

Eight of the 44 questions failed on every route, including the two added arms.

**Seven are open advisory questions graded against one frozen synthesis.** Each required claim is a
50-to-160-word synthesis, with a specific set of vendors, labs, percentages and labels. The answers
read in full were accurate and record-grounded. They fail because they cite different correct
evidence than the one synthesis the key froze. On these questions, claim-matching against one key
measures agreement with that synthesis, not correctness.

**The eighth is the definition trap (D2).** The question: which vendors have the most layers
Retained on decision authority where every component is Ceded for portability?
- **A and the expert arm** counted layers where any component is Ceded for portability, and named
  ServiceNow and Dell.
- **B** said it couldn't compute the count.
- **K** named the right leader in all three runs. It failed anyway: the agent described the rule as
  "at least one" component, and two runs missed totals that code enforces. The ratified standard
  had moved those totals to support, but the code check was frozen first, and code binds.
- **Qlik Answers** (added after the results; this bullet added November 28, 2026) named Kamiwaza
  with 3 and the seven-way tie at 2 in all three plain runs, through the governed measure and the
  vendor dimension. It missed the code-checked 27-cell, 18-vendor totals, and its restated rule
  didn't say every component. The corpus assistant's one run grouped by the join-vendor dimension,
  saw 27 for every vendor, and declined to rank.

Without the eight, fidelity on the other 36 questions:

| Route | Fidelity |
|---|---|
| A | 0.852 |
| Expert arm | 0.870 |
| K | 0.769 |
| B | 0.694 |
| Qlik Answers | 0.556 |
| Qlik Answers with the vCTOA corpus | 0.639 |

## Key sensitivity

This reading was decided after the results, and it isn't the verdict. Adjudication tagged 27
required claims as contestable and logged 19 as key defects. Rescoring with those claims treated as
not required, on the 44 questions, certified rubric:

| Reading | A / K / B / expert | B minus K |
|---|---|---|
| As scored | 0.697 / 0.629 / 0.568 / 0.720 | −0.061 (−0.141 to +0.051) |
| Contestable dropped | 0.720 / 0.636 / 0.583 / 0.758 | −0.053 (−0.132 to +0.056) |
| Contestable and defects dropped | 0.720 / 0.636 / 0.591 / 0.758 | −0.046 (−0.127 to +0.056) |

The verdict doesn't move.

## Added after the results

**Qlik Answers, the by-the-book arm (ruling 51, labeled as discovered).**
- **Why it went in:** route B is an outside agent calling Qlik through MCP. Qlik's application
  surface points at Qlik Answers for the virtual knowledge worker case.
- **What it ran over:** a copy of the same app and the same knowledge base.
- **How it was driven:** through the browser. Qlik's published Assistants API reaches Answers over
  knowledge bases only, and the path that covers app data isn't published.
- **The runs:** 75 questions, three runs each. A second assistant, with the vCTOA corpus added as a
  second knowledge base, ran one run each. That's 300 runs.
- **How it was graded:** on the same key and the same ratified standards, with 21 new standards for
  units phase 1 hadn't needed. All 370 queue items were resolved, and the author overruled the
  agent twice.

On the 44 questions it scored 0.455, and 0.523 with the corpus. Against the other routes:

| Comparison | Estimate | Interval |
|---|---|---|
| Qlik Answers minus B | −0.114 | −0.174 to +0.000 |
| Qlik Answers minus K | −0.174 | −0.239 to −0.022 |
| Qlik Answers minus A | −0.242 | −0.285 to −0.072 |

On all 75 questions, Qlik Answers minus B is −0.058 (−0.110 to +0.022). On single runs, the corpus
assistant beat plain Answers on 6 questions and lost on 2.

Where Answers' claims came from wasn't measured.

The confounds:
- it was rated in separate packets from phase 1;
- the underlying model isn't named by Qlik (answered after publication: Claude Sonnet 5.5, see the
  update below);
- it was driven through a browser;
- Qlik's AI rewrote the master item descriptions on the app copy, and they were left as they were;
- Answers left Qlik selections standing 25 times, each cleared through MCP before the next question;
- Qlik is a content client.

**The expert arm.**
- **What it is:** the author's own assessment agent, the agent that wrote the corpus records, frozen
  on November 13, 2026, before this lab existed.
- **How it ran:** Claude Sonnet over phase 1's records, on the 44 definition questions, three runs
  each, with built-in read tools instead of MCP tools.
- **Version:** it ran on a later Claude Code version than phase 1.
- **The first run:** the allowlist refused read-only commands. That run is kept, and a rerun with a
  wider allowlist is the one scored.
- **Adjudication:** by the live version of the same agent, which had read the key, with references to
  its own memory notes redacted. A bias check showed no favoritism, but it has little power.

It scored 0.720, the best of any route:

| Comparison | Estimate |
|---|---|
| Expert minus A | +0.023 |
| Expert minus K | +0.091 |
| Expert minus B | +0.152 |

The certified functions beat it on two questions. Both are layer remapping: mapping Lab 14's
pre-split Layer 0 onto 0A, and Lab 1's "Layer 1A · Storage" onto the current cell. There K went 3 of
3 and the expert 0 of 3. The records it wrote carry the old labels, and its own rulings on those
units followed the key, not its mapping.

## Update, November 28, 2026: Qlik's response

After publication, Qlik responded with a rebuild of this setup on the same tenant. Paraphrased
fairly, in five parts:

1. Qlik Answers runs on Claude Sonnet 5.5 on this tenant.
2. On the definition trap, Answers chose the governed measure and then grouped by the lab's
   join-vendor dimension, which isn't linked to the cells, so every vendor showed 27. On Qlik's
   copy, a plainer description on the vendor dimension, or a skill telling Answers to prefer master
   items and, when a breakdown shows the same value on every row, to treat that dimension as
   unlinked and switch it, fixed it.
3. An outside agent on Qlik's copy used the governed measure on every run of the trap. Qlik reads
   the low measure use in route B as depending on what else the agent can reach.
4. An Answers API reaches app data and records each tool step, so Answers can run headless in the
   same harness as the other routes. Qlik said it's private for now and expects to make it public
   within weeks.
5. The master item descriptions Qlik's AI rewrote should be restored before any rerun.

The lab's read:
- **Part 1 removes an unknown.** Every route answered with the same model, but the routes still
  differ in tools, descriptions and grading packets, so the cause of the gap between Answers and
  the outside agent isn't isolated.
- **Part 2 fits one of the four Answers runs on the trap,** the corpus assistant's. In the three
  plain Answers runs, Answers used the governed measure and the vendor dimension and named the
  right leader and the tie behind it. Those runs failed because they didn't give the 27-cell,
  18-vendor totals, which the ratified standard treats as support but a code check frozen first
  enforces, and because their restated rule left out "every component." The certified functions
  missed the same totals in two runs and stated the wrong rule, "at least one" component. The trap section's bullet for Answers is dated to this update.
- **Qlik's fixes were measured on Qlik's copy, not here,** and get no verdict.
- **Parts 3 and 5 are inputs to phase 2.** Part 4 is how phase 2 can measure Answers' path. A
  rerun on it will be disclosed as a pre-release venue.

The scores, the verdict and the finding stand as measured.

## Apparatus notes

Each item here is disclosed on the lab page, and the detail is here.

- **Guidance written after answers were visible.** Ruling 50 added adjudication guidance rules after
  answers had been read. Seven of its changes moved detail from required to support. One of those
  rules (R5) was set aside once, for a miscount ruled a slip.
- **The standards came from the records' author.** That relaxes the design's separation of the key
  from the code and model under test. The author's view is that the agent works under his oversight,
  as his own grading would. The decorrelation comes from outside that oversight: Gemini's key,
  codex's attack on the standards, and the code checks.
- **Matcher blind spots.** The code check matched count words case-sensitively and missed values
  glued to hyphenated prefixes. Adjudication corrected the 18 cases it caught. Code-only figures are
  deflated by the same blind spots.
- **False premises unseen by the raters.** That covers 20 of 75 key entries. An audit of all 79
  passing answers on the affected questions found none that accepted a false premise.
- **Code checks that bind support.** Some checks enforce values the ratified standards later moved
  to support, so those answers fail.
- **Parallel selections.** In 11 B runs, the agent issued Qlik selection calls in parallel within one
  turn, so their order was undefined. They're scored and reported, not corrected.
- **Condensed reasons.** Part of the agent's reasons in one ruling packet were condensed in
  transcription. The rulings themselves are verbatim.
- **No second human adjudicator.**
- **The Gemini second-consumer diagnostic didn't run.** It was planned on metered Vertex AI and
  waited on a cost pilot.

## What this hands phase 2

1. **Put the answer's last step in code.** No route in phase 1 made the certified logic the path, so
   phase 2 should, with code composing the answer or checking it against the certified result. Then
   measure both the answers and the path. The claim being tested is consistency: every agent takes
   the same path. Whether that path also lifts the answers is the open part.
2. **Grade advisory questions on their core judgment, not on one frozen synthesis.**
3. **Find the cause of the low measure use on Qlik.** One candidate is a presentation test: the same
   agent and measures, offered through the platform's own discovery against handed over directly.
   It isn't designed yet.
4. **Freeze the code checks after the standards, not before.**

## Disclosure

Self-funded editorial.
- **Qlik** is a content client of The CTO Advisor and provided the Qlik Cloud tenant used for
  testing. Qlik didn't review this lab for accuracy or editorial before publication.
- **Google Cloud** is a client. Google's Gemini wrote the answer key, was one of the two raters, and
  peer-reviewed the record.
- **Anthropic's Claude** answered on every route. An Anthropic model built the scorer and harness,
  ran the analysis under the author's direction, and drafted the record and the essay.
- **OpenAI's codex** built routes K and B and was the other rater.

No one at Qlik, Google, Anthropic or OpenAI reviewed this lab. No vendor paid for this answer.
