Native Artifact Bundles

Native artifact bundles are collections of files uploaded to the workbench for Android or iOS accessibility audits. Each bundle is validated before the audit can start.

Artifact Types

Artifact types by platform
Type Android iOS Description
view_hierarchyYesYesXML dump of the view tree with accessibility properties
espresso_outputYesNoEspresso accessibility test results (XML)
lint_outputYesNoAndroid Lint accessibility check output (XML)
xctest_outputNoYesXCTest accessibility test results
source_fileYesYesKotlin/Swift source files for static analysis
screenshotYesYesScreenshots for visual context (metadata only, not analyzed programmatically)

Audit Modes

Each audit mode has different artifact requirements.

source_only

Requires: at least one source_file. Runs tree-sitter parsing against source files to detect accessibility patterns. No runtime artifacts needed.

artifact_only

Requires: at least one view_hierarchy. Analyzes runtime artifacts without source code. Additional test and lint artifacts improve confidence but are not required.

hybrid

Requires: at least one source_file and at least one view_hierarchy. Combines source analysis with runtime artifact analysis. Produces the highest confidence findings.

manual_assist

Requires: no minimum. Accepts any combination of artifacts. Designed for expert-guided review where the consultant decides what to upload.

Upload Limits

Upload size and count limits
Limit Value
Maximum file size50 MB per file
Maximum bundle size200 MB total
Maximum file count50 files per bundle

Validation Checks

Validation runs when you explicitly validate the bundle and again when starting a run. Checks are evaluated in order:

  1. Total bundle size does not exceed 200 MB.
  2. File count does not exceed 50.
  3. No individual file exceeds 50 MB.
  4. All artifact types are allowed for the selected platform.
  5. Required artifact types for the audit mode are present.
  6. Bundle is not empty (except in manual_assist mode).
  7. Bundle is not screenshots-only for artifact_only mode.

Confidence Notes

The validator attaches confidence notes based on what was uploaded:

Confidence notes by bundle contents
Bundle Contents Note
View hierarchy onlyLimited to view hierarchy analysis only
View hierarchy + test/lint outputNo note (good coverage)
Screenshots onlyScreenshots provide visual context but cannot be analyzed programmatically

Checksum and Storage

Each uploaded file receives a SHA-256 checksum computed server-side. File names are sanitized to alphanumeric characters, dots, hyphens, and underscores. Artifacts are stored under the run directory:

~/.a11ysmith/runs/<run_id>/artifacts/

Error Codes

Artifact-related error codes
Code Meaning Recoverable
ARTIFACT_VALIDATION_FAILEDBundle fails pre-flight validationYes -- fix the bundle and retry
ARTIFACT_PARSE_FAILEDParser cannot read the artifact contentDepends on the file

Reassessment Behavior

When a native artifact assessment is reassessed, the new draft copies the original configuration but clears the artifact bundle. You must upload fresh artifacts for the new assessment. See Reassess and Compare for details.