Skip to content

Add LLM metadata stubs for allowlisted CSV sources#15

Merged
weasel-lee merged 1 commit intomasterfrom
codex/bootstrap-metadata-files-for-allowlisted-rust-sources
Jan 15, 2026
Merged

Add LLM metadata stubs for allowlisted CSV sources#15
weasel-lee merged 1 commit intomasterfrom
codex/bootstrap-metadata-files-for-allowlisted-rust-sources

Conversation

@weasel-lee
Copy link
Owner

Motivation

  • Provide compact, orthogonal LLM-friendly semantic metadata for the crate's primary source modules to speed future model queries about behavior, invariants, and risks.
  • Follow the repository allowlist rules and the provided prompt to create/update metadata for each allowlisted Rust source and skip short files.

Description

  • Added metadata stubs src/*.metadata.txt for the allowlisted modules: byte_record, string_record, reader, writer, deserializer, serializer, error, lib, cookbook, and tutorial, each following the required [FILE METADATA] structure and focusing on invariants, edge cases, contracts, and risks.
  • Updated .github/metadata/allowlist.txt to document the skipped short source file: src/debug.rs (files < 100 lines are intentionally omitted and recorded in the allowlist comments).
  • Metadata generation followed the mapping a.rs -> a.metadata.txt and the rules from the prompt: create when missing and treat existing metadata as modified (here these are new stubs that summarize the expensive-to-derive semantics of the corresponding source files).
  • Committed the new files and the allowlist update to the repository.

Testing

  • No automated tests were executed for these metadata-only changes.

Codex Task

@weasel-lee
Copy link
Owner Author

@codex

METADATA_JOB_REQUEST_V1

Please update Rust metadata files for this PR. Submit the result directly to GitHub (commit) without asking for toggles or confirmations.

Rules:

  • Allowlist: use glob patterns from .github/metadata/allowlist.txt (supports !exclude lines).
  • Output path mapping: /path/to/src/a.rs -> /path/to/src/a.metadata.txt
  • Prompt: follow .github/metadata/prompt.txt exactly for output structure and style.
  • Added Rust file: generate metadata from Rust source + prompt.
  • Modified Rust file: update metadata using Rust source + existing metadata + prompt.
  • Deleted Rust file: if corresponding .metadata.txt exists, delete it.
  • Do not include housekeeping hash headers like "# source_sha256:" in your output; those are handled by tooling.

Targets:
Added:
(none)

Modified:
(none)

Deleted:
(none)

@chatgpt-codex-connector
Copy link

Summary

  • No changes were required because the trigger listed no added, modified, or deleted Rust targets to update.

Testing

  • Not run (no changes).

View task →

@weasel-lee weasel-lee merged commit 3ede342 into master Jan 15, 2026
1 check passed
@weasel-lee weasel-lee deleted the codex/bootstrap-metadata-files-for-allowlisted-rust-sources branch January 15, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant