Skip to content

Hand off a Delphi workflow to empirical validation - #43

Merged
JUhalt merged 3 commits into
masterfrom
feat/delphi-handoff
Sep 20, 2026
Merged

JUhalt merged 3 commits into
masterfrom
feat/delphi-handoff

Conversation

@JUhalt

@JUhalt JUhalt commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Closes #42, the whole of the v0.6.0 milestone. Master moves to the development version 0.5.0.9000.

The gap this closes

content_handoff() refused a delphi_validity() fit, and its error message did not even mention Delphi. A Delphi study is item-level and ends with exactly the evidence the handoff exists to carry, so the refusal was wrong on the merits. The workaround — handing off the last round's fit — dropped what makes a Delphi a Delphi.

What a Delphi handoff carries

  • Each item travels with its own last round. A Delphi settles one item at a time: an item that reached consensus early was set aside before the final round. round now holds that round's index, so it varies within one handoff. Every other workflow writes a constant there, because one fit is one round.
  • round cannot be set by hand for a Delphi fit, since the fit supplies it. Passing it is an error rather than silently ignored.
  • Relevance evidence comes from the item's own last round, taken from that round's expert_validity() fit, so the intervals come with it: I-CVI against the consensus threshold, Aiken's V, and modified kappa.
  • Modified kappa carries no criterion here. A Delphi decides on the consensus threshold, not on the 0.74 rule that expert_validity() applies. Claiming that criterion would misreport which rule ran.
  • Stability travels as evidence, never as a carry decision: proportion unchanged plus the statistic that ran, named for its method. The chi-square methods add stability p_value against alpha.
  • No schema change. These are new values in existing columns, so a schema version 1 reader still reads the object.

Names, at the nomologR maintainers' request

They reviewed the new statistic values before anything was tagged (nomologR#46):

  • lambda became Goodman-Kruskal lambda. Inside a psychometrics package a bare lambda reads as a factor loading, or as one of Guttman's reliability coefficients, so a report printing it verbatim could mislead. The qualified name is also the more accurate one.
  • share unchanged became proportion unchanged, to match the field's vocabulary rather than finance's.
  • The remaining names were accepted as they stood.

They also asked for a documentation point that I have added: which statistics carry a criterion depends on the workflow, not on the statistic alone. A reader treating that list as absolute would conclude a Delphi handoff is malformed.

Tests

The full suite passes: 2,002 expectations, 0 failures. spelling is clean. New tests cover:

  • an item set aside in an earlier round carrying that round, while the rest carry the final one;
  • statistics and intervals drawn from each item's own round;
  • modified kappa carrying no criterion, and Scheibe's rule carrying its 15% cut-off;
  • each stability method's statistic name, including both kappa weightings and the qualified lambda;
  • the chi-square methods' stability p_value against alpha;
  • a study with no consensus threshold handing off descriptively;
  • round being refused, and provenance recording the method and citations.

A local R CMD check --as-cran was running when the two renames landed, so it covers the tree before them; CI covers the final state.

Closes #42.

🤖 Generated with Claude Code

JUhalt and others added 3 commits September 20, 2026 09:49
content_handoff() now accepts a delphi_validity() fit. A Delphi settles
one item at a time, so each item travels with the evidence of its own
last round, and `round` holds that round's index rather than a constant.
It is the first workflow where that field carries real information, and
it cannot be set by hand for a Delphi fit.

Relevance evidence comes from the item's last round with intervals.
Stability travels beside the decision as proportion unchanged plus the
statistic that ran, and never decides what is carried. Modified kappa
carries no criterion here, because a Delphi decides on the consensus
threshold rather than the 0.74 rule.

Statistic names are qualified at the nomologR maintainers' request, so a
downstream report cannot read "lambda" as a factor loading (nomologR#46).

Closes #42.

Co-Authored-By: Claude Opus 5 <[email protected]>
CRAN now serves macOS binaries as zstd archives. The stable pak cannot
extract them, so every macOS job failed in setup-r-dependencies with
"Cannot extract knitr_1.52.tgz, unknown archive type", before the
package was built. Clearing the runner cache did not help: a freshly
downloaded file has zstd magic bytes (28 b5 2f fd) rather than gzip's.

The development pak handles zstd. Scoped to macOS, and to be dropped
once the stable pak does too.

Co-Authored-By: Claude Opus 5 <[email protected]>
CRAN's macOS builder now compresses .tgz binaries with zstd, which
pkgdepends cannot extract, so every macOS job failed during dependency
installation with "unknown archive type" (r-lib/pkgdepends#485, filed
today with the same symptom). The development pak does not help, so that
attempt is reverted.

use-public-rspm: always makes macOS take gzip binaries from Posit
Package Manager instead. This is the pkgdepends maintainer's suggested
workaround on that issue. Revert to "true" once CRAN's archives can be
extracted again.

Co-Authored-By: Claude Opus 5 <[email protected]>
@JUhalt
JUhalt merged commit 91b8b58 into master Sep 20, 2026
8 checks passed
@JUhalt
JUhalt deleted the feat/delphi-handoff branch November 16, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hand off a Delphi workflow to empirical validation

1 participant