Repository navigation
okforest@0.16.0
Minor Changes
-
538d3e7: -
okforest/slugaccepts underscores (lowercase letters, digits, hyphens, and underscores, starting with a letter or digit), so a concept named after something with underscores, such as a table (n_day_active_users), can keep its name. Its suggested fix keeps a name's own underscores (Daily_Users→daily_users).- The READMEs, package descriptions, and
--helplink OKF's new home, open-knowledge-format/open-knowledge-format, and say a tree is checked by the version it declares (0.2 or 0.3). The README's rule table lists every rule, and how a.mdfile counts as a concept under each version. TheREADME.mdandAGENTS.mdthatokforest initwrites link the new spec too. - A new tree declares OKF 0.3;
npx okforest@0.15.0 initmakes one on 0.2.
- The READMEs, package descriptions, and
-
1158c11:
@okforest/okfreads trees as OKF 0.3 does (#53), as the new spec tells consumers to read every version:- Trust tiers count only current verifications (§5.3): an event counts when its
atis on or aftergenerated.at, the last change to the content, so a page rewritten after a person's review isn't human-reviewed until someone confirms it again. An event without a readableatdoesn't count (§5.2). The earlier events are kept asConcept.verifiedBefore.deriveTrustTier(verified, generatedAt)and the newcurrentVerificationsdo the same. - A status OKF doesn't define isn't
stable(§5.4):Concept.statusisunrecognized, andstatusValuehas it as written; absent is stillstable.buildInventory'sstatusescounts them (okforest inventoryshows them when there are any). superseded_byis read (Concept.supersededBy), as a path field.- A
stale_afterthat isn't a timestamp is never fresh (§5.5):isStale()is true, rather than false. - Timestamps are RFC 3339 date-times with an offset, or dates, which are the start of that day in UTC (§5):
parseTimestamp. - Path fields (§6.2:
resource,sources[].resource,superseded_by,computation,executor.resource,attester.resource) resolve as links do, intoConcept.paths, and those that reach a concept are edges of the bundle graph, sobacklinksincludes them (§6.4). A bundle on 0.2, or no version, may still write them from the bundle root (§12.1):outlineTreetakes the rootindex.md'sokf_versionto know. - Files and folders whose names start with
.aren't part of a tree (§3.2), as.okforest/and.git/weren't:.github/and the like are left out too. - Absent and single values (§11.2): null and blank values are absent, one
sourcesentry is a list of one, and one tag is never split at commas. - Bundle metadata (§8.1):
Tree.metadatahas the rootindex.md'stitle,description, andlicense(readBundleMetadata). - The OKF version:
parseOkfVersion,okfVersionAtLeast, andLATEST_OKF_VERSION("0.3").
- Trust tiers count only current verifications (§5.3): an event counts when its
-
af18a42: The rules check each tree by the OKF version its root
index.mddeclares (#53):okf_version: "0.3"gets OKF 0.3's rules, and"0.2", or no version, keeps 0.2's, so a tree moves when it says so.- New
okf/not-a-concept(warning, 0.3): a.mdfile without frontmatter or atypeisn't a concept (§3.2), so consumers skip it; nothing else checks it as one, and aREADME.mdno longer needsignore:. Under 0.2,okf/frontmatterandokf/typestill report these as errors. - New
okf/extension-key(warning, 0.3): a frontmatter key OKF doesn't define is namedx-<producer>-<name>, such asx-acme-owner(§4.1), so a later version can't define it differently. A type's own fields are extension keys too. - New
okf/log-frontmatter(error, 0.3):log.mdhas no frontmatter (§9). - New
okforest/okf-version-current(warning): a tree on an older version is told that 0.3 is current, to move when it's ready; one that declares a newer version than this validator knows is told to update okforest or okforest/validate-action. okf/datetimeaccepts a date, the start of that day in UTC (§5), for every version, as OKF 0.3 says.okf/statusis a warning, not an error: a status OKF doesn't define isn'tstable, which OKF 0.3 says to keep and warn about. Under 0.3 it also checkssuperseded_by(a path, withstatus: deprecated).okf/actoraccepts any<scheme>:<id>, such asteam:fpa, and checks a source'sauthortoo (§7).okf/attested-computation: under 0.3, each parameter needs atype(§10.2).okf/okf-versionasks for"0.3", and no longer says other versions are checked best-effort.okforest/slugleaves files that aren't concepts alone, under 0.3.okforest initwritesokf_version: "0.3".- The rule docs link the new spec (open-knowledge-format/open-knowledge-format) and their examples use OKF 0.3.
For tools checking a tree a file at a time: pass the root
index.md's version tooutlineTree({ okfVersion }), whichdeclaredOkfVersion(text)reads, so the right version's rules apply.TreeOutline.okfVersioncarries it to the rules. - New