Kairos Laetus-in-Praesens: Kairos

Indications

Updates, errors, etc

Correction and update strategy
Addition of new documents to Kairos
Errors
Unresolved issues
Work in progress
Technical considerations

Why there are errors at all

Kairos is generated from some 2,500 documents written over six decades, with whatever tools and conventions were current at the time: hand-coded HTML, Dreamweaver templates, later PHP pages, several character encodings, and links written in a dozen styles. The processing that turns these into Kairos records has to read all of them as they are. Errors therefore arise in three places: in the source pages themselves, in the processing that interprets them, and in the display software. The guiding rule is that errors are corrected at source (in the pages or the processing), never by editing the display, so that each regeneration makes the whole cleaner rather than undoing earlier patches.

Handled: neutralized automatically in processing

These once broke records, listings or whole imports. The processing now repairs or prevents them on every run.

Problem How it is handled
Damaged or mixed character encodings (e.g. accented names, the "Möbius" type of corruption) Invalid byte sequences are removed and encoded entities decoded during processing; a further check on the server repairs any survivor before import (one bad byte could previously sink a whole batch).
Quotation marks inside text breaking the record structure Quotation marks are escaped once, consistently, at the point of output; earlier double-escaping and its repairs are retired.
Records with too many or too few fields Every record is checked for exactly 24 fields before it is written; the importer also tolerates a malformed row without abandoning the batch, and reports it.
Formatting tags inside titles (bold, italic, links in headings) Stripped from titles so that listings show plain text.
Titles wrapped over several lines in page metadata Reassembled before use.
Pages whose metadata title differs from their visible heading (often a stale Dreamweaver template) The visible heading takes precedence; the metadata title is the fallback.
Relative links (images/x.png, ../page.php, href = "..." with spaces) that break once a section is displayed outside its folder Converted to full addresses, or to Kairos addresses when they point to another document; the I Ching pages alone carried about 2,600 of these.
Links to other documents written in many styles Resolved to stable Kairos addresses and counted as citations in both directions.
Redirect "stub" pages left where documents were moved Recognized and skipped, so that they do not appear as undated documents.
I Ching pages without a usable date Assigned their known year (1997) by rule.
Duplicate records Detected during processing; on import, records are matched by address, so a re-import updates rather than duplicates.
Records that no longer exist in the source Listed after each import as "orphans", and removed only on explicit instruction.
Links to animations that had moved from .html to .php pages Corrected in the source pages by a one-off script (October 2026).

Tolerated: known, visible, and accepted for now

Anomaly Scale (Oct 2026) Why tolerated
Documents with no year 5 Undated at source; shown as "undated" in the statistics.
A document dated before 1960 1 Left out of the decade tables and named in a footnote.
Citations whose target cannot be matched to a dated document about 1,350 Counted in an "undated" column of the citation table and footnoted, rather than silently dropped.
Pages whose metadata title differs substantively from their heading about 100 (of some 2,000 differences, most cosmetic) The heading is used; a worklist exists for correcting the metadata at source.
Links in source pages that cannot be repaired automatically (text used as a link, links to a local disk, mistyped addresses) about 160 Listed in a worklist for correction in the source pages.
Cross-reference and table records with no title a few dozen Arise from source structures with no caption; not displayed in title listings.
Authors appearing under more than one form of name about 20 Largely deliberate de-duplication; residual cases noted.
Topic allocation imperfect — Topics are assigned by keyword, and inherit the unevenness of keywords given to documents over sixty years; described as "tentative" on every topic page.
Some links into Kairos from old external sites — Point to addresses that no longer exist; addresses are now stable, so the problem should not recur.

Envisaged: identified, with a remedy planned

How errors come to light

Each processing run writes censuses of anomalies (undated pages, conflicting titles, unresolved links), and each import produces a report of failures and orphans per record type. Before any operation that changes data, the expected outcome is stated in numbers, so that a deviation shows at once. Readers' reports of errors are also welcome through the usual contact route; they are corrected at source and appear at the next regeneration.

Correction and update strategy: It should be stressed that, unlike many content management applications, the approach to the relationship between the older Laetus system and the management of documents within Drupal is understood here as involving a progressive and iterative approach. The relationship between the original PHP article and the extracted Kairos documents indicates the following strategy for repairing detected errors and adding new documents from Laetus as they are written:

There are of course possibilities within Drupal to extract and generate some additional records, by-passing any suspect conversion from the original PHP articles. These remain to be explored -- notably with respect to new documents.

Addition of new documents to Kairos It has become apparent that it is relatively easy to import new documents from Laetus as they are written, if the impact on certain record types is ignored. The current strategy is therefore:

This approach means that updating can be done more frequently. Note that the possibility of keyword searches on newly added documents may compensate for some of these deficiencies.

Errors:

Unresolved issues: Work in progress: Aside from the unresolved issues above, note the separate summary of current priorities

Technical considerations: Of possible relevance to the errors on Kairos, are various technical issues discussed separately