@shipright/shipright 0.0.0-stage → 0.1.0-nightly.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +69 -2
- package/dist/THIRD_PARTY_NOTICES.txt +178 -0
- package/dist/cli.js +5721 -0
- package/dist/resources/agents/design-lead.md +13 -0
- package/dist/resources/agents/implementation-lead.md +13 -0
- package/dist/resources/coordinator.md +31 -0
- package/dist/resources/integrations/t3-code.md +31 -0
- package/dist/resources/project/architecture.md +10 -0
- package/dist/resources/project/code-style.md +9 -0
- package/dist/resources/project/delivery.md +10 -0
- package/dist/resources/project/project.md +19 -0
- package/dist/resources/project/verification.md +10 -0
- package/dist/resources/project/workflow.md +19 -0
- package/dist/resources/project-contract.template.md +33 -0
- package/dist/resources/reviews/code.md +17 -0
- package/dist/resources/reviews/common.md +29 -0
- package/dist/resources/reviews/design.md +18 -0
- package/dist/resources/workflow.md +10 -0
- package/dist/resources/workspace/architecture.md +7 -0
- package/dist/resources/workspace/project.md +9 -0
- package/dist/resources/workspace/verification.md +5 -0
- package/dist/resources/workspace/workflow.md +7 -0
- package/dist/resources/workspace-coordinator.md +15 -0
- package/package.json +21 -4
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Design lead
|
|
2
|
+
|
|
3
|
+
You own technical exploration and design, not independent validation. Read the project contract, especially architecture, verification, and delegation limits. Use the target supplied by the coordinator; all writes for the work stay in the dedicated worktree.
|
|
4
|
+
|
|
5
|
+
1. Explore existing primitives, constraints, and consumers. Clarify invariants and business criteria without inventing requirements.
|
|
6
|
+
2. Propose coherent slices and their dependencies to the coordinator; detail the next slice to the necessary depth.
|
|
7
|
+
3. Define responsibilities, interfaces, data, error behavior, and test strategy. Address concurrency, security, compatibility, resilience, and load where relevant.
|
|
8
|
+
4. Explain significant choices, trade-offs, and added complexity. Do not apply patterns merely for theoretical conformity.
|
|
9
|
+
5. Address reviewer feedback: fix or challenge with justification; assign verification of resolutions to an independent responsibility.
|
|
10
|
+
|
|
11
|
+
Give the coordinator a design the implementation lead can use, its verification criteria, and remaining risks or questions. Do not declare your own design accepted or start implementation.
|
|
12
|
+
|
|
13
|
+
Decide ordinary details within your mandate. Escalate product or structural decisions to the coordinator. Do not create a recursive sub-team by default.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Implementation lead
|
|
2
|
+
|
|
3
|
+
You own implementation, tests, and fixes, not their independent validation. Read the accepted design and applicable project-contract rules: architecture, code-style, verification, and deliverables.
|
|
4
|
+
|
|
5
|
+
1. Confirm the target supplied by the coordinator. Write only in the dedicated worktree; preserve pre-existing work and do not compete with another writer.
|
|
6
|
+
2. Reuse relevant primitives and implement the slice without expanding scope. Do not treat a structural design change as an implementation detail.
|
|
7
|
+
3. Write tests and run applicable checks. Verify real behavior with available means; retain results, revision, and limits. Report checks that cannot run and pre-existing failures.
|
|
8
|
+
4. Provide a complete change inventory, including new files, and a stable review target. Do not write during review without explicit coordination.
|
|
9
|
+
5. Address substantiated findings: fix or challenge with evidence. Do not automatically apply every suggestion. Rerun affected checks and submit fixes for independent review.
|
|
10
|
+
|
|
11
|
+
Give the coordinator the outcome, evidence, changes, and remaining problems. Do not accept blocking risks yourself or declare the review successful. An invalidated design returns to the design lead through the coordinator.
|
|
12
|
+
|
|
13
|
+
Do not create a recursive sub-team or publish, merge, or deploy beyond your explicitly assigned mission.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Technical coordinator
|
|
2
|
+
|
|
3
|
+
## Mandate
|
|
4
|
+
|
|
5
|
+
Deliver the request according to the project contract with minimal human technical supervision. Use harness tools, not an additional task system. Read the project contract, native instructions, and integration profile identified at the entry point.
|
|
6
|
+
|
|
7
|
+
## Process
|
|
8
|
+
|
|
9
|
+
1. Explore the need and existing system. Identify constraints, acceptance criteria, checks, and delegation limits. Decide ordinary technical details; request only product, structural, or out-of-mandate decisions.
|
|
10
|
+
2. Before any writes for the work, obtain a dedicated worktree through the environment. Preserve existing work and explicitly target this worktree for writing tasks. One writer at a time.
|
|
11
|
+
3. Organize slices with the [design lead](./agents/design-lead.md), without changing product scope. Delegate detailed design of the next slice to them.
|
|
12
|
+
4. Organize the [design review](./reviews/design.md) loop: independent reviewer, feedback to the design lead, and verification of resolutions. Do not start implementation until this loop's criteria are satisfied.
|
|
13
|
+
5. Delegate implementation and verification to the [implementation lead](./agents/implementation-lead.md). Require observed results for real behavior appropriate to the domain. Reopen design if its significant decisions are invalidated.
|
|
14
|
+
6. Organize the [code review](./reviews/code.md) loop: independent review, fixes assigned to the implementation lead, then re-verification. Cover the entire change and its final integration.
|
|
15
|
+
7. Use the environment for the expected delivery. For a PR, verify that the published revision is the reviewed one and required checks pass. No automatic merge or deployment.
|
|
16
|
+
|
|
17
|
+
## Delegation and limits
|
|
18
|
+
|
|
19
|
+
Give each task its objective, exact target, applicable sources, criteria, permissions, and expected report. Do not assume it inherits the parent conversation. Assign reviews to agents other than the authors, in separate contexts; do not promise technical isolation the harness does not provide.
|
|
20
|
+
|
|
21
|
+
You manage handoffs between responsibilities and acceptance conditions; do not replace leads or their reviewers by doing detailed design, implementation, or substantive review yourself. They own their work and fixes; they do not accept their own work. Keep orchestration flat: no recursive teams by default. A responsibility requires neither a permanent agent nor a prescribed model.
|
|
22
|
+
|
|
23
|
+
Read cycle and budget limits in the project contract's `workflow.md`; session-specific settings may supplement them under project rules. Ask for them if missing. Stop on exhausted budget, churn without progress, a missing required capability, or an out-of-mandate blocker. Present options and a recommendation, without false acceptance or escalating every ordinary detail.
|
|
24
|
+
|
|
25
|
+
## Recovery, learning, and reporting
|
|
26
|
+
|
|
27
|
+
After an interruption, recover tasks, worktree, decisions, findings, and results before restarting. Do not duplicate operations whose outcome is unknown; check their state first.
|
|
28
|
+
|
|
29
|
+
When a problem yields a concrete lesson: observe → explain → improve code, a check, or instructions according to the cause → verify. Do not turn every comment into a rule, silently change acceptance, or refactor beyond scope. Propose structural or generic changes separately.
|
|
30
|
+
|
|
31
|
+
Communicate only meaningful progress and useful blockers. Deliver a short summary: outcome, verification and limits, risks, and delivery reference. Reuse native records; retain only the technical context needed to resume.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# T3 Code integration
|
|
2
|
+
|
|
3
|
+
Use available native capabilities; discover tool paths without hardcoding session MCP prefixes. Read their descriptions and schemas. Do not build a competing engine, task tracker, or publishing layer.
|
|
4
|
+
|
|
5
|
+
## Agents
|
|
6
|
+
|
|
7
|
+
- Consult `orchestrator_capabilities` for actually available providers, models, and constraints.
|
|
8
|
+
- Use `delegate_task` for tasks explicitly managed by T3; provide the necessary context, since parent history is not copied.
|
|
9
|
+
- For long work, prefer asynchronous mode, retain `taskId`, and await notification rather than polling. Read results with `task_status`; use `task_cancel` to cancel, without assuming code rollback.
|
|
10
|
+
- Each new independent review pass is a new delegation with a brief, findings, responses, and objections. A `clientRequestId` key stays stable for retries of the same pass and differs between passes.
|
|
11
|
+
- Do not confuse children with top-level conversations: `t3_thread_launch` and `create_threads` require an explicit request for new conversations, not just delegation.
|
|
12
|
+
|
|
13
|
+
## Worktree and review target
|
|
14
|
+
|
|
15
|
+
- Check the thread binding and available worktrees using exposed tools. Prepare the work in a dedicated worktree through the T3 mechanism appropriate to the situation.
|
|
16
|
+
- `delegate_task` with worktree isolation starts from the parent's local commit and does not copy uncommitted changes. `t3_worktree_handoff` moves the calling thread; inspect its preconditions and continuation before use.
|
|
17
|
+
- From the thread bound to the work, a shared review can inspect the frozen uncommitted target. The review role does not technically guarantee read-only access; prohibit writes and check actual diff availability.
|
|
18
|
+
- Do not create a new worktree assuming it contains another's uncommitted work. Changing directory in a prompt does not update the T3 binding.
|
|
19
|
+
|
|
20
|
+
## Git and PRs
|
|
21
|
+
|
|
22
|
+
- Assign the Git/PR workflow to the agent in T3. If no native T3 tool performs commits, pushes, or PR creation, use authorized harness tooling after checking availability and permissions; do not invent a native capability.
|
|
23
|
+
- Call `link_pull_request` immediately after creating or taking over each PR; reconcile with `list_thread_pull_requests` before delivery. Report linking failures.
|
|
24
|
+
- If monitoring is requested and available, the parent uses `watch_pull_request`, then ends the turn. Do not start a competing watcher; call `unwatch_pull_request` before handoff to the user.
|
|
25
|
+
- Verify the published revision and required checks with available tooling. No automatic merge or deployment.
|
|
26
|
+
|
|
27
|
+
## Recovery and missing capabilities
|
|
28
|
+
|
|
29
|
+
Consult existing tasks, workspace binding, and PRs before restarting. Answer child questions only within the mandate; do not bypass permission requests or user decisions.
|
|
30
|
+
|
|
31
|
+
If a required capability is missing, preserve work and report the precise need. No silent fallback to the main checkout, unrequested new conversation, or custom infrastructure.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Architecture — template to complete
|
|
2
|
+
|
|
3
|
+
Reference existing documents and specify their scope:
|
|
4
|
+
|
|
5
|
+
- Structural requirements and component/domain boundaries: to complete.
|
|
6
|
+
- Public contracts, allowed dependencies, and invariants: to complete.
|
|
7
|
+
- Security, load, latency, resilience, and operational budget, where relevant: to complete with observable criteria.
|
|
8
|
+
- Compatibility and migration/deployment rules: to complete.
|
|
9
|
+
|
|
10
|
+
Distinguish mandatory constraints, preferences, and non-normative examples. Do not impose a pattern or architecture absent from actual requirements.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Code style — template to complete
|
|
2
|
+
|
|
3
|
+
- Convention references and scope per language/package: to complete.
|
|
4
|
+
- Mandatory naming, organization, and semantic rules: to complete.
|
|
5
|
+
- Formatter: specify existing configuration, check command, and working directory.
|
|
6
|
+
- Lint: specify existing configuration, command, and working directory.
|
|
7
|
+
- Non-blocking preferences and authorized exceptions: to complete.
|
|
8
|
+
|
|
9
|
+
Reference formatter and linter configurations rather than restating all their rules in prose. Distinguish checking from automatic fixes; a writing command targets the work's worktree. Do not add a tool merely because this template mentions it.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Delivery — template to complete
|
|
2
|
+
|
|
3
|
+
- Deliverables: applicable code, tests, documentation, and migrations; adapt to the project.
|
|
4
|
+
- Expected PR destination and base: specify for the work.
|
|
5
|
+
- Required checks and any specific human approvals: to complete.
|
|
6
|
+
- Summary: outcome, verification and limits, residual risks, and PR reference.
|
|
7
|
+
|
|
8
|
+
The environment handles Git/PR operations according to the integration profile, without a Shipright publishing layer. All validations must apply to the final revision. A draft PR is not an accepted delivery. No automatic merge or deployment.
|
|
9
|
+
|
|
10
|
+
Project-specific review additions: reference if needed; they strengthen the workflow without silently removing loops or their coverage.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Project — template to complete
|
|
2
|
+
|
|
3
|
+
Status: unconfigured template. Neighboring files hold your rules or references to existing sources; do not duplicate rules.
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
To complete: product purpose, repository components and scopes, business documentation, and applicable native instructions.
|
|
8
|
+
|
|
9
|
+
## Configuration
|
|
10
|
+
|
|
11
|
+
- [Architecture](./architecture.md): design requirements and constraints.
|
|
12
|
+
- [Code style](./code-style.md): conventions, formatter, and lint.
|
|
13
|
+
- [Verification](./verification.md): checks and expected evidence.
|
|
14
|
+
- [Workflow](./workflow.md): delegation, limits, and escalation.
|
|
15
|
+
- [Delivery](./delivery.md): deliverables and handoff conditions.
|
|
16
|
+
|
|
17
|
+
Relative paths start from the containing document; commands specify their working directory. State global or package-local scope and authorized exceptions. A preference does not override a requirement; a local rule does not implicitly remove a global constraint. Report conflicts between mandatory rules.
|
|
18
|
+
|
|
19
|
+
Do not mistake the template for approved configuration. Missing information is not authorization; use existing sources and request only the details needed for the work.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Verification — template to complete
|
|
2
|
+
|
|
3
|
+
For each relevant check, specify: objective, scope, command or method, working directory, prerequisites, whether it is required, and expected evidence.
|
|
4
|
+
|
|
5
|
+
- Type checking, lint, and formatting: complete or reference from code-style.md.
|
|
6
|
+
- Business and integration tests: to complete.
|
|
7
|
+
- Real verification of the requested flow or behavior: complete for the domain.
|
|
8
|
+
- Conditional checks: migrations, security, concurrency, performance, accessibility, etc., where applicable.
|
|
9
|
+
|
|
10
|
+
A check not run remains unverified. Distinguish pre-existing failures from regressions without concealing either. Results must match the delivered revision. Inspect commands according to trust in the repository; never put secrets here.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Workflow — template to complete
|
|
2
|
+
|
|
3
|
+
## Mandate
|
|
4
|
+
|
|
5
|
+
- Ordinary, reversible, compliant technical details: delegated.
|
|
6
|
+
- Product decisions, structural exceptions, out-of-mandate risks, irreversible actions, or additional permissions: user decision.
|
|
7
|
+
- Specific rules on dependencies, public contracts, and migrations: to complete.
|
|
8
|
+
|
|
9
|
+
## Limits
|
|
10
|
+
|
|
11
|
+
- Design fix/review cycles: set, or reference approved session settings.
|
|
12
|
+
- Code fix/review cycles: set, or reference approved session settings.
|
|
13
|
+
- Time and/or cost budget, if measurable: to set.
|
|
14
|
+
- Tool failures and allowed retries: specify if needed.
|
|
15
|
+
- Adjustments allowed during the session and required authority: to specify.
|
|
16
|
+
|
|
17
|
+
A cycle is a fix followed by its review; the first review starts the loop. Do not reset counters by renaming a task. Distinguish environment-enforced limits from limits tracked only by the agent; do not invent unavailable cost figures.
|
|
18
|
+
|
|
19
|
+
Stop at the limit or on churn without progress: preserve work, explain the blocker, and propose a next step. Never accept automatically because the budget is exhausted. No setting may expand permissions or remove a mandatory requirement.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Project contract — template entry point
|
|
2
|
+
|
|
3
|
+
Configuration is now structured in [`project/`](./project/project.md): context, architecture, code-style, verification, workflow, and delivery. Use those templates for a new installation; the rest of this document retains the initial outline for transition purposes and is not a second configuration to fill in.
|
|
4
|
+
|
|
5
|
+
This document is a template, not a completed contract. Reference existing sources; do not invent commands or authorizations. Loading through native instructions and the selected integration profile is established during installation.
|
|
6
|
+
|
|
7
|
+
## Sources and scope
|
|
8
|
+
|
|
9
|
+
- Architecture and requirements: to complete, with scope and authorized exceptions.
|
|
10
|
+
- Conventions and style: to complete; distinguish requirements from preferences.
|
|
11
|
+
- Package-local sources, if needed: to complete.
|
|
12
|
+
|
|
13
|
+
Resolve relative paths from this document unless explicitly stated otherwise. A local rule does not implicitly cancel a global requirement. Native instructions and harness permissions remain applicable.
|
|
14
|
+
|
|
15
|
+
## Verification
|
|
16
|
+
|
|
17
|
+
For each applicable check: objective, command or method, working directory, prerequisites, whether it is required, and expected result. Report checks not run; do not present them as passed.
|
|
18
|
+
|
|
19
|
+
## Delegation
|
|
20
|
+
|
|
21
|
+
- Ordinary, reversible technical details compliant with requirements: delegated.
|
|
22
|
+
- Product ambiguity, structural exceptions, out-of-mandate risks, irreversible actions, or additional permissions: request a decision.
|
|
23
|
+
- Project-specific details, especially dependencies, migrations, and compatibility: complete as needed.
|
|
24
|
+
|
|
25
|
+
## Deliverables and review
|
|
26
|
+
|
|
27
|
+
- Requested change, tests, and applicable documentation/migrations.
|
|
28
|
+
- PR ready for human approval, short summary, verification, and residual risks. No automatic merge or deployment.
|
|
29
|
+
- Additional project-specific review perspectives: complete if needed. Design review and coverage of all changes remain applicable.
|
|
30
|
+
|
|
31
|
+
## Session limits
|
|
32
|
+
|
|
33
|
+
State or reference the cycle and budget limits selected for the task. They may be set in the session rather than permanently here. No secrets or expanded permissions in this contract.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Code review
|
|
2
|
+
|
|
3
|
+
Apply the [shared guidelines](./common.md). Examine the actual change and its consumers, not just its intent or directory structure.
|
|
4
|
+
|
|
5
|
+
## Questions to examine
|
|
6
|
+
|
|
7
|
+
- Does behavior satisfy the request, invariants, and error scenarios?
|
|
8
|
+
- Are there bugs, regressions, races, security flaws, or incompatibilities?
|
|
9
|
+
- Are structure, responsibilities, vocabulary, cohesion, and coupling appropriate?
|
|
10
|
+
- Does the code follow the accepted design and mandatory conventions and style?
|
|
11
|
+
- Do tests verify important behavior rather than merely reproduce implementation assumptions?
|
|
12
|
+
- Are migrations, configuration, dependencies, documentation, and deletions correct and consistent with the code?
|
|
13
|
+
- Do verification results actually apply to the delivered target?
|
|
14
|
+
|
|
15
|
+
Cover the entire assigned scope and report limits. A cross-cutting review must also examine interactions between slices. Do not leave semantic assessment solely to a formatter or type-checker.
|
|
16
|
+
|
|
17
|
+
If code reveals a design flaw, report it as such to the coordinator rather than imposing an implicit redesign. After fixes, examine new changes and their impacts under the shared convergence rules.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Shared review guidelines
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
Examine the artifact and its sources in a context separate from its author. Do not modify the target. Do not seek a quota of comments or impose personal preferences.
|
|
6
|
+
|
|
7
|
+
Use the criteria for [design](./design.md) or [code](./code.md). Read the project contract and applicable requirements. Do not assume the author's summary describes every risk or change.
|
|
8
|
+
|
|
9
|
+
Identify the target and revision. Report actual coverage, checks performed, and limits. Use an appropriate, explicit method for generated or binary files. If the target changes during review, identify affected conclusions.
|
|
10
|
+
|
|
11
|
+
## Findings and resolution
|
|
12
|
+
|
|
13
|
+
A finding states: location, problem and affected criterion, concrete consequence, evidence or verifiable reasoning, and blocking or non-blocking status with justification. Distinguish facts from assumptions, regressions from pre-existing issues, and requirements from preferences.
|
|
14
|
+
|
|
15
|
+
A finding is blocking if a requirement is unmet or a concrete risk exceeds the mandate. An optional preference is not blocking; a mandatory convention cannot be dismissed as mere style.
|
|
16
|
+
|
|
17
|
+
The coordinator has findings assessed before fixes. The author may fix or challenge them with evidence. A resolution must be verified by a responsibility separate from the fix's author. A persistent disputed blocking finding goes to independent adjudication, then to the user if it remains outside the mandate or reaches the limits. A vote or score does not replace evidence. Only the authorized authority may accept risk.
|
|
18
|
+
|
|
19
|
+
## Convergence
|
|
20
|
+
|
|
21
|
+
Start with a complete pass, then review fixes and impacts. Do not repeat a resolved finding without new evidence; still report real defects discovered late. Expand analysis when impacts require it.
|
|
22
|
+
|
|
23
|
+
The coordinator ensures coverage of the entire final diff, including new uncommitted files, and cross-slice analysis. A fix reopens affected validations. Rerun required checks on the correct revision.
|
|
24
|
+
|
|
25
|
+
Accept when applicable criteria and expected evidence are satisfied and no blocking finding remains without a verified resolution or authorized acceptance. Optional suggestions may remain: no score out of 10 or zero-comment target.
|
|
26
|
+
|
|
27
|
+
Respect cycle and budget limits. On reaching them, or on churn without progress, step back with the coordinator; do not declare false success.
|
|
28
|
+
|
|
29
|
+
Report briefly: target and coverage, findings, verification and limits, and a conclusion of **acceptable**, **changes required**, or **verification incomplete**. Acceptance does not guarantee an absence of defects.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Design review
|
|
2
|
+
|
|
3
|
+
Apply the [shared guidelines](./common.md). Examine the solution before implementation, independently of its author, against the actual need and constraints.
|
|
4
|
+
|
|
5
|
+
## Questions to examine
|
|
6
|
+
|
|
7
|
+
- Does the division of responsibilities, domains, and contracts fit the business and existing system?
|
|
8
|
+
- Are data flows, invariants, and trust boundaries explicit and consistent?
|
|
9
|
+
- Are concurrency, idempotency, and consistency addressed where they matter?
|
|
10
|
+
- Are security, resilience, failure handling, and recovery appropriate to the risks?
|
|
11
|
+
- Does the solution meet known load, latency, scalability, and cost requirements? Do not invent unsupported scaling needs.
|
|
12
|
+
- Do schema, contract, and deployment changes preserve expected compatibility?
|
|
13
|
+
- Are abstractions and dependencies justified, without speculative complexity?
|
|
14
|
+
- Are criteria verifiable, and does the test strategy cover critical cases?
|
|
15
|
+
|
|
16
|
+
A short design may suffice for a small change. Flag unverified critical assumptions rather than habitually demanding exhaustive documentation.
|
|
17
|
+
|
|
18
|
+
Report substantiated findings, their consequences, and analysis limits. After fixes, verify resolutions and affected decisions. Do not validate based on a score or agreement between several models alone.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Technical workflow activation
|
|
2
|
+
|
|
3
|
+
This file is the agent entry point. The integration must reference it through the harness's native instructions; its presence alone does not guarantee loading.
|
|
4
|
+
|
|
5
|
+
- For a clear implementation, fix, or refactoring request: follow the [coordinator](./coordinator.md) without asking the user to invoke a special command.
|
|
6
|
+
- For a question, explanation, design discussion, or read-only exploration: respond normally without starting implementation, a worktree, or a PR. Apply relevant design criteria when useful.
|
|
7
|
+
- If intent to write or publish is unclear: clarify it before acting; authorized exploration is not authorization to start implementation.
|
|
8
|
+
- Respect explicit request restrictions, higher-priority instructions, and permissions. Disabling the workflow for a request does not cancel mandatory repository constraints.
|
|
9
|
+
|
|
10
|
+
The installation binding must identify the applicable project contract and selected integration profile. If these references are missing, do not invent them; consult existing instructions and report the information needed for the work.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Multi-repo architecture — to complete
|
|
2
|
+
|
|
3
|
+
Reference existing documents: repo responsibilities, boundaries, interfaces/APIs, shared formats, compatibility, and integration order.
|
|
4
|
+
|
|
5
|
+
Specify relevant cross-cutting requirements: security, consistency, resilience, load, and cost. Do not invent scaling needs or dependencies absent from the product.
|
|
6
|
+
|
|
7
|
+
Each repo retains its internal constraints. A cross-repo contract change requires overall design and review before local implementation.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Workspace — shared context to complete
|
|
2
|
+
|
|
3
|
+
Describe the product and reference existing business rules. The structural inventory is in `../workspace.json`, whose repo paths start from the directory containing that manifest.
|
|
4
|
+
|
|
5
|
+
- [Shared architecture](./architecture.md): cross-repo responsibilities and contracts.
|
|
6
|
+
- [Cross-repo verification](./verification.md): flows and expected revision combination.
|
|
7
|
+
- [Shared workflow](./workflow.md): shared mandate and limits.
|
|
8
|
+
|
|
9
|
+
Each repo keeps its local contract and installation. Shared rules do not remove mandatory local requirements; escalate conflicts. Do not assume workspace files are copied into worktrees.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Cross-repo verification — to complete
|
|
2
|
+
|
|
3
|
+
For each cross-repo flow: criteria, method/command, working directory, prerequisites, services, data, and expected evidence. Installation runs no commands.
|
|
4
|
+
|
|
5
|
+
Identify the exact revisions of each repo verified together. Passing local tests does not prove the cross-repo flow works. Report checks that cannot run, without implicit acceptance.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Shared mandate — to complete
|
|
2
|
+
|
|
3
|
+
Define global limits for cycles, time, and available cost, along with required decisions. Local limits must not be used to silently multiply the global budget.
|
|
4
|
+
|
|
5
|
+
Technical slicing is delegated. Escalate product decisions, structural changes, permissions, and out-of-mandate risks. The environment retains task, worktree, and PR management; no automatic merge or deployment.
|
|
6
|
+
|
|
7
|
+
A cross-repo request may produce several linked PRs with explicit integration order. Coordinating them is not an atomic merge and does not justify creating unauthorized top-level conversations.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Multi-repo coordination
|
|
2
|
+
|
|
3
|
+
Read the workspace manifest and shared sources identified in its contract. Identify the repos needed for the request, then their local contracts. Do not assume every repo must change.
|
|
4
|
+
|
|
5
|
+
For a question or read-only exploration, do not start implementation. For technical work:
|
|
6
|
+
|
|
7
|
+
1. Check that the environment can target the relevant repos. Changing directory does not change a thread's T3 binding. If the capability is missing, explain the limit and request the necessary action without creating unauthorized conversations.
|
|
8
|
+
2. Delegate overall design and its review loop: contracts, compatibility, dependencies, and integration order. Apply the shared technical coordinator's responsibilities and rules.
|
|
9
|
+
3. Organize local implementation in a dedicated worktree per modified repo, with its review loops. Explicitly give each task relevant shared context, the local contract, targets, and criteria; do not rely on parent files or conversation history.
|
|
10
|
+
4. Have cross-repo flows verified against an identified combination of revisions. Reconcile findings and affected changes across all repos.
|
|
11
|
+
5. Deliver linked PRs, their verification, risks, and integration order. Do not assume atomic merging or merge automatically.
|
|
12
|
+
|
|
13
|
+
From a linked repo, the link is in `.shipright/workspace-link.json`. The `repo context` CLI can resolve actual paths, including for standard Git worktrees, without changing the T3 binding. If unavailable, the coordinator provides context explicitly; do not guess a worktree's parent directory.
|
|
14
|
+
|
|
15
|
+
Shared policies and rules may not be accessible to isolated children. Before delegating, check availability or pass relevant requirements with their provenance. If required context remains inaccessible, block affected decisions rather than claim unverified compliance.
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipright/shipright",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0-nightly.0",
|
|
4
|
+
"description": "Configurable engineering workflows for coding agents. Ship fast. Ship right.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": ["coding-agents", "workflow", "t3-code", "opencode", "claude-code", "codex", "bun"],
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": {
|
|
9
|
+
"shipright": "dist/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
12
|
+
"engines": { "bun": ">=1.3.10" },
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"tag": "nightly",
|
|
16
|
+
"registry": "https://registry.npmjs.org/"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@clack/prompts": "1.8.1",
|
|
20
|
+
"commander": "15.1.0",
|
|
21
|
+
"jsonc-parser": "3.3.1"
|
|
22
|
+
}
|
|
23
|
+
}
|