Skip to content

feat: teach automation from the installed tnl version - #807

Open
0xcadams wants to merge 1 commit into
0xcadams/cli-apply-difffrom
0xcadams/cli-agent-guide
Open

0xcadams wants to merge 1 commit into
0xcadams/cli-apply-difffrom
0xcadams/cli-agent-guide

Conversation

@0xcadams

Copy link
Copy Markdown
Member

What

tnl agent-guide explains how to check readiness, resume watches, read feedback and review production changes with the installed binary. --skill emits a SKILL.md file.

Why

Recorded status is different from fresh readiness, and feedback and local event streams use different cursors. Automation needs those distinctions even when working offline.

Changes

  • Embed version-matched human and skill output, and check the examples against the built binary.
  • Include executable recovery commands with expired local cursor and readiness timeout diagnostics.

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T15:00:00.033740Z cefc122 New commits
🔒 Security Review ✅ Completed 2026-11-20T15:07:09.553453Z cefc122 New commits
ℹ️ 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: a6833d8444

ℹ️ 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 cmd/tnl/agent_guide.go
version := buildinfo.Line("tnl")
sections := []struct{ command, use string }{
{"tnl status --scope local --output json", "Read the recorded local snapshot. A saved ready state is not a fresh readiness check."},
{"tnl wait --service NAME --output json", "Check readiness now. Replace NAME with the configured service or invocation ID."},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restrict readiness guidance to configured service names

When automation follows this instruction using a publication's invocation ID, tnl wait rejects it instead of checking readiness. In the CLI implementation, waitCommand.Service documents “Check this service; repeat to select several,” and runAppWait in cmd/tnl/app_observation.go checks every supplied value against project.Config.Services, returning ServiceNotConfigured for an invocation ID. Without project configuration, runAppObservation rejects the command even earlier. Remove the invocation-ID alternative so both the human guide and generated skill describe inputs this binary actually supports.

Useful? React with 👍 / 👎.

@0xcadams
0xcadams added this pull request to stack #809 November 20, 2026 14:56
@0xcadams
0xcadams force-pushed the 0xcadams/cli-agent-guide branch from a6833d8 to cefc122 Compare November 20, 2026 14:59

This branch has not been deployed

No deployments
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