Skip to content

feat(orchestration): integrate v0.9 reliability control plane and release gates - #33

Merged
eybersjp merged 79 commits into
mainfrom
feat/v0.9-command-integration-release
Sep 1, 2026
Merged

feat(orchestration): integrate v0.9 reliability control plane and release gates#33
eybersjp merged 79 commits into
mainfrom
feat/v0.9-command-integration-release

Conversation

@eybersjp

Copy link
Copy Markdown
Owner

Purpose

Complete the v0.9 reliability control plane on top of the green ORCH-001, REL-001, ORCH-002 and core-orchestration stacks.

Current integration scope

  • canonical artifact amendment/reconciliation with before/after fingerprints and read-back verification
  • deterministic PLAN validation for task counts, dependencies, cycles, ownership and acceptance-criterion coverage
  • orchestration CLI for prepare/context/verify/acceptance/correction/safety/reconcile/plan/status operations
  • Autopilot contract-aware result gate that prevents VERIFY, REVIEW or COMPLETE from advancing on unresolved runtime evidence while preserving legacy-project compatibility
  • Proposal Builder adversarial release regression fixture covering the observed field failures
  • mandatory CI and release-validation gates for orchestration integration and v0.9 regressions

Proposal Builder regression coverage

The fixture detects:

  • declared task count differs from actual task count
  • dependency diagram differs from authoritative dependency data
  • missing resource ownership
  • duplicate resource/migration ownership
  • uncovered acceptance criterion
  • 17 passing tests vs 23 required security controls => 73.91% / INCOMPLETE
  • unverified service-role/function-owner/schema/RBAC/migration/environment controls
  • host-wide Docker cleanup from a project-local task
  • implementation-agent self-certification
  • authoritative source staleness
  • stale amendment replay
  • incomplete project installation/runtime/schema assets and version alignment

Remaining before merge/release

  • update public command definitions and relevant agent contracts to invoke the runtime automatically
  • synchronize plugin mirror
  • final documentation/version/release notes
  • run full npm run release:validate
  • independent diff review
  • merge and publish v0.9.0 only if every gate is green

Keep draft until final release gates are complete.

@eybersjp
eybersjp marked this pull request as ready for review September 1, 2026 15:43
@eybersjp
eybersjp merged commit 2077396 into main Sep 1, 2026
3 checks passed

@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: a5728f0246

ℹ️ 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".

if (!verification) {
pending.push({ code: 'MISSING_VERIFICATION' });
} else {
validateVerificationRecord(verification);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Bind verification criteria to the active contract

When acceptance receives a serialized verification record through the orchestration CLI, this call validates only the record's internal shape; it never checks that its criterion IDs, statements, or count match contract.acceptanceCriteria. A forged record containing one arbitrary PASS criterion with test evidence is therefore accepted even when the contract has multiple entirely different criteria, allowing uncovered requirements to produce ACCEPTED; validate the record against the active contract before trusting its verdict.

Useful? React with 👍 / 👎.

Comment on lines +83 to +87
const updatedRun = updateRun(run, {
verificationVerdict: verification?.verdict ?? null,
acceptanceState: acceptance.state,
state: acceptance.state === 'ACCEPTED' ? 'ACCEPTED' : acceptance.state === 'BLOCKED' ? 'BLOCKED' : 'PAUSED',
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reject acceptance evidence from another run

When callers pass run B together with valid contract evidence from run A, decideAcceptance returns an accepted record for A, but this block applies that state to B without comparing run.runId to acceptance.runId. The CLI consequently persists run B as final ACCEPTED using another run's verification; require the run, contract, fingerprint, and acceptance identities to match before updating state.

Useful? React with 👍 / 👎.

function extractFilesystemTargets(command) {
const targets = [];

for (const match of command.matchAll(/(?:^|[;&|]\s*)rm\s+(?:-[A-Za-z]*[rRfF][A-Za-z]*\s+)+([^;&|]+)/gi)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Recognize wrapped destructive filesystem commands

When a destructive command is prefixed by a common wrapper, such as sudo rm -rf / or sh -c "rm -rf /", this start-of-command matcher finds no target and the safety engine returns ALLOW with destructive: false; by contrast, bare rm -rf / is blocked. This is normal wrapper behavior—sudo --help describes it as executing a supplied command—so callers relying on this preflight can execute host-wide deletion without approval; unwrap recognized launchers or fail closed when command structure cannot be safely parsed.

Useful? React with 👍 / 👎.

Comment thread commands/dk-build.md
Task is done. Proceed to the next `/dk-build` or `/dk-build-auto`.
1. Select the next approved task from the validated PLAN.
2. Run repository orientation and task-readiness checks.
3. Create or resolve the active Development Contract and orchestration run using `node scripts/orchestration.mjs --operation=prepare-run`. Bind `design.md` automatically for UI/design-governed work.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore the Design Authority workflow gates

For UI tasks, automatically binding design.md does not replace the removed Design System preflight, compliance audit, or Same Design Team Test/DS issue reporting. The checked npm run design-authority:validate now fails the workflow-contract assertions for dk-build, dk-test, and dk-review, which also makes the newly expanded release:validate fail; restore those explicit gates in the rewritten commands before release.

AGENTS.md reference: AGENTS.md:L27-L27

Useful? React with 👍 / 👎.

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