feat(typescript): apply knowledge-base rules during Linear publication - #537
feat(typescript): apply knowledge-base rules during Linear publication#537kmbroai wants to merge 22 commits into
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c313816acb
ℹ️ 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".
| knowledgeBase: z | ||
| .array(optionValue("--knowledge-base")) |
There was a problem hiding this comment.
Namespace the Linear publication policy option
Because these documents control Linear-native priorities and label IDs and require a Linear API key, exposing them through the generic --knowledge-base flag gives an integration-specific field a destination-agnostic name. When another --to destination is added, that target cannot assign different knowledge-base semantics without a compatibility conflict; rename this flag to --linear-knowledge-base and align the corresponding option before publishing the interface.
AGENTS.md reference: sdk/typescript/AGENTS.md:L16-L19
Useful? React with 👍 / 👎.
Summary
Add
--knowledge-base PATHtopublish scanso an organization can set Linear priority and existing labels with its own policy documents. Without this option, publication keeps the current severity-to-priority mapping and does not run policy evaluation.How it works
--knowledge-base.--dry-run --knowledge-baseperforms the same Linear reads and policy evaluation without creating issues. Publication results and private receipts include the resolved priority and label IDs and names. They do not store policy contents, policy file paths, model prompts, or credentials.Testing
Risk
Publication without
--knowledge-baseis unchanged. Knowledge-base publication depends on the model to interpret the supplied rules, but the CLI validates every result before the first Linear mutation. Labels must already exist in the selected Linear team or workspace. Once issue creation begins, the existing partial-failure behavior is unchanged.Policy documents cannot change the Linear team, project, issue title or description, assignee, state, cycle, estimate, or due date.
Public disclosure review