Skip to content

add explicit user-confirmation gates to parse-table and schema-match - #60

Open
yzjanee wants to merge 6 commits into
astrodbtoolkit:mainfrom
yzjanee:more-user-checkpoints
Open

add explicit user-confirmation gates to parse-table and schema-match#60
yzjanee wants to merge 6 commits into
astrodbtoolkit:mainfrom
yzjanee:more-user-checkpoints

Conversation

@yzjanee

@yzjanee yzjanee commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • astrodb-build-parse-table: Step 6 is now an explicit blocking gate — the skill presents a summary (columns found, metadata vs. inferred vs. missing) and waits for user confirmation before it is considered done. Clarifies that schema.yaml is not produced here or in schema-match.
  • astrodb-build-schema-match: Adds a checkpoint before any output files are written — all Low and Medium confidence matches are compiled into a single table and shown to the user for confirmation or override. Honors artifacts/directions.md without re-asking; only undirected ambiguities trigger the gate.

Motivation

Skills were too eager to proceed without confirming with the user when column mappings were ambiguous. This change makes the ambiguity explicit and gives the user a natural review point between parse and match, and another before the mapping is finalized.

What is NOT changed

  • High confidence matches still write directly, no confirmation needed
  • The Resolving Unmatched Columns flow at the end of schema-match is unchanged
  • No changes to downstream skills (schema-validate, schema-generate, create-db)

yzjanee and others added 6 commits June 29, 2026 13:44
…ch skills

Both skills now declare astrodb-build-artifacts/ as the required output
directory at the top of their instructions, with an explicit mkdir -p step
before any files are written. schema-match also gains concrete output paths
mirroring the -parsed-data-table pattern from parse-table.

Closes #203

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
commit 73a0348
Author: yzjanee <janeweiowo@gmail.com>
Date:   Mon Jun 29 15:38:49 2026 -0400

    ingest-publications: fix disambiguation to use DOI suffix on shortname

    When two papers share the same first-author/year shortname, append the
    last 4 characters of the DOI as a suffix (e.g. Bona20.a51a) rather than
    omitting the shortname and citing in a comments field.

    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

commit 6a03a48
Author: yzjanee <janeweiowo@gmail.com>
Date:   Mon Jun 29 13:35:55 2026 -0400

    ingest-publications: enforce 4-letter reference naming convention

    - Adds prominent Reference naming convention section to SKILL.md with
      worked examples (Bona20, Smit20, WuXi21)
    - For disambiguation (two papers same first-author/year): second reference
      goes in the comments field of the data row (e.g. Sources.comments),
      never as a variant shortname (no Bona20a, no Bona20.800c)
    - Updates API reference to be explicit about the comments approach
    - Fixes example shortname Bonaca2020 → Bona20 throughout
    - Adds eval assertion that Bona20 is the generated shortname

    Closes astrodbtoolkit#37

    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
commit 83635b7
Author: yzjanee <janeweiowo@gmail.com>
Date:   Mon Jun 29 13:34:45 2026 -0400

    setup: add directions document to initial workflow

    Adds Step 6 to astrodb-build-setup that creates an artifacts/ directory
    and prompts the user to write a directions document (artifacts/directions.md)
    capturing dataset-specific decisions, known issues, and ingestion notes.

    Includes an example directions document in references/directions_example.md.
    astrodb-build-parse-table and astrodb-build-schema-match now check for
    artifacts/directions.md at startup and incorporate its guidance.

    Closes astrodbtoolkit#36

    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t just the second

When two papers share the same base shortname, every paper in the collision
gets a DOI suffix — including the first. Clarified that bare letter suffixes
are never used; letters appearing inside a DOI suffix are fine.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ames, not just the second"

This reverts commit d3cf410.
parse-table: Step 6 now requires explicit user confirmation before the skill
is done — user must review the HTML output and approve the column list,
descriptions, and types. Also clarifies that schema.yaml is created by
schema-generate, not schema-match.

schema-match: adds a checkpoint before writing any output files — all Low and
Medium confidence matches are presented in a single table for user review.
Overrides are applied before the files are written. Directions.md is still
honored without re-asking; the gate only fires for undirected ambiguities.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@yzjanee
yzjanee marked this pull request as draft July 10, 2026 19:13
@yzjanee
yzjanee marked this pull request as ready for review July 16, 2026 00:55
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.

1 participant