Skip to content

fix(spec): clarify that log.md carries no frontmatter - #401

Open
Sayantan181222 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
Sayantan181222:fix/log-md-frontmatter-spec
Open

Sayantan181222 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
Sayantan181222:fix/log-md-frontmatter-spec

Conversation

@Sayantan181222

Copy link
Copy Markdown

Problem

§9 was silent on frontmatter while §8 explicitly says "Index files
contain no frontmatter." This silence caused the acme_retail reference
bundle to ship a log.md with type: Log and title frontmatter.

Two consequences followed:

  • Downstream tools and validators disagreed on whether log.md frontmatter
    is permitted, since the spec and the reference bundle contradicted each other.
  • A consumer scanning frontmatter for type (§4.1) picks up a log carrying
    type: Log as a concept, which is exactly what §3.1 exists to prevent.

This was independently noted by multiple community members and tools
(see issue comments).

Fix

Add one sentence to §9 mirroring §8: "Log files contain no frontmatter."

Remove the frontmatter block from okf/bundles/acme_retail/log.md so
the reference bundle agrees with the spec.

Fixes #286

…mple

§9 was silent on frontmatter while §8 explicitly forbids it for index.md.
The acme_retail reference bundle shipped a log.md with type: Log and
title frontmatter, which contradicted the implied rule and was being
copied as convention by downstream tools.

Add one sentence to §9 mirroring §8, and remove the frontmatter from
the reference bundle so spec and example agree.

Fixes GoogleCloudPlatform#286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OKF log.md file can have a frontmatter ?

1 participant