Explanation: Check Current

Overview

Hyaline has the ability to check the current set of documentation against the configuration and look for issues that should be addressed. The goal is to verify that each piece of documentation (each document/section) that is extant is present in the configuration with a purpose, and that each document or section present in the configuration exists, matches its purpose, and is complete.

Overview

In this diagram you can see on the left we have our set of desired documents and sections defined in the config, and on the right we have our actual documents and sections that were extracted into our current data set. Hyaline pulls both sets of documents and sections in and runs a series of checks, calling out to an LLM when necessary. Hyaline then compiles the results and outputs them so they can be acted along.

Please see Extract Current, the Configuration Reference, and the Results Reference documentation for more details.

Note that there are 4 primary checks that Hyaline can perform on current documentation:

  • Check that the desired documents and sections exists in the configuration
  • Check that documents and sections marked as required in the configuration actually exist
  • Check that documents and sections match the purpose stated in the configuration
  • Check that documents are complete based on its stated purpose

Check Desired Document Exists

This check, identified by DESIRED_DOCUMENT_EXISTS, is intended to help identify those documents and/or sections that are present in the actual extracted documentation but are not present in the configuration.

Check Desired Document Exists

In the image above the desired documents and sections (from the configuration) are on the left and the actual documents and section (extracted and stored in the current data set) are on the right. When Hyaline checks that a desired document exists, it loops through all of the actual documents and sections and checks for a corresponding desired document or section in the config. For example, document A has an actual section that does not have a corresponding desired section, so it would be flagged. Likewise, Document F and all of its sections do not have a corresponding desired document or sections, and would be flagged as well.

Note that Hyaline supports both the scenario of creating documentation before the configuration as well as the scenario of creating the desired documentation in the configuration before it actually exists. This means that you can react to new documentation as well as declare desired documentation beforehand and Hyaline will support both scenarios.

This check will have one of the following results:

  • PASS If the extracted document or section exists in the configuration for the documentation source.
  • ERROR If the extracted document or section does not exist in the configuration for the documentation source.

Check Required

This check, identified by REQUIRED, is intended to identify those documents and/or sections that are marked as required in the configuration but do not exist in the extracted documentation.

Check Required

In the image above the desired documents and sections (from the configuration) are on the left and the actual documents and section (extracted and stored in the current data set) are on the right. When Hyaline checks required documents and sections it loops through all of the desired documents and sections and, for those marked as required, it looks for the corresponding document or section in the actual documents and sections that were extracted. For example, document C is marked as required in the desired documents and sections but is not present in the actual documents and sections, so it would be flagged.

This check is particularly helpful for scenarios where a centralized authority decides that certain documentation needs to exist. In that case they can create the configuration for the documentation, stating it’s purpose, and then mark it as required. Hyaline will pick that up and check for it when checking current documentation, and will also use that information when determining what documentation should be updated when checking changes.

This check will have one of the following results:

  • PASS If the configuration indicates that this document or section is required and it exists in the extracted documentation.
  • ERROR If the configuration indicates that this document or section is required and it does not exist in the extracted documentation.
  • SKIPPED If the configuration indicates that this document or section should be ignored.

Check Purpose

This check, identified by MATCHES_PURPOSE, is intended to identify those documents and/or sections that do not match the purpose of that document or section as defined in the configuration.

Check Purpose

When check current runs it looks at each document and section in the set of desired documents and sections that has a declared purpose, and then calls an LLM with the corresponding actual extracted document or section (along with some other metadata) to see if the actual document or section matches its declared purpose. If it does not it is flagged.

This check is helpful in determining if documents or sections actually accomplish their stated goal(s) (or purpose).

This check will have one of the following results:

  • PASS If the extracted document or section is determined to match the purpose declared in the configuration.
  • ERROR If the extracted document or section is determined to not match the purpose declared in the configuration.
  • SKIPPED If the configuration indicates that this document or section should be ignored.
  • WARN If the document or section does not have a purpose stated in the configuration.

Check Completeness

This check, identified by COMPLETE, is intended to identify those documents that are incomplete as defined by the purpose of that document or section in the configuration.

Check Completeness

When check current runs it looks at each document and section in the set of desired documents and sections that has a declared purpose, and then calls an LLM with the corresponding actual extracted document or section (along with some other metadata) to see if the actual document or section is complete based on its declared purpose. Hyaline makes other documents and code available to the LLM so it can reference them when determining if the document or section is complete.

This check is helpful in determining which documents and/or sections are not as complete as they could be as defined by their purpose as stated in the configuration.

This check will have one of the following results:

  • PASS If the extracted document or section is determined to be complete based on the purpose declared in the configuration.
  • ERROR If the extracted document or section is determined to be incomplete based on the purpose declared in the configuration.
  • SKIPPED If the configuration indicates that this document or section should be ignored.
  • WARN If the document or section does not have a purpose stated in the configuration.

Next Steps

You can continue on to see how check change works, or you can or see how Hyaline can generate a configuration and (optionally) purposes for previously extracted documentation.