QSF Audit Agent Guide

Page views

A systematic protocol for auditing Qualtrics QSF files for survey logic, randomization, validation, embedded data, wording, and export compatibility.

The audit is read-only by default. It preserves the source QSF, reconstructs the active survey, separates confirmed defects from design ambiguities, and identifies the preview and export tests still required before fielding.

Audit a QSF Locally

Private, Browser-Only Quick Audit

Drop a QSF file to generate a structural audit report

This quick audit runs entirely in your browser. It does not upload, transmit, or store your QSF file.

Private by design
Drag and drop a .qsf file here or select a file from your device (maximum 20 MB)
Your QSF remains private. The file is processed in browser memory for this session. No file contents are sent to Yusaku Horiuchi, GitHub Pages, an AI provider, analytics, or another server. The report is created locally and downloaded directly to your device.

What this tool can and cannot do: The Quick Audit detects structural patterns visible in the QSF. It cannot determine every research-design intention or prove that Qualtrics, a panel platform, custom JavaScript, or an exported dataset will behave correctly. Use Copy Agent Instructions for a deeper audit and complete the generated pre-fielding checklist.

Required for a deep audit: provide both the draft pre-analysis plan and the QSF

The draft pre-analysis plan states the intended research design; the QSF implements it. An agent needs both files to determine whether eligibility rules, treatments, randomization, outcomes, checks, exclusions, embedded data, and analysis variables are implemented as planned.

Ask the agent to produce a plan-to-QSF concordance table and flag every mismatch, omission, or unresolved design choice. If no draft plan exists, the agent should say that substantive design alignment could not be verified.

Privacy: Do not place the draft plan in the browser-only Quick Audit. Provide it privately to the agent you choose for the deeper review.

How to Use This Guide

  1. For an immediate private structural check, drag the .qsf file into Private, Browser-Only Quick Audit and download the report.
  2. For a deeper review, click Copy Agent Instructions and paste the instructions into the agent that will audit the survey.
  3. Give the agent both the current .qsf file and the current draft pre-analysis plan. Include any prior QSF or audit report.
  4. Specify eligibility, validation, randomization, panel redirect, and export requirements that are not yet documented in the draft plan.
  5. Require a plan-to-QSF concordance table, a detailed audit report, and preservation of the original QSF.

What the Agent Must Do

  • Parse and checksum the source QSF without altering it.
  • Reconstruct the active Survey Flow and trace cross-references.
  • Audit validation, branches, termination, randomizers, piping, wording, and exports.
  • Cite element, block, question, field, and export-tag identifiers.
  • Separate confirmed defects from risks and intent-dependent choices.
  • Return a complete audit report and pre-fielding checklist.

What the Agent Must Avoid

  • Treating valid JSON as proof that the survey works.
  • Overwriting the source QSF.
  • Guessing the researcher’s design policy.
  • Ignoring inactive, unreachable, or conflicting flow elements.
  • Exposing confidential survey content or panel codes.
  • Declaring field readiness without preview and test-export checks.

Core Workflow

  1. Preserve and inventory. Record the source path, file metadata, and SHA-256 checksum; parse the JSON; inventory survey elements; and keep the audit read-only.
  2. Reconstruct the active survey. Begin with the Survey Flow, recursively trace referenced blocks and questions, and separate active content from Trash, unused, unreferenced, or unreachable material.
  3. Trace routing and termination. Evaluate branch conditions, embedded-data assignments, consent and eligibility failures, attention checks, quotas, End Survey elements, redirects, and conflicting platform settings.
  4. Audit validation and randomization. Compare Force Response, Request Response, optional-item policy, custom validation, subset sizes, choice randomization, and treatment-recording fields with the intended design.
  5. Audit content and piping. Verify every embedded field and piped value, then inspect wording, choices, grammar, spacing, HTML, and editor residue under all relevant conditions.
  6. Protect exported data. Check export tags, recodes, embedded data, treatment indicators, and question structure for duplicate names, ambiguous values, and downstream incompatibilities.
  7. Classify evidence. Assign severity separately from status, distinguish confirmed defects from risks and ambiguities, and name the runtime checks that static QSF inspection cannot complete.
  8. Report and verify. Produce a detailed audit report, prioritize repairs, and give the researcher a route-by-route, mobile, randomization, and test-export checklist.

Audit Coverage

The agent should inspect the QSF as a connected survey program rather than a list of questions.

Area Minimum checks
File integrity JSON parsing, QSF metadata, checksum, element inventory, duplicate or missing IDs
Active structure Survey Flow, blocks, questions, unreachable content, broken cross-references
Routing Branch conditions, consent, eligibility, attention checks, quotas, termination, redirects
Randomization Eligible children, subset size, order, treatment assignment, exported indicators
Validation Force Response, Request Response, optional items, custom rules, hidden required questions
Embedded data Definition, assignment, case and spelling, branch tests, piping, quotas, scoring
Respondent content Wording, choices, grammar, formatting, HTML residue, mobile risks
Export compatibility Export tags, recodes, text-entry columns, treatment fields, analysis continuity
Operations Survey Options, anonymization, partial completion, panel integrations, external resources

Evidence and Classification

Use severity and status as separate dimensions.

Severity

Finding status

Do not turn an unknown design choice into a defect. For example, whether an attention check should be forced or optional depends on the researcher’s policy; inconsistency can be reported even when the intended setting is unknown.

Checks That Matter Especially

Verification Beyond the QSF

Static inspection is necessary but not sufficient. Before fielding, preview and test:

  1. Every consent, eligibility, attention-check, quota, screen-out, and completion route.
  2. Pass, fail, blank, and unexpected-value cases.
  3. Every randomized condition and materially different piped-text combination.
  4. Desktop and mobile layouts.
  5. Panel redirects, messages, recording behavior, and status codes.
  6. A synthetic test-response export, including column names, recodes, embedded data, treatment indicators, text entries, and missing values.
  7. The exact repaired QSF exported as the fielding candidate.

Plan-to-QSF Concordance

A deep audit should begin with the current draft pre-analysis plan and compare it directly with the QSF. At minimum, the agent should map:

The report should classify each item as aligned, partly aligned, not aligned, not implemented, not specified in the plan, or not verifiable from the QSF.

Report Structure

Every audit should produce a detailed Markdown report. If the environment supports polished document generation, the agent may also create a PDF from the same source.

The report should include: