Add one-command consumer seam initialization - #107
Conversation
WalkthroughAdds ChangesConsumer seam initialization
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant ConsumerRepo
participant SeamDoctor
participant PackageMetadata
ConsumerRepo->>SeamDoctor: Run --init
SeamDoctor->>ConsumerRepo: Read existing seam files
SeamDoctor->>PackageMetadata: Detect scripts and lockfile
PackageMetadata-->>SeamDoctor: Return command candidates
SeamDoctor->>ConsumerRepo: Write wrappers and configuration
SeamDoctor->>ConsumerRepo: Validate initialized seam
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review: Add one-command consumer seam initialization (#107)OverviewAdds Strengths
Correctness issue (posted inline)
Minor / non-blocking notes
SecurityNo significant concerns. Command strings passed via Test coverageThorough for the shipped surface area (idempotency, detection ambiguity, validation ordering, JSON/text parity, missing-root handling). No test currently exercises re-running |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 20ddd7ced6
ℹ️ 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".
Review: Add one-command consumer seam initializationOverviewThis PR adds Strengths
Issues found (posted as inline comments)
SecurityNo significant concerns — the tool writes shell commands the invoking maintainer supplies themselves (not derived from untrusted external input), and YAML is loaded via SuggestionConsider adding test coverage for (1) — explicit command override vs. a pre-existing non-managed wrapper — since it's the one scenario the docs promise ("complete the seam in one run") but the code doesn't fully deliver. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ff26d6bd90
ℹ️ 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".
Review: Add one-command consumer seam initializationOverviewThis PR adds Strengths
Issues found (posted as inline comments)
None of these are security issues (all inputs are supplied by the local repo maintainer running their own tooling, not attacker-controlled), and the core detection/idempotency/validation-ordering logic is solid and well-tested. The three issues above are edge cases worth tightening before merge, particularly #1 (crash) and #2 (misleading generated docs). |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad08413fad
ℹ️ 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".
Review SummaryReviewed the OverviewThis adds a one-command consumer seam initializer that conservatively detects Strengths
Issues found (posted inline)
Minor / non-blocking
Overall this is a solid, well-tested addition; the two inline findings are worth addressing but neither is a blocking correctness issue for the documented conservative-detection use cases. |
5a0e0de to
78766c8
Compare
Review: Add one-command consumer seam initializationOverviewAdds Code quality
Potential issues (minor, left as an inline comment)
SecurityNo remote/untrusted input is executed — Test coverageVery thorough for a first pass — 320 assertions covering explicit/detected/ambiguous/unknown command paths, conflict-with-repo-owned-wrapper rejection, idempotency, JSON parity with text output, and installer integration. Nice work. Nothing blocking found. |
Review: Add one-command consumer seam initializationOverviewThis PR adds Code quality
Potential issues / risks
Security
Test coverageCoverage is unusually thorough for this kind of feature (idempotency, byte-stable reruns, repo-owned-wrapper conflict detection, malformed YAML/JSON/UTF-8 inputs, JSON edge cases like non-object Overall: solid, carefully tested change. The two inline comments are minor cleanup suggestions, not blockers. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f8a2d3fc42
ℹ️ 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".
Review: Add one-command consumer seam initializationOverviewThis PR adds Code quality
Bugs / correctnessNo functional bugs found. I traced through the trickier parts by hand (compound-command detection, npm Security
PerformanceNo concerns — this is a one-shot CLI tool operating on small local files; nothing here is hot-path or scales with repo size in a way that matters. Test coverageStrong. Only gap I noticed: the install-flow test ( Nice, minor, unrelated-but-welcome fix: Overall this is a well-scoped, carefully validated change with strong fail-closed defaults and excellent test coverage. The two inline notes are suggestions for future maintainability, not blockers. |
Review: Add one-command consumer seam initializationOverviewThis adds Code quality
Issues found
Minor / non-blocking
SecurityNo injection concerns: user-supplied commands are only ever written into locally-generated script files by the same operator who invoked the CLI (no remote/untrusted input), and the base-branch validation shells out to Overall this is a well-scoped, heavily-tested change that matches its stated design goals; the one correctness gap above is narrow but worth addressing before merge given the "fail-closed" promise the tool makes elsewhere. |
|
Review: Add one-command consumer seam initialization (#107) Overview Code quality
Potential issues (minor, non-blocking)
Security
Performance
Test coverage
Overall this is a well-tested, carefully sequenced change. The two notes above are low-severity edge cases, not blockers. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 159c24a7ed
ℹ️ 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".
Review: Add one-command consumer seam initialization (#107)OverviewThis PR adds Code quality
Potential issues
Security
Test coverage
Note on PR descriptionThe PR description embeds an unusual amount of process metadata (QA-evidence and "priority-finding-dispositions" HTML comment blocks referencing ~20 previously-fixed review threads). This reads as tooling output from this repo's own review/QA automation rather than a human-authored note, which is plausible given the project's purpose — flagging it only for visibility, not as a concern with the code itself. OverallSolid, well-tested, appropriately conservative feature. The two inline notes are minor/non-blocking; nothing here should block merge on its own. |
Review triage complete
No deferred review work or follow-up issue is required for this batch target. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a2e136793b
ℹ️ 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".
Summary
agent-workflow-seam-doctor --initas the one-command consumer seam initializerbin/validateandbin/test, or exact JavaScript scripts with one unambiguous package-manager lockfileCloses #99
Validation
ruby bin/agent-workflow-seam-doctor-test.rb(109 runs, 529 assertions)bash bin/install-agent-workflows-test.bashruby bin/push-downstream-test.rb(45 runs, 240 assertions)bin/validateThe local independent
codex reviewgate was attempted twice but was unavailable: the default review model requires a newer CLI, and the compatible-model retry hit the local usage limit. Hosted current-head review is therefore required before merge.Decisions
seam-presets.yml; this PR does not edit it,bin/push-downstream, examples, or fixtures.QA Evidence
a2e136793bd337d605a1f77c09486d08a336a3d2bin/validate, hosted validate, and hosted Claude review all passed159c24a; the only final delta was inspected and replayed ata2e1367, including caller-controlledenv -S/--split-stringpreservation