Rule catalogue
101 named checks
You never run a check. Problems show up as you type, many with the fix beside them, and Collar shows only the ones that fire, from the moment your data is imported.
Legend
Every finding comes with what it means and what to do. Nine groups, in the order the data arrives. Each rule has its own page: what it checks, why it matters, what to do, and every parameter, the same text as Help in the app.
Blocker findings are fixed before the export, many in one click, or a named person makes the call, with their reason in the validation report. Warning can be acknowledged with a reason. Info never blocks.
Collar
18 rules · 5 blockers · 12 warnings · 1 infoHole ids, coordinate sets and datums, EOH, dates, wedges and precollars, hole type, and distance from the planned position.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R1 | Blocker | Duplicate hole id | Looks for two or more collar rows with the same hole_id, compared without case, so MRN045 and mrn045 count as one hole. |
| R2 | Warning | Near-duplicate hole ids | Compares the collar hole ids and reports pairs that differ only by spacing or zero padding, such as MRN045, MRN 045 and MRN45. |
| R3 | Blocker | Preferred coordinates missing or invalid | Each hole with a collar row must have exactly one coordinate set marked preferred in collar_coord, with a valid easting, northing and RL. |
| R4 | Blocker | EOH missing or not positive | Every collar whose status is not planned must have an eoh_depth greater than zero. |
| R5 | Warning | Duplicate collar location | Compares the preferred collar positions of all holes that share a CRS and reports any two collared closer than the set distance. |
| R6 | Warning | Easting and northing swapped | Groups preferred coordinate sets by CRS and flags a set whose easting and northing fit the project far better swapped, judged against the median collar position. |
| R7 | Warning | Collar outside its CRS zone | Tests each hole's preferred coordinate set against the bounds of its CRS, such as the easting range and longitudes of an MGA or UTM zone. |
| R8 | Warning | RL disagrees with the DEM | When a DEM is loaded, compares each hole's preferred RL with the ground surface from the DEM at the collar position and reports a difference larger than the tolerance. |
| R9 | Warning | Coordinate sets disagree | For each hole, compares every non-planned coordinate set with the preferred set after transforming it into the preferred set's CRS. |
| R10 | Warning | Mixed datums suspected | Pairs each hole's preferred set with its sets from other methods and looks at the offsets, one method pair at a time. |
| R11 | Warning | Collar far from its planned position | For each hole whose preferred set is not the planned one, measures the horizontal distance from the planned coordinate set to the preferred set. |
| R12 | Info | Hole short of planned depth without a reason | Reports a drilled hole (status neither planned nor in_progress: a hole still being drilled is short of plan until it stops) whose EOH is shallower than its planned depth and whose abandon_reason is empty. |
| R13 | Warning | Completed hole with only planned or handheld coordinates | Reports a hole with status completed whose coordinate sets all use a poor method, planned or handheld by default. |
| R14 | Warning | Collar dates wrong | Looks at date_started and date_completed on each collar. |
| R15 | Blocker | Wedge geometry wrong | For each wedge (a collar with a parent_hole_id), reports a parent that is not in the collar table, a kickoff_depth below the parent's EOH, and a daughter EOH shallower than its own kickoff depth. |
| R16 | Blocker | Precollar or casing deeper than EOH | Reports a collar whose precollar_depth or casing_depth is deeper than its eoh_depth. |
| R17 | Warning | Hole type not in list | Reports a collar whose hole_type is empty or is not a code in the project's hole_type list. |
| R18 | Warning | Planned hole with downhole data | Reports a collar whose status is planned but which has rows in any downhole table, such as lithology, samples or survey. |
Survey
15 rules · 6 blockers · 8 warnings · 1 infoStations for each hole: depths, dip and azimuth, mixed dip signs, doglegs, magnetic readings and the preferred run.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R20 | Blocker | Survey for a hole not in the collar | Reports survey_run and survey rows whose hole_id is not in the collar table, and survey stations whose run_id is not one of that hole's runs in survey_run. |
| R21 | Blocker | Duplicate station depth in a run | Within each survey run, reports a second accepted station at the same depth as another accepted station. |
| R22 | Blocker | Station depth outside the hole | Reports any station with a negative depth, and any station deeper than the hole's EOH. |
| R23 | Blocker | Station without dip or azimuth | Reports an accepted station whose dip is empty, or whose azimuth is empty in both azimuth_raw and azimuth_grid. |
| R24 | Blocker | Dip or azimuth out of range | Reports a dip outside −90 to 90 and an azimuth (raw or grid) outside 0 to 360, with 360 read as 0. |
| R25 | Blocker | Mixed dip signs | Looks at the sign of accepted dips across the survey table. |
| R26 | Warning | Dogleg: curvature too high | Within each run, measures the change of direction between consecutive accepted stations, scaled to degrees per 10 m, and reports a step above the limit. |
| R27 | Warning | Azimuth flips by 180° | Within each run, reports a change of azimuth between consecutive accepted stations that is close to 180°, within the tolerance either side. |
| R28 | Warning | Magnetic shot inside casing | In runs with a magnetic azimuth reference, reports accepted stations shallower than the hole's casing_depth, or the default casing depth when the collar has none. |
| R29 | Warning | Magnetic readings disagree with the model | For accepted stations that record total field, magnetic dip or gravity, compares each value with the bundled geomagnetic model at the hole's position and the run date. |
| R30 | Warning | Completed hole without a survey | Reports a hole with status completed and EOH deeper than the minimum depth that has no survey run with at least one accepted station with depth, dip and azimuth. |
| R31 | Info | No depth-0 station | Looks at the run Collar uses for desurvey (the preferred run, or the fallback). |
| R32 | Warning | Collar orientation disagrees with the first station | Compares the collar's recorded collar_azimuth and collar_dip with the first accepted station of the run used for desurvey, as one angle between the two directions. |
| R33 | Warning | Survey date outside the geomagnetic model | For each survey run with a magnetic reference and a date, reports a date outside the validity period of the bundled geomagnetic model. |
| R34 | Warning | No single preferred survey run | For each hole with survey runs, reports when no run is marked preferred or when more than one is. |
Intervals
15 rules · 6 blockers · 9 warnings · 0 infoLithology, alteration and other from–to tables: gaps, overlaps, depths past EOH, codes off the list and empty required values.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R40 | Blocker | Rows for a hole not in the collar | Reports downhole rows, in any table except the collar and survey tables, whose hole_id has no collar row. |
| R41 | Blocker | From after to | In every interval table, reports an interval whose from is deeper than its to. |
| R42 | Blocker | Negative depth | In every interval and point table except the survey (R22 covers it), reports a from depth or point depth below zero. |
| R43 | Blocker | Deeper than EOH | In every interval and point table except the survey, reports a row whose to (or point depth) is deeper than the collar's EOH plus the tolerance. |
| R44 | Blocker | Overlapping intervals | In interval tables whose policy forbids overlaps (lithology, regolith, core runs and others), reports an interval that overlaps the one before it. |
| R45 | Warning | Gap between intervals | In interval tables whose policy warns on gaps, such as lithology and drill method, reports a gap between consecutive intervals larger than the threshold. |
| R46 | Warning | First interval does not start at 0 | In interval tables whose policy expects cover from the collar, reports a hole whose first interval starts below 0. |
| R47 | Warning | Zero-length interval | In every interval table, reports an interval whose from equals its to. |
| R48 | Warning | Interval length outside the table's limits | In each interval table except the sample table (R83), reports an interval shorter or longer than the believable length the table declares, such as 0.01 to 200 m for lithology and 0.1 to 6 m for core runs. |
| R49 | Warning | Code not in list | Reports a value in a list-coded column of any hole table that is not a code in that column's list. |
| R50 | Warning | Required value empty | In every interval and point table, reports an empty cell in a column the table declares required, such as lith1 in lithology or method in drill method. |
| R51 | Warning | Lithology percentages do not add to 100 | In the lithology table, when both lith1_pct and lith2_pct are filled, reports a row whose sum differs from 100 by more than the tolerance. |
| R52 | Warning | Secondary logging inconsistent | In the lithology table, reports a row whose lith2 equals its lith1, and a row with colour2 filled but colour1 empty. |
| R53 | Blocker | Wedge interval above its kickoff | For wedge daughters (holes with a parent and a kickoff_depth), reports an interval in any interval table whose from is shallower than the kickoff. |
| R54 | Warning | Drill method does not change at the precollar | For holes of the precollared types, reports a hole with no drill_method intervals, gaps in drill_method, a missing precollar_depth, or no change of method at the precollar depth within the tolerance. |
Core runs
8 rules · 1 blockers · 7 warnings · 0 infoCore runs: contiguity, recovery, RQD, SCR and TCR, core size down the hole, and structure orientations.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R55 | Warning | Core runs not contiguous | In the core_run table, reports a gap between consecutive runs larger than the threshold. |
| R56 | Warning | Recovered more than drilled | In core_run, reports a run whose recovered_length is more than the run length times the ratio. |
| R57 | Warning | RQD, SCR and TCR out of order | In core_run, reports a run that breaks 0 ≤ RQD ≤ SCR ≤ TCR ≤ 100, using whichever of the three values are filled. |
| R58 | Warning | Recovered plus loss is not the run length | In core_run, where both recovered_length and core_loss are filled, reports a run whose sum differs from the run length by more than the tolerance. |
| R59 | Warning | Core size steps up down the hole | In drill_method, follows the diameter down each hole and reports an interval whose core size is larger than the size above it in the size order. |
| R60 | Warning | Core runs above the precollar | For holes of the precollared types that have a precollar_depth, reports core runs that start above it. |
| R61 | Blocker | Alpha or beta out of range | In the structure table, reports an alpha outside 0 to 90°, a beta outside 0 to 360°, or either value that is not a number. |
| R62 | Warning | Structure with unacceptable orientation quality | In the structure table, reports a measurement whose ori_quality is one of the unacceptable codes. |
Samples
14 rules · 5 blockers · 6 warnings · 3 infoSample ids, QC inserts and duplicates, composites and re-splits, weights, insertion rates and sample books.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R70 | Blocker | Duplicate sample id | Reports every sample register row after the first that shares a sample_id with another row, compared without case. |
| R71 | Blocker | Duplicate without a valid parent | For register rows whose qc_type is a duplicate type, reports a parent_sample_id that is empty or not in the register, a parent in another hole, or a duplicate whose from and to differ from its parent's. |
| R72 | Blocker | Standard or blank set up wrongly | For standards (crm and standard_inhouse), reports a missing crm_code or a code not in the CRM library, as a blocker. |
| R73 | Info | Sample status and results disagree | Reports a sample marked assayed that has no results, and a sample with results whose status is neither assayed nor void. |
| R74 | Warning | Composite off the sampling scheme | For assay-stream composites (composite sample types, or any sample a re-split names in composite_of), reports one whose from or to is not on a multiple of the step, or whose length differs from the scheme length when one is set. |
| R75 | Blocker | Re-split outside its composite | For samples that name a composite in composite_of, reports a composite that is not in the register, a composite in another hole, or a re-split whose interval is not inside the composite's. |
| R76 | Info | Composite above trigger not re-split | For composites that no re-split names, reports one whose accepted, unheld result for a trigger element is at or above the trigger grade. |
| R77 | Warning | Sample weight or recovery missing or implausible | Reports a primary sample, field duplicate or coarse duplicate in a weighed status with no weight, and any sample whose recovery is below 0 or above the largest believable recovery. |
| R78 | Info | Sample across core loss without a recovery | For primary samples with no recovery value, reports one whose interval overlaps a core run with core_loss above zero. |
| R79 | Warning | QC insertion rate below target | Walks the register in sample id order with a sliding window of the set size. |
| R80 | Blocker | Samples overlap within a stream | Within each sample stream of a hole, reports a primary sample (not QC, not void) that overlaps the one before it. |
| R81 | Warning | Sample id outside the hole's book | When sample books are recorded, reports a sample whose id is outside the range of its book, or outside the books issued for its hole when the row names no book. |
| R82 | Warning | Aircore or RAB hole without one EOH sample | For drilled holes of the listed types, reports a hole that does not have exactly one sample with an end-of-hole sample type. |
| R83 | Warning | Sample length outside limits | Reports a sample interval shorter or longer than the length limits set on the sample table (0.05 to 6 m by default). |
Results
11 rules · 5 blockers · 6 warnings · 0 infoAssay results against their samples: unknown samples, non-numbers, units, over-range re-assays, held and preliminary certificates.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R90 | Blocker | Result for an unknown sample | Reports each sample id on a certificate that is not in the sample register, compared without case. |
| R91 | Blocker | Value is not a number or a censor token | Reports a result whose value text is neither a number nor a recognised censor token such as <0.01, NSS or --. |
| R92 | Warning | Over-range result without an ore-grade re-assay | Reports an accepted result censored above its method's upper limit (such as >10) on a live certificate, unless the sample's reported value for the element is a number at or above that limit from an accepted result (any method: gravimetric, photon, or another lab method of the same generic method). |
| R93 | Blocker | Duplicate result | On each certificate, reports a second result for the same sample, element, lab method, role and repeat. |
| R94 | Blocker | Unit missing or unknown | Per certificate, element and method, reports results with no unit or a unit Collar does not know. |
| R95 | Warning | Preliminary certificate never finalised | Reports a certificate whose status is preliminary (a blank status counts as final) that no other certificate supersedes, once more than the set number of days have passed since it was received. |
| R96 | Warning | Certificate samples not matched | For each certificate with results, reports one where no sample matches the register (info), or where the matched count differs from the certificate's sample_count (warning). |
| R97 | Warning | Held results | Per certificate and method, reports results that are held because a QAQC verdict failed. |
| R98 | Warning | Reported value not traceable | Per certificate, reports reported values that have no certificate row and are not historic. |
| R99 | Warning | Negative result | Reports an uncensored numeric result below zero, except for elements in the exempt list. |
| R129 | Blocker | Duplicate certificate id | Reports a certificate id that more than one live certificate row carries, naming who imported each copy and when. |
QAQC
7 rules · 0 blockers · 6 warnings · 1 infoStandards against their CRM, blanks, duplicate precision, umpire bias and insertion rates per certificate and lab method.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R100 | Warning | CRM outside the fail limit | For each CRM on a certificate, compares each result with the library's certified value for the same element and method, both in ppm. |
| R101 | Warning | CRM bias: two of three outside the warning limit | Takes each CRM, element and method on a certificate in certificate order and reports when two of three consecutive results fall outside the inner limit on the same side. |
| R102 | Warning | Blank above threshold | For blanks on a certificate and the listed elements, reports a result above detection that exceeds the threshold: the absolute value set for the element, otherwise k times the result's detection limit. |
| R103 | Warning | Duplicate precision below criterion | Pairs each field, coarse and pulp duplicate on a certificate with its parent and judges the pair on its half-absolute relative difference (HARD), or on absolute difference near detection. |
| R104 | Warning | Umpire bias | Per certificate and element, adds up the accepted umpire results and the matching original results, and reports when the umpire total differs from the original total by more than the limit. |
| R105 | Info | No method-specific CRM value | Reports a CRM, element and method on a certificate when the library has a certified value for the element but not for that method. |
| R106 | Warning | QC insertion rate below target on a certificate | For each certificate with at least the minimum number of register samples, reports each QC type whose share of the certificate's samples is below its target. |
Project
5 rules · 1 blockers · 3 warnings · 1 infoCode lists, the CRS, reporting units, lab-method mapping and text in numeric columns.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R110 | Info | List code never used | Reports a code in the code_list table that no row of any table uses, for each list that at least one column uses. |
| R111 | Warning | CRS cannot be used for transforms | For each CRS entry a coordinate set uses (directly, or as the parent of a local grid in use), reports an EPSG code that is missing or not bundled with Collar, a local grid missing an origin or its parent CRS or with invalid grid parameters, and an entry with no kind. |
| R112 | Warning | No reporting unit for an element | Reports each element in use on any certificate that has no reporting unit set for the project. |
| R113 | Warning | Lab method not mapped to a generic method | Reports each lab and lab method used on a certificate that has no row in method_map linking it to a generic method. |
| R114 | Blocker | Non-numeric value in a numeric column | In every table, reports a cell in a numeric column (depths, coordinates, weights, grades) whose text cannot be read as a number. |
Photos
8 rules · 0 blockers · 4 warnings · 4 infoTray photos: two of one tray, depths outside the hole, tray contiguity, missing dry or wet pairs, corrections and resolution.
| Rule | Severity | Name | What Collar checks |
|---|---|---|---|
| R120 | Warning | Two photos of one tray | Reports a current photo that shares a hole, a tray number and a condition (dry, wet or none given) with another current photo when neither replaces the other, and a current photo whose file (its SHA-256) is the same as another current photo's. |
| R121 | Warning | Photo outside the hole's depth | Reports a photo whose from or to lies above the collar or below EOH (within 0.5 mm). |
| R122 | Info | Trays not contiguous, or the wrong length | For each hole and condition (no condition counts as dry), reports consecutive photos whose depths leave a gap or overlap larger than the photo contiguity tolerance (Settings › Photos, 0.05 m by default), and a photo whose length differs from its profile's rows times row length by more than 25 %. |
| R123 | Info | Logged core without a dry photo | When Photos expected is on (Settings › Photos), reports per hole the cored ranges (core runs) with a lithology code logged that no current dry photo covers. |
| R125 | Info | Wet or dry photo without its pair | When the project has at least one wet and dry pair, reports per hole the wet photos with no dry pair and the dry photos with no wet pair, as counts. |
| R126 | Info | Photo corrections not checked | Reports per hole how many photos have an automatic correction nobody has checked yet, and how many the worker could not correct at all (no tray found, so the photo is shown as taken). |
| R127 | Warning | Photo resolution below the profile's minimum | Reports a photo whose resolution in pixels per millimetre (measured from the tray-end markers) is below its profile's minimum. |
| R128 | Warning | Photos of a deleted hole | Reports per hole the current photos whose hole has been deleted: photos imported on one device while another device deleted the hole, with neither seeing the other's change in time. |
See them fire
The demo's sample project has deliberate faults. Open it and the review queue lists each one with its rule.