Skip to content

ci: observe current Threads through the real daemon without requiring it - #49

Merged
BunsDev merged 1 commit into
mainfrom
ci/threads-daemon-observation-20260912
Sep 12, 2026
Merged

BunsDev merged 1 commit into
mainfrom
ci/threads-daemon-observation-20260912

Conversation

@BunsDev

@BunsDev BunsDev commented Sep 12, 2026

Copy link
Copy Markdown
Member

Objective and scope

Implement the authorized September 12 continuation under #31: a non-required scheduled coven/main canary and immutable manual candidate observation, plus the exact-head handoff reconciliation. Human authorization scope is recorded at #31 (comment). Local tracking: threads-cxv / threads-cxv.1.

Behavior and acceptance

  • Manual observations require a full Coven SHA; scheduled main resolves to an exact recorded SHA.
  • Clean disposable checkouts only. A downstream Cargo config patch reaches nested harness metadata; overlay lock resolution is explicit and recorded before locked execution.
  • Prove the exact current Threads manifest on coven-cli resolved dependency edge, not the presence of any local package.
  • Run the real threads_e2e target with threads-test-clock and required-local-override enabled; missing harness fails visibly, never substitutes core tests.
  • Retain uncached run/attempt-specific observation.json and sanitized journey bundles; refuse artifact reuse.
  • Preserve historical daemon evidence while crediting landed clock/protected/terminal checkpoints and all remaining blocker owners.

Authority, privacy, compatibility, migration

No Rust contract, schema, migration, protected floor, compatibility pin, required-check list, ruleset, or human-gate decision changes. No real familiar fixtures or interaction history included. Workflow has read-only token permissions and non-persisted checkout credentials. Separate advisory failures remain visible, not required branch checks. Existing Cargo baseline stays source of truth.

Sources and changed surfaces

Consulted AGENTS.md, agent/manifest.yaml, Familiar Contract RFC-0001, Phase-5 decision record, e2e contract/compatibility manifest, daemon producer/loader/binding/harness at ea3f455a, main targets at aa527d2d, and exact GitHub issue/CI receipts. Changes: daemon-observation.yml, run-daemon-canary.mjs and tests, CONTRIBUTING.md, docs/testing/e2e-contract.md, docs/phases.md, docs/strategy.md, and two dated handoff/review documents.

Evidence

  • node --test scripts/tests/daemon-canary.test.mjs scripts/tests/check-ci-pins.test.mjs: 37 passed.
  • node scripts/privacy-guard.mjs: clean index.
  • git diff --cached --check: clean before commit.
  • Fail-closed regressions cover wrong Git/local dependency, graph ambiguity, missing target, dirty checkout, daemon failure, lock mutation, and artifact reuse.
  • No current-checkout daemon green is claimed. Main aa527d2d lacks the full target; candidate integration is being reconciled separately in P0: Add real-daemon Threads black-box E2E harness against the current checkout coven#884/#931. First hosted observation must preserve that distinction.

Rollback and remaining gates

Revert this workflow/runner/docs change to remove advisory scheduling; no live required policy must be undone. The default-branch workflow must land before scheduling/manual dispatch becomes available. Full-SHA required-pin adoption, native/Cave acceptance, root red-fix-green dossiers, measured 30-day reliability, independent coherence and Val freeze remain separate. No retries erase first-attempt failures.

Integrate the September 12 exact-head handoff and preserve bounded main landings separately from open Phase-5 acceptance. Add immutable manual candidate and scheduled latest-main observation without changing the stable pin or required checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Val Alexander <68980965+BunsDev@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 12, 2026 06:19
@BunsDev

BunsDev commented Sep 12, 2026

Copy link
Copy Markdown
Member Author

Additional attributable fail-closed evidence: invoked the committed runner from clean Threads d390ecd against clean Coven main aa527d2dbcd1edcda470483c1a91a519f24e8406. It exited 1 at preflight with selected Coven revision has no real-daemon threads_e2e target, persisted observation.json with exact revisions/status=failed/local_threads_override_active=false, and left both checkouts unchanged. This is intentional missing-harness refusal, not a daemon green or a Phase-5 blocker reproduction. The full harness candidate is being reconciled separately.

@BunsDev
BunsDev merged commit 237031a into main Sep 12, 2026
7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The canary contains one critical and two moderate correctness findings, with additional stale documentation statements.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds an advisory scheduled/manual real-daemon canary with exact-SHA checkout, Cargo override verification, immutable artifacts, regression tests, and related documentation.

Changes:

  • Adds the daemon observation workflow and runner.
  • Adds fail-closed canary tests and evidence handling.
  • Updates E2E, contributor, phase, strategy, and handoff documentation.
File summaries
File Description Findings
scripts/tests/daemon-canary.test.mjs Canary behavior and failure tests No findings.
scripts/run-daemon-canary.mjs Checkout, override, metadata, and evidence runner Critical (1 vote, line 37): dependency key comparison uses the wrong underscore form. Moderate (1 vote each, lines 97 and 115): filesystem target preflight rejects valid layouts, and Cargo metadata lacks package selection.
docs/testing/e2e-contract.md Observation and artifact contract No findings.
docs/strategy.md Integration strategy updates No findings.
docs/reviews/2026-09-12-nova-handoff.md Daemon handoff context No findings.
docs/reviews/2026-09-12-handoff-integration-review.md Exact-head integration review Nit (1 vote, line 50): refreshed-state workflow status is stale. Nit (3 votes, line 197): documentation incorrectly describes the PR as documentation-only.
docs/phases.md Phase-5 status updates No findings.
CONTRIBUTING.md Advisory workflow guidance No findings.
.github/workflows/daemon-observation.yml Scheduled/manual advisory canary workflow No findings.
Review details

Suppressed comments (3)

docs/reviews/2026-09-12-handoff-integration-review.md:50

  • This refreshed-state row is now stale relative to the PR: .github/workflows/daemon-observation.yml adds the scheduled advisory canary, and docs/strategy.md:134-139 describes it as present. If this table is intended to preserve the pre-landing baseline, label it that way; otherwise say the workflow is present but not active until it lands on the default branch, rather than claiming it is not wired.
| Threads CI and effective main rules | Five required checks remain, including privacy; no pinned-daemon job or scheduled latest-main canary is wired |

scripts/run-daemon-canary.mjs:115

  • The selected Coven checkout is a virtual workspace, while threads-test-clock is defined on coven-cli; this metadata invocation has no package selection, so Cargo cannot apply the feature at the workspace root and the canary fails before it can prove the override. Select the package here, as the actual test command already does.
    const metadataArgs = ["metadata", "--format-version", "1", "--features", "threads-test-clock"];

scripts/run-daemon-canary.mjs:99

  • This preflight rejects valid downstream layouts before proveOverride runs: the contract requires a Cargo target named threads_e2e (which the metadata check above already verifies), not the conventional tests/threads_e2e.rs filename. A candidate declared with [[test]] name = "threads_e2e" and a different path is incorrectly reported as missing. Remove this filesystem check and rely on the metadata target proof.
    if (!existsSync(join(coven, "crates/coven-cli/tests/threads_e2e.rs"))) {
      throw new Error("selected Coven revision has no real-daemon threads_e2e target");
    }
  • Files reviewed: 9/9 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

}
const clientNodes = nodes.filter((node) => node.id === client.id);
const deps = clientNodes.length === 1
? clientNodes[0].deps?.filter((dep) => dep.name === "coven_threads_core")
Comment on lines +197 to +200
Changed documentation: this review, the supplied handoff's continuation link,
`docs/phases.md`, and `docs/strategy.md`. No Rust, dependency, schema, migration,
compatibility pin, workflow, or remote repository setting was changed. Private
interaction history is not part of the documentation change.
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.

2 participants