{
  "protocol": "DIRECTION_D9_WHERE_JUDGEMENT_ADDS_001",
  "version": "1.0.0",
  "status": "proposed; frozen on merge to risk.neverthought.org. Any change is a new version, recorded in amendments, and data or cases produced under one version are never analysed under another.",
  "direction": "D9 · Where judgement adds warrant: an agent against fixed procedures, and whether it knows",
  "governing_question": "Where does an agent's judgement add warrant that a fixed procedure cannot, and does the agent's stated confidence tell it how sure to be?",
  "warrant": {
    "grounds": [
      "D7 measured a reconstructor's whole ranking and found that a fixed statistic, a Mantel-Haenszel risk difference stratified on the other field, ranked slightly better (mean average precision 0.950 against 0.938; H3 falsified). On worlds whose structure that statistic models correctly, the agent's ranking added nothing.",
      "In the same run every one of the agent's commitments was a real path, and its own probabilities were conservative: at even odds it would have committed 29 pairs, all real, against the 15 it did (post-hoc, descriptive). Calibration was not graded.",
      "Two other lines in the programme point the same way: an ensemble's dispersion reduced largely to surface cues (the Tinker harness decision memo), and an interface-derived reduction found no common kernel beyond an ordering and float floor.",
      "D7's reconstructor flagged effects that rose only when both fields changed and declined them. In the sealed specs those were ordinary single-field paths made to look joint by collinear fields, so this was a missed attribution, not evidence that judgement finds such structure. Whether an agent handles structures that genuinely need both fields, or whose signal lies in timing, is untested."
    ],
    "gap": "There is no test of an agent's ranking against fixed procedures on structures a frequency statistic models badly, against a fixed procedure a statistician would write without knowing which structures were planted, or of whether the agent's stated probabilities are calibrated.",
    "why_now": "D7's run order, sealing and grading exist and reproduce exactly; D9 adds one engine version and a design pilot. A null here, an agent that cannot beat a stratum-blind formula even on planted structures, would be as useful as a positive."
  },
  "unit": {
    "scored_pair": "One (world, source, effect) pair in a world's candidate universe, where source is one of the world's two fields or BOTH (the two changing together), with the reconstructor's stated probability and whether it committed to it.",
    "omitted_path": "One path present in a world's sealed ground-truth model and absent from its declared class, labelled with its stratum: simple, interaction or timing."
  },
  "materials": {
    "engine": "research/direction/d9/engine.py, version 3, committed with this protocol and containing no ground truth: D1 version 2's engine with three changes only. The trace count is a parameter; a path whose source is BOTH fires only when both fields changed; a path marked timing has its caused events at its own short delay and its spontaneous events uniform over the 7-day window. It reproduces version 2 exactly on all 24 published D1 version 2 and D7 worlds.",
    "design_pilot": "research/direction/d9/design/pilot.py and pilot_results.json, committed with this protocol: a simulation on a public seed (20261024) of the fixed procedures only, never an agent, over a fixed grid of three difficulty knobs, with a fixed selection rule. Rule v1 chose a point where a timing stratum at its ceiling hid behind a weak interaction stratum; rule v2, added after rule v1 ran and before any study world or agent, applies the band to each stratum separately. Both choices are recorded. Rule v2 chose 200 traces, interaction path probability 0.4 to 0.9 and timing path probability 0.08 to 0.2, where the stratum-blind fixed procedure averaged AP 0.90 on simple, 0.86 on interaction and 0.83 on timing paths.",
    "worlds": "16 synthetic worlds, four in each of the site's four fixture domain templates, 200 traces each, with D1 version 2's field model and D7's opaque per-world names.",
    "frozen_ranges": "Per world: 2 to 4 simple omitted paths (single field, probability 0.15 to 0.9, background rate 0.05 to 0.25, mean delay 24 to 240 hours, one of them producing a declared effect from the other field); exactly 2 interaction paths (source BOTH, probability 0.4 to 0.9, background rate 0.05 to 0.25, mean delay 24 to 240 hours); exactly 2 timing paths (single field, probability 0.08 to 0.2, background rate 0.20 to 0.35, mean caused delay 2 to 12 hours); exactly 2 downstream-only paths made rankable by background events, and 2 pure background events, as in D7. Each omitted path has its own new effect, except the shared one. No other parameter may be set after this protocol is merged.",
    "candidate_universe": "Per world: every pair of a source in {first field, second field, BOTH} and an effect seen in the declared class or traces, minus the declared paths. Computed by a committed script from the public inputs alone and given to the reconstructor.",
    "fixed_procedures": {
      "P_d7": "The statistic that won D7, with a fair arm for BOTH: for a single field, the Mantel-Haenszel risk difference of the effect occurring within the week, stratified on the other field; for BOTH, the interaction contrast (p11 - p10) - (p01 - p00) of the effect occurring within the week, where pXY is the share of traces with the effect among those with the first field changed (X) and the second changed (Y).",
      "P_blind": "A stratum-blind combined procedure, the opponent for H1 and H2: a statistician's formula written without knowing which structures were planted. For a single field, the larger of two standardised scores, the week risk difference and the 24-hour risk difference (both Mantel-Haenszel, stratified on the other field), each divided by sqrt(max(q(1-q), 0.01) x (1/n1 + 1/n0)), where q is the effect's overall share and n1, n0 the traces with and without the field changed. For BOTH, the interaction contrast divided by sqrt(sum over the four cells of max(p(1-p), 0.01) / max(n, 1)).",
      "P_stratum_selected": "Reported descriptively only: per stratum, the arm designed for it (P_d7 for simple and interaction paths, the 24-hour risk difference for timing paths). It is chosen with knowledge of each path's stratum, which no real procedure has, and scores each stratum with a different ranking, which the agent cannot. It is a bound, not an opponent.",
      "common_rules": "Twenty-four hours and the week are measured from the crossing at t = 0 in every trace, and every trace from T000 to T199 is counted, including traces with no rows. Every ranking's ties are broken pessimistically."
    },
    "sealing": "As D7: SHA-256 of every ground-truth file, the generator and its attempt log, and an AES-256 encrypted bundle, committed before the reconstructor is engaged; the key is never written to disk; plaintext deleted from the workspace until the reveal; every step pushed before the next."
  },
  "roles": {
    "world_author": "Writes the generator, universe script, the fixed procedures, the grader extension and the analysis script, commits them with self-tests on pilot worlds, then generates and seals the study worlds. Never sees the ranking before the reveal.",
    "reconstructor": "A fresh agent session, never used in D1, D7 or any self-test, receiving only the declared worlds, traces and candidate universes in an isolated folder, under a written rule to read nothing else and not use the web. It is not told how the worlds were made or what the fixed procedures are; the BOTH rows in its universe reveal that joint effects may exist, and that is disclosed here. Every file read and command run is logged; the log is self-reported.",
    "grader": "Runs D1's matching rule, extended to BOTH as a source (a candidate matches when its source and effect equal an omitted path's; the same effect from another source is PARTIAL), and the committed analysis script once. Is not the reconstructor.",
    "declared_limit": "World author, grader and operator are the same party; the reconstructor is a separate session from the same model family as D7's. That is separation of access, not independence, and the result describes that family."
  },
  "procedure": [
    "Commit this protocol with engine v3 and the design pilot. After merge, commit the generator, universe script, fixed procedures, grader extension and analysis script, each with a self-test on pilot worlds and a worked example, and the bootstrap seed. No threshold or parameter is chosen from the self-tests.",
    "Generate the 16 worlds once under the frozen ranges, and commit the declared worlds, traces, candidate universes and the seal. Push.",
    "Run the fixed procedures once and commit their scores. Push.",
    "Give the reconstructor the declared worlds, traces and universes, and the brief: give every pair a probability in [0, 1] that it is a consequence path the declared class leaves out; commit the pairs it would propose, which must be the top of its own ranking in each world; write its method before seeing final numbers; label each committed candidate. Commit its full ranking, method and log. Push.",
    "Record committed candidates as reconstructed observations under observation input v1, as D1 and D7 did; structure stays untested before the reveal. Push.",
    "Reveal: decrypt, check every hash against the seal, regenerate the traces from the revealed worlds, commit the plaintext and publish the key. Push.",
    "Grade every scored pair and run the analysis script once. No rerun after the reveal."
  ],
  "definitions": {
    "probability": "The reconstructor's stated probability for each pair, which must lie in [0, 1]. A value outside is clipped to [0, 1] and counted as a defect; a universe pair missing from the ranking gets 0 and is counted.",
    "positive": "A scored pair matching a trace-visible omitted path, labelled with that path's stratum.",
    "negative": "Any scored pair that matches no omitted path and is not PARTIAL.",
    "excluded_from_ranking_measures": "PARTIAL pairs (the same effect from another source) and downstream-only matches count on neither side of any ranking measure.",
    "stratum_ap": "For a ranking and a stratum, per world: average precision over that stratum's positives and all negatives, other strata's positives removed, ties broken pessimistically; summarised as the mean over the 16 worlds (every world has positives in every stratum by construction, so the same worlds enter every comparison).",
    "misspecified_ap": "The mean of the interaction and timing stratum APs.",
    "advantage": "The agent's AP minus a fixed procedure's AP, per world, then averaged.",
    "calibration_gap": "Over positives, negatives and PARTIAL pairs, with PARTIAL pairs' target 0 because they are not consequence paths of their source (downstream-only pairs are left out): among pairs the agent stated at 0.5 or more, the share that are positives minus the mean stated probability. Positive means under-confident, negative over-confident.",
    "bootstrap": "Percentile intervals from 2,000 resamples of worlds within domain (four per domain), seed committed with the analysis script."
  },
  "hypotheses": {
    "H1": {
      "statement": "On structures a frequency statistic models badly, the agent ranks better than a statistician's stratum-blind formula.",
      "measure": "The agent's advantage over P_blind on misspecified paths, with a bootstrap 95% interval. P_d7 and P_stratum_selected reported beside it.",
      "success": "Lower bound above 0.",
      "falsifier": "Upper bound below 0: a stratum-blind fixed formula ranks the planted structures better than the agent's judgement, so on these worlds judgement adds nothing a formula does not. An interval containing 0 is reported as no advantage shown.",
      "undecidable_if": "Fewer than 20 positives in any stratum; the frozen ranges require 32 interaction, 32 timing and at least 32 simple positives, so this would be reported as a generator defect."
    },
    "H2": {
      "statement": "Whatever the agent adds is concentrated where structure is unusual: its advantage over P_blind is larger on misspecified paths than on simple paths.",
      "measure": "The agent's advantage over P_blind on misspecified paths minus its advantage on simple paths, per world, with a bootstrap 95% interval.",
      "success": "Lower bound above 0.05.",
      "falsifier": "Upper bound below 0: the agent gains no more on unusual structure than on simple structure, so its ranking does not track what the formula misses. Otherwise inconclusive."
    },
    "H3": {
      "statement": "The agent knows how sure to be: among pairs it calls more likely than not, the share that are real matches its stated confidence.",
      "measure": "Calibration gap with a bootstrap 95% interval; calibration in the large per stratum reported beside it. The pilot's calibrated reference scorer had a gap of -0.04 and an interval about 0.10 wide.",
      "success": "Interval within -0.15 to 0.15.",
      "falsifier": "Interval entirely above 0.10 (under-confident, as D7's post-hoc table suggested) or entirely below -0.10 (over-confident): the agent's confidence cannot serve as a setting without recalibration, and the direction is reported. Otherwise inconclusive."
    },
    "H4": {
      "statement": "Integrity check, not a finding: nothing in the traces or the universe leaks downstream-only paths.",
      "measure": "Rank AUC of downstream-only pairs against pairs of a source and a pure background event, for the agent and P_blind, with 90% bootstrap intervals.",
      "success": "Both intervals lie within 0.35 to 0.65.",
      "falsifier": "Either interval's lower bound exceeds 0.65: the inputs leak ground truth, and every other result of this run is withdrawn until the leak is found and a new version is run."
    }
  },
  "analysis": {
    "intervals": "Bootstrap as defined. No pooling with D1 or D7.",
    "knows_where": "Descriptive: the agent's mean stated probability on positives of each stratum beside its AP in that stratum, to show whether its confidence was lower where it ranked worse. Three strata cannot support a claim.",
    "curves": "D7's pooled 21-point curve for the agent and each fixed procedure, overall and per stratum, with the agent's committed operating point.",
    "by_domain": "Every measure per domain template, descriptively. No per-domain claim.",
    "missing": "A world whose ranking was not committed before the reveal is excluded and listed."
  },
  "stopping": "One run with one reconstructor. The study ends when the analysis is published. Other model families, or other world designs, need a new version with new worlds.",
  "licenses": {
    "H1 succeeds": {
      "licensed": "Saying that on these worlds this agent ranked planted structures a frequency statistic models badly better than a stratum-blind fixed formula, and naming the strata where it did.",
      "not": "That agents beat formulas in real systems, that other model families would, that it beats a procedure chosen with knowledge of the structures, or that its judgement is reliable where nothing was planted."
    },
    "H1 falsified": {
      "licensed": "Saying that here a stratum-blind fixed formula ranked better than the agent, and that the site's position on agent judgement must rest on stopping, labelling and anchoring rather than ranking.",
      "not": "That agent judgement adds nothing anywhere, or on structures not planted here."
    },
    "H3 falsified": {
      "licensed": "Saying the agent's confidence needs recalibration before it can serve as a setting, and in which direction.",
      "not": "That it cannot be recalibrated, or that other families are miscalibrated the same way."
    },
    "H4 holds": {
      "licensed": "That this run's inputs did not leak downstream-only paths.",
      "not": "Anything about omissions outside a traced system in real systems."
    }
  },
  "threats": [
    "The world author designed the strata, the fixed procedures, the pilot and the agent's task, and knows what agents tend to do; the pilot fixes difficulty from the fixed procedures alone, which limits but does not remove that influence.",
    "The pilot's selection rule was changed once (v1 to v2) after it ran on simulated worlds and before any study world or agent existed; both choices are published.",
    "P_blind is one reasonable stratum-blind formula, not the best possible one; a cleverer fixed procedure could close any gap the agent shows.",
    "The agent sees raw timestamps and the BOTH rows, and can compute interaction contrasts and short-window rates itself; a positive result may mean it applied a known statistic rather than judgement of another kind. Its method file is the record of which.",
    "This protocol is public once merged and states the frozen ranges; the reconstructor works in an isolated folder under a rule not to read anything else or use the web, but its log is self-reported.",
    "One reconstructor from the same model family as D7's; results describe it, not agents in general.",
    "Engine v3 adds two mechanisms the author chose; real systems have others (chains, thresholds, feedback) not tested here.",
    "Sixteen worlds give few clusters; bootstrap intervals are approximate.",
    "Thresholds (0 and 0.05 for H1 and H2; -0.15 to 0.15 and 0.10 for H3; 0.35 to 0.65 for H4) were set before any study data, the H3 band from the pilot's calibrated reference.",
    "Same operator for worlds, procedures and grading: separation of access only."
  ],
  "data_boundary": [
    "Public synthetic fixtures only.",
    "No private workspace evidence, exports, enquiries or human-review records are used.",
    "Every input, sealed file, ranking, reveal and result is committed to a repository with its SHA-256 before it is used."
  ],
  "dependencies": [
    "Engine v3 and the design pilot, committed with this protocol.",
    "Generator, universe script, the fixed procedures, the grader extension and the analysis script, each with a self-test on pilot worlds that also checks every trace from T000 to T199 is counted, committed before any study world is generated.",
    "A fresh reconstructor session, never used in D1, D7 or any self-test."
  ],
  "amendments": [],
  "label": {
    "is": "A preregistered, synthetic test of whether an agent's judgement ranks planted structures a frequency statistic models badly better than a stratum-blind fixed formula, whether its advantage is concentrated there, and whether its stated confidence is calibrated.",
    "isnt": "Evidence about agents in real systems or other model families, a contest against a procedure that knows the structures, proof that agent judgement adds nothing where it fails here, or an independent study.",
    "stops": "At one reconstructor, sixteen worlds and two planted mechanisms from one author's design, at a difficulty set by a pilot of fixed procedures. Whatever it shows about judgement belongs to those structures and that agent."
  },
  "run_order": 9
}
