Skip to content

feat: standing instructions as one file per entry (.ytstack/standing/) - #63

Merged
lx-0 merged 13 commits into
mainfrom
feat/standing-dir
Nov 14, 2026
Merged

lx-0 merged 13 commits into
mainfrom
feat/standing-dir

Conversation

@lx-0

@lx-0 lx-0 commented Nov 14, 2026

Copy link
Copy Markdown
Member

Implements #57: standing instructions as one file per entry, so parallel coordinator PRs stop conflicting at the end of STANDING.md.

Design

  • Layout .ytstack/standing/<YYYYMMDDTHHMMZ>-<slug>.md (the format context-mcp already uses), frontmatter given (ISO UTC, same minute as the name), scope (non-empty), supersedes (empty or an earlier entry). Entries are never edited; a newer one supersedes.
  • yt_standing in hooks/lib/git-ctx.sh lists the entries in force, newest first, superseded ones skipped. coordinate, finish-lane, signal-intake print the list in their preamble; handover-step and review-lessons name both sources.
  • Back-compat: STANDING.md alone stays valid; with both, both are read and STANDING.md may be a short index. coordinate (0.3.0) writes new instructions as files, appending to STANDING.md only where it exists without a standing/ directory.
  • ytstack-risk: .ytstack/standing/** is a rule document (always a person).
  • ytstack-check --standing [<project>] validates name, frontmatter, body and supersedes in any project; the full run also checks ytstack's own directory.
  • DECISIONS entry, spec areas, README, QUICKSTART, concept, coordinator format, CHANGELOG.

Verification: tests/run-all.sh ALL SUITES PASSED (git-ctx 143, skill-preambles 541, ytstack-check 63, ytstack-risk 170), bin/ytstack-check OK, spec lint and drift clean, claude plugin validate . passed, Codex 16 and Kimi 9+2 tests OK. Live: ytstack-check --standing against context-mcp's 20 entries: OK; yt_standing lists 18 in force (2 superseded).

Not added: an eval case (would need its own fixture; no paid eval run).

🤖 Generated with Claude Code

lx-0 and others added 6 commits November 14, 2026 22:51
A standing instruction is a rule document whether it lives in STANDING.md
or in one file per entry under .ytstack/standing/ (issue #57).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each entry is <YYYYMMDDTHHMMZ>-<slug>.md with frontmatter given (ISO UTC,
the minute of its name), scope and an optional supersedes that must name an
earlier existing entry, and a body. `ytstack-check --standing [<dir>]` runs
only this check in any project with .ytstack/, without a plugin root; the
full run also checks the plugin's own directory (issue #57).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yt_standing lists the entries in force, newest first, and skips every
entry another entry supersedes. The preambles of coordinate, finish-lane
and signal-intake print them; coordinate writes a new instruction as a new
file and replaces one with a superseding file. STANDING.md alone stays
valid and is still read where it exists, also as an index (issue #57).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DECISIONS gains the one-file-per-entry layout for standing instructions.
artifacts, skills, checks-and-evals and hooks-and-state describe the
directory, the readers, check_standing and yt_standing, verified at
54a25e7. Claims about runs at the old stamp now name 1b7bfc8 explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…CHANGELOG

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hooks/lib/git-ctx.sh is one of its paths; the new function adds no
dependency, so the description holds at 54a25e7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T22:37:49.056594Z
We couldn’t complete this review. Comment @codex review to try again.
71d854f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 006c64825e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread hooks/lib/git-ctx.sh Resolved
Comment thread bin/ytstack-check Resolved
Comment thread bin/ytstack-check Resolved
lx-0 and others added 6 commits November 14, 2026 23:25
20261114T1225Z-old sorted after 20261114T122530Z-new in reverse lexical
order. The sort key is now YYYYMMDDHHMMSS from the name (Codex finding on
PR #63).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A supersedes target is compared by time with missing seconds as :00, so
  a 12:25:30 entry may supersede a 12:25 one.
- The time in the name and in given must exist (month, day of the month
  with leap years, hour, minute, second), checked with datetime.
- `--standing` without a directory resolves .ytstack through
  hooks/lib/git-ctx.sh like the preambles, so a project in user scope
  (~/.ytstack/projects/<repo key>) is checked; none found stays exit 0.

Codex findings on PR #63.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p areas

coordinator-format, checks-and-evals and hooks-and-state describe the
three fixes. checks-and-evals, hooks-and-state (including the PR watch
sentence merged from main) and dependencies are verified at 851b2f4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r scope)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lx-0

lx-0 commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@lx-0
lx-0 merged commit 38486b8 into main Nov 14, 2026
4 checks passed
@lx-0
lx-0 deleted the feat/standing-dir branch November 14, 2026 23:12
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