Repository navigation
Conversation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
@codex review |
There was a problem hiding this comment.
Pull request overview
This pull request introduces a new domain-neutral council-convening contract family (schema + indexed conformance corpus + deterministic validator) and wires it into the repo’s release/contract surfaces as a contract-v2.3 candidate. It also modularizes the Hermes runtime validator CLI tests by extracting shared helpers into support modules.
Changes:
- Add
contracts/council-convening/(closed Draft 2020-12 schema, indexed fixtures, and orientation/ownership docs). - Add
scripts/validate-council-convening.py+scripts/council_convening_validation/*implementing a deterministic validator and YAML loader with adversarial hardening. - Register the new family in
contracts/README.md,contracts/manifest.yaml,contracts/hermes-runtime/contract-index.yaml, andcontracts/CHANGELOG.md, plus add feature planning artifacts underspecs/026-add-resolved-council-seats/.
Reviewed changes
Copilot reviewed 60 out of 61 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/hermes_runtime_contracts/validator_cli_support.py | New shared helpers/fixtures for Hermes runtime validator CLI tests |
| tests/hermes_runtime_contracts/test_validator_cli.py | Refactor to use shared support helpers; keep core CLI behavior tests |
| tests/hermes_runtime_contracts/test_validator_cli_snapshot.py | New isolated-snapshot tests moved out of the main CLI test module |
| tests/council_convening/validator_cli_support.py | CLI helpers + temporary isolated validator setup for council-convening tests |
| tests/council_convening/test_validator_cli.py | End-to-end CLI protocol + deterministic output + conformance/perf assertions |
| tests/council_convening/test_us3_contract.py | Tests that acceptance-map + successor gating remains honest/open for externals |
| tests/council_convening/test_contract.py | Schema/index parity, closure, and shape invariants for the new family |
| tests/council_convening/test_adversarial_boundaries.py | Adversarial YAML/path/provenance tests to enforce fail-closed parsing |
| tests/council_convening/support.py | Shared test utilities for schema/index/acceptance-map loading and helpers |
| tests/council_convening/init.py | Package marker for council_convening tests |
| specs/026-add-resolved-council-seats/tasks.md | Implementation task ledger for the feature |
| specs/026-add-resolved-council-seats/spec.md | Feature specification defining FR/SC coverage and boundaries |
| specs/026-add-resolved-council-seats/research.md | Design decisions and tradeoffs for the neutral contract family |
| specs/026-add-resolved-council-seats/quickstart.md | Operator quickstart for running local provider gates and building a candidate |
| specs/026-add-resolved-council-seats/plan.md | Implementation plan and repo structure for the feature |
| specs/026-add-resolved-council-seats/data-model.md | Data model + invariants + stable finding codes |
| specs/026-add-resolved-council-seats/contracts/successor-handoff.md | Successor ownership/activation responsibilities and evidence boundaries |
| specs/026-add-resolved-council-seats/contracts/council-convening-envelope.md | Planning contract describing the envelope and normative validation steps |
| specs/026-add-resolved-council-seats/contracts/conformance-corpus.md | Planning contract for the indexed portable conformance corpus |
| specs/026-add-resolved-council-seats/contracts/acceptance-map.yaml | Machine-readable mapping of requirements/outcomes to gates |
| specs/026-add-resolved-council-seats/checklists/requirements.md | Spec quality checklist for the feature |
| scripts/validate-council-convening.py | Entrypoint wrapper for the council-convening validator |
| scripts/council_convening_validation/yaml_io.py | YAML loader/normalizer with duplicate-key detection and portability checks |
| scripts/council_convening_validation/validation.py | Case validation: schema gating + provenance + roster arithmetic findings |
| scripts/council_convening_validation/runner.py | Execution runner and expectation checks producing deterministic reports |
| scripts/council_convening_validation/provenance.py | Provenance evaluation and stable refusal code selection |
| scripts/council_convening_validation/paths.py | Canonical paths for schema/index/fixtures |
| scripts/council_convening_validation/models.py | Typed models + deterministic JSON report projection |
| scripts/council_convening_validation/index.py | Fixture index parsing + path containment + parity checks |
| scripts/council_convening_validation/fixture.py | Fixture input parsing (convening + resolver inputs) |
| scripts/council_convening_validation/cli.py | CLI surface (--strict, --case, --json) and stable output formatting |
| scripts/council_convening_validation/init.py | Package exports for validator components |
| openspec/changes/add-resolved-council-seats/tasks.md | Records successor feature IDs and keeps external evidence explicitly open |
| openspec/changes/add-resolved-council-seats/specs/roles-authority-model/spec.md | Governing OpenSpec deltas for roster/provenance/freeze semantics |
| openspec/changes/add-resolved-council-seats/proposal.md | Ratified proposal describing breaking hard-cutover semantics |
| openspec/changes/add-resolved-council-seats/design.md | Governing design rationale for the neutral contract boundary |
| openspec/changes/add-resolved-council-seats/.openspec.yaml | Packet metadata including origin/approval info |
| docs/roles-and-authority.md | Canonical doc amended to include resolved convening authority semantics |
| contracts/README.md | Contract catalog entry for council-convening family and validator |
| contracts/manifest.yaml | Bump bundle version to contract-v2.3 and register new contract artifacts |
| contracts/hermes-runtime/contract-index.yaml | Add council-convening artifacts into Hermes runtime contract index |
| contracts/council-convening/resolved-council-convening.schema.yaml | New closed Draft 2020-12 schema for the resolved convening |
| contracts/council-convening/README.md | New family orientation/ownership/evidence/prohibited-data documentation |
| contracts/council-convening/fixtures/positive/standing-roster.yaml | Positive fixture: standing seats only |
| contracts/council-convening/fixtures/positive/conditional-seat-required.yaml | Positive fixture: conditional seat required |
| contracts/council-convening/fixtures/negative/rule-revision-unavailable.yaml | Negative fixture: immutable rule unavailable |
| contracts/council-convening/fixtures/negative/roster-unknown-seat.yaml | Negative fixture: unknown seat present |
| contracts/council-convening/fixtures/negative/roster-standing-incomplete.yaml | Negative fixture: missing standing seat |
| contracts/council-convening/fixtures/negative/roster-mismatch.yaml | Negative fixture: roster differs from independent reproduction |
| contracts/council-convening/fixtures/negative/roster-malformed.yaml | Negative fixture: invalid roster shape |
| contracts/council-convening/fixtures/negative/roster-empty.yaml | Negative fixture: empty roster |
| contracts/council-convening/fixtures/negative/roster-duplicate.yaml | Negative fixture: duplicate seat IDs |
| contracts/council-convening/fixtures/negative/roster-absent.yaml | Negative fixture: roster absent post-cutover |
| contracts/council-convening/fixtures/negative/provenance-opaque.yaml | Negative fixture: provenance absent/opaque |
| contracts/council-convening/fixtures/negative/fact-missing.yaml | Negative fixture: missing consumed fact |
| contracts/council-convening/fixtures/negative/condition-result-drift.yaml | Negative fixture: producer vs independent condition evaluation drift |
| contracts/council-convening/fixtures/negative/candidate-head-stale.yaml | Negative fixture: candidate head changed since resolution |
| contracts/council-convening/fixtures/index.yaml | Ordered fixture index with expected outcomes and primary findings |
| contracts/CHANGELOG.md | Add contract-v2.3 candidate entry describing the additive new family |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| if value is None or isinstance(value, str | bool | int | float): | ||
| return value |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 58452d538f
ℹ️ 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".
| candidate = mapping(provenance["candidate"], "candidate", path) | ||
| if string(candidate["head_revision"], "candidate head revision", path) != resolver.candidate_head: | ||
| return ProvenanceRefused("candidate_head_stale") |
There was a problem hiding this comment.
Bind candidate-head lookups to the candidate identity
When candidate.repository or candidate.pull_request is changed while head_revision remains the same, this comparison still accepts the convening because ResolverInput carries only an unkeyed head string. The validator therefore cannot establish that the authoritative head was obtained for the candidate named in the provenance, allowing a fixture with mismatched candidate identity to pass; include the repository and pull-request identity in the resolver result and compare them before accepting the head.
Useful? React with 👍 / 👎.
| expectation_valid = outcome == "accept" and primary is None | ||
| expectation_valid = expectation_valid or ( | ||
| outcome == "refuse" and isinstance(primary, str) and bool(primary) | ||
| ) |
There was a problem hiding this comment.
Enforce case class against the expected outcome
If an index entry is labeled positive with expected_outcome: refuse (or negative with accept), this check accepts it because it validates only the primary finding/outcome pair and never relates class to the outcome. The runner can consequently report a passing corpus even though positive fixtures are required to accept with no findings and negative fixtures are required to refuse; reject class/outcome mismatches while parsing the entry.
Useful? React with 👍 / 👎.
|
This PR is CONFLICTING with What was measured here
Why it looks like a queueGitHub cannot compute a merge ref for a conflicted PR, so every workflow triggered This cost another lane three pushes and several hours on #544 today before the cause was found, which is why it is being reported rather than left to be rediscovered. The fixMerge Worth knowing: on #544 |
|
Lane: openxfactory-1d CLOSED — superseded by the release history, on Brett Heap's word (2026-09-02, in session: "close 517"). This PR proposes a |
Summary
contract-v2.3.Verification
b90065d7bcc9fcba067edcd824ac9557db23a681827c60c0f24d67ada23b47ff.release verify-commit: pass).Testing commands:
Safety and Gates
External successor/runtime/OIDC/deployment/cutover evidence remains open. Merge requires A3; the annotated tag requires A4. No activation occurs in this PR.