diff --git a/AGENTS.md b/AGENTS.md index 7fa6bd8..f055a37 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -22,7 +22,7 @@ **Mandatory accepted Index assessment gate:** Before **any named Upstream roadmap, upgrade, original-specific batch decision, code implementation or public fork/original publication**, read back an accepted `status: included` standalone general assessment and matching `data/catalog.psv` identity/`review_ref` for the exact original in a pinned `opensiro/vsm-harness-index` commit. Record accepted blob/Index SHAs, review date, Profile/Methodology and current original HEAD. A proposed PR, excluded record, predecessor vector or `.opensiro` draft does **not** qualify. If absent: `ASSESSMENT_REQUIRED / BLOCKED`; only lawful intake/source preflight and owning Index assessment/admission are allowed. Re-run roadmap after canonical Index admission and readback. See [mandatory protocol](PROTOCOL.md#mandatory-accepted-assessment-prerequisite--fail-closed). -**Architecture-first `upstream roadmap OWNER/REPO` — PLAN_ONLY full cycle to fork-local Issue:** Use one named original, current source/issue/PR heads and accepted historical Index assessment separately. Create a [Capability Roadmap Receipt](docs/CAPABILITY_ROADMAP.md), map actual VSM decision owner/closure and competing work before proposing useful composable `C` constructors. Optional `C(P)`/`A(P)` applies only when separately proved for S3/S4/S5; autonomy is never mandated. Offer source-native code, Profile/Skills specification feedback, or a separately permitted domain fork. VSM and cost-saving claims are hypotheses, not proof. **Default deliverable:** resolve the matching fork or, if conclusively missing, create it under the owner's 2026-11-18 standing roadmap instruction and effective provider/legal rights; save the one Human/AI/receipt case on `opensiro/meta`, prepare the complete public fork GitHub Issue title/body, and publish/read it back **only after separate exact current-conversation owner approval**. Without consent, leave `READY_FOR_FORK_ISSUE_APPROVAL — NOT PUBLISHED`; without metadata rights, report `PERSISTENCE_BLOCKED / NOT_PERSISTED`. No automatic Index regrade, product PR or external-original Issue. The original maintainer template remains `DRAFT — NOT PUBLISHED` until another separately approved third-party action; code requires normal Upgrade and consent gates. [Route](PROTOCOL.md#architecture-first-upstream-roadmap-ownerrepo-plan-only) · [template](templates/EXTERNAL_ARCHITECTURE_ISSUE.md). +**Architecture-first `upstream roadmap OWNER/REPO` — PLAN_ONLY full cycle to fork-local Issue:** Use one named original, current source/issue/PR heads and accepted historical Index assessment separately. Create a [Capability Roadmap Receipt](docs/CAPABILITY_ROADMAP.md), map actual VSM decision owner/closure and competing work before proposing useful composable `C` constructors. Use `C(P)` as the exact prospective target for S3/S4/S5 when an independently evidenced parent mode is preserved alongside the proposed C constructor; record Parent mode witness and preserve both modes. Otherwise target C. Autonomy is never mandated. Offer source-native code, Profile/Skills specification feedback, or a separately permitted domain fork. VSM and cost-saving claims are hypotheses, not proof. **Default deliverable:** resolve the matching fork or, if conclusively missing, create it under the owner's 2026-11-18 standing roadmap instruction and effective provider/legal rights; save the one Human/AI/receipt case on `opensiro/meta`, prepare the complete public fork GitHub Issue title/body, and publish/read it back **only after separate exact current-conversation owner approval**. Without consent, leave `READY_FOR_FORK_ISSUE_APPROVAL — NOT PUBLISHED`; without metadata rights, report `PERSISTENCE_BLOCKED / NOT_PERSISTED`. No automatic Index regrade, product PR or external-original Issue. The original maintainer template remains `DRAFT — NOT PUBLISHED` until another separately approved third-party action; code requires normal Upgrade and consent gates. [Route](PROTOCOL.md#architecture-first-upstream-roadmap-ownerrepo-plan-only) · [template](templates/EXTERNAL_ARCHITECTURE_ISSUE.md). **Unknown target exclusion (temporary, owner decision 2026-12-02).** An accepted Index state `?` is unresolved evidence, not an engineering gap. Do not select, construct, persist a new/revised feature Roadmap for, or seek publication of a transition from `Sx=?` (including explicit A/P experiments). Route the selected function to the Index-owned `[Assessment re-review]` procedure and wait for an accepted resolved state; an Upstream source inspection cannot silently replace it. Other resolved functions in the same vector remain eligible after the normal six-function census. If none qualifies, report `NEEDS_EVIDENCE` and no outreach; if an explicitly requested function is `?`, do not substitute another function. Historical cases/publications remain readable and unchanged; block new or revised proposals targeting `?`, not monitoring or methodological feedback. `GO + NEEDS_EVIDENCE` for a resolved eligible baseline remains valid. See [Filament re-review](https://github.com/opensiro/vsm-harness-index/issues/3726). diff --git a/CHANGELOG.md b/CHANGELOG.md index d560a09..1cad719 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ## Unreleased +- **Parent-mode-aware Roadmap transitions (PATCH):** Permit exact production C(P) targets for S3/S4/S5 when a distinct parent mode is evidenced and preserved alongside C; require a parent-mode witness, synchronize the exact target in all case/public layers, and reject C/C(P) payload mismatch. Existing C receipts remain compatible; no new target command, regrade or authority. + - **Native YAML form diagnostics (PATCH):** Distinguish invalid or unsupported source forms from verified template absence, check documented required YAML header keys and the supported field subset before recognizing explicit feature/change-request names, and report missing contributor-visible blank-route evidence without using an empty GraphQL template list as a fallback. For the narrow legacy about-for-description defect, verify the authenticated viewer's explicit blank-Issue permission, unrestricted issue-creation policy, source pin, absence of conflicting template/config evidence, and preserve the malformed source form's intent and mandatory fields. Unknown routes remain blocked; no external authority or version bump. - **Existing-composition check (PATCH, 2026-12-02):** Make the existing native-alternative comparison explicit: determine whether the target function can already be composed without source changes, route conflicting evidence to Index re-review, and isolate only missing links. Motivated by [oi maintainer feedback](https://github.com/egoist/oi/issues/8#issuecomment-7319315786) and [Filament](https://github.com/invertibleMatrix/filament/issues/8#issuecomment-7332496078). No new stage, prototype or mandatory test run. diff --git a/PROTOCOL.md b/PROTOCOL.md index c8d6bd4..f001df9 100644 --- a/PROTOCOL.md +++ b/PROTOCOL.md @@ -173,11 +173,11 @@ python3 scripts/roadmap_view.py --format json --repo opensiro-contributions/EXAM **Single-pass roadmap completion; no intermediate operator waiting.** For `upstream roadmap OWNER/REPO`, including a subsequent "continue to the end" request, exhaust all *permitted* source/issue/PR, original-native alternative, current-HEAD, rights and assessment-freshness checks; then finish the matched fork-local Human decision layer, separately readable AI/developer construction contract, source-backed Capability Roadmap Receipt and complete fork public Issue draft in **one final handoff**. Publish the fork Issue and read it back only after its separate exact current-conversation approval; else hand off the exact pending public title/body and pinned stored case. Intermediate research findings, soft reassessment recommendations, a missing verified fork, `NEEDS_EVIDENCE` discovered partway through, and unpublished draft checkpoints are **not user review gates**: do not pause for routine `continue`, promise background work or hand off an unfinished roadmap for intermediate approval. If one action is gated, finish every other lawful read-only step instead of waiting. An honestly exhausted `NEEDS_EVIDENCE`, `NO_USEFUL_CHANGE`, or `DECISION_READY` is a valid final research disposition (and distinct from the proposal-stage GO/NO_GO/BLOCKED); list the exact remaining evidence/decision and next permitted action. This rule includes only the specifically authorized missing-fork/bootstrap step above; it does **not** grant code implementation, bypass an owner `PAUSE/STOP`, create a public fork Issue/PR, publish a third-party Issue/PR or waive **exact current-conversation owner approval** for each outward action. -**Proposal-stage decision closure — whole-repository survey, then VSM target; proof is not a proposal prerequisite.** First survey the **whole named original repository** at a pinned HEAD and the full accepted historical S1/S2/S3/S3*/S4/S5 vector, with source-mode and recursion boundaries. Inspect runtime/API, configurations and policies, docs/architecture, examples/plugins, tests/CI, contributor governance and relevant original Issues/PRs. Repository co-location does **not** make every example or contributor workflow part of the assessed deployed harness. Classify **all six** functions before priority choice, including source-backed deliberate non-construction and unresolved unknowns. Then select **one highest-priority eligible function** (not hardcoded S3, S4 or S5) and declare an exact accepted historical `Sx=[state]` → proposed `Sx=C` construction hypothesis, e.g. `S3=— → S3=C`. An explicit operator-requested function remains in scope but still requires repository-wide coverage to check recursion, competing native functions, constraints and intentional exclusions. The roadmap determines the **minimum complete first-party C-construction path** for the chosen function, not arbitrary useful features or six mandatory controllers. Current source must be checked independently before treating a historical grade as a current gap; prior experimental proof of utility is not a prerequisite. Distinguish three epistemic stages in Human `issue.md`, AI `constructor-sufficiency.md` and receipt `roadmap.md`: **(1) HYPOTHESIS** = a credible, original-specific scenario and source-informed mechanism (explicitly `OBSERVED` or `HYPOTHETICAL`); **(2) PROPOSAL GO / NO_GO / BLOCKED** = the present bounded research recommendation; **(3) VALIDATED CAPABILITY** = separate future implemented and independently observed behavior/cost with native tests and, for a VSM ownership grade, Index-owned reassessment. Never treat (1) or (2) as (3). +**Proposal-stage decision closure — whole-repository survey, then VSM target; proof is not a proposal prerequisite.** First survey the **whole named original repository** at a pinned HEAD and the full accepted historical S1/S2/S3/S3*/S4/S5 vector, with source-mode and recursion boundaries. Inspect runtime/API, configurations and policies, docs/architecture, examples/plugins, tests/CI, contributor governance and relevant original Issues/PRs. Repository co-location does **not** make every example or contributor workflow part of the assessed deployed harness. Classify **all six** functions before priority choice, including source-backed deliberate non-construction and unresolved unknowns. Then select **one highest-priority eligible function** (not hardcoded S3, S4 or S5) and declare an exact accepted historical `Sx=[state]` → proposed `Sx=C` or `Sx=C(P)` construction hypothesis, e.g. `S3=— → S3=C`. An explicit operator-requested function remains in scope but still requires repository-wide coverage to check recursion, competing native functions, constraints and intentional exclusions. The roadmap determines the **minimum complete first-party C-construction path** for the chosen function, not arbitrary useful features or six mandatory controllers. Current source must be checked independently before treating a historical grade as a current gap; prior experimental proof of utility is not a prerequisite. Distinguish three epistemic stages in Human `issue.md`, AI `constructor-sufficiency.md` and receipt `roadmap.md`: **(1) HYPOTHESIS** = a credible, original-specific scenario and source-informed mechanism (explicitly `OBSERVED` or `HYPOTHETICAL`); **(2) PROPOSAL GO / NO_GO / BLOCKED** = the present bounded research recommendation; **(3) VALIDATED CAPABILITY** = separate future implemented and independently observed behavior/cost with native tests and, for a VSM ownership grade, Index-owned reassessment. Never treat (1) or (2) as (3). Choose exactly one **proposal-stage operator verdict**: **GO** when native Track A and independently proposed Track B jointly give a source-grounded, **function-specific, architecturally complete proposed C-sufficiency chain** (disturbance/state, lawful options, developer-composed autonomous actor, legitimate authority, supported operational effect, return feedback and falsifiable native tests) for the exact declared before → after transition. Real incident statistics, executed tests, quantified benefit, maintainer endorsement and a proven operational need **are not required for proposal GO**; their absence must be labeled `NOT_RUN`, `NOT_MEASURED` or `HYPOTHETICAL`. **NO_GO** when current source already provides an equivalent first-party function-specific C ownership/closure path, when all six screened functions have source-backed architectural no-target reasons, or both tracks fail to yield a coherent lawful complete C construction for an eligible target; it rejects only the named evaluation object, not the harness or an original maintainer's work. **BLOCKED** only when a necessary source/identity/authority fact cannot be obtained after lawful bounded attempts; name the external evidence owner and minimal unlock. Missing benefit measurement alone is neither `NO_GO` nor `BLOCKED`. **Constructibility precedes product desirability:** a simpler native fix, workaround, competing implementation, absence of expressed demand or unknown maintainer preference is **not** by itself a NO_GO veto against a distinct, complete C construction. Functional equivalence must be established at the **VSM function, decisive decision owner and closure path** boundary, not merely because two solutions address the same narrow user task. A real law/owner `PAUSE` blocks *persistence/publication*, not lawful read-only design assessment. -The named **transition `Sx=[accepted historical] → Sx=C` is a construction hypothesis**, not an already-achieved grade. The source-native `C` sufficiency argument and future native tests must use the same function and recursion boundary; Track B only fills missing `C` links, while adjacent useful native work receives a separate Upgrade/Issue route. These are **narrative decisions, not JSON states, implementation authorization, VSM grades, or guarantees of usefulness**. Continue using existing research dispositions `DECISION_READY`, `NEEDS_EVIDENCE`, `NO_USEFUL_CHANGE`, `PLAN_ONLY` separately: `GO + NEEDS_EVIDENCE` is coherent when a falsifiable proposal is qualified but not yet tested. `NO_USEFUL_CHANGE` needs a genuine source-backed negative *proposal* conclusion, not simply missing empirical proof. State the proposal confidence, assumptions, outstanding validation, what would falsify it, next lawful action, and what will NOT be implemented or published. Do not invent runtime demand or test results to justify GO; do not deny a **complete C-target design GO** solely because its future validation has not run. A merely useful original-native feature that does not supply the target function's C ownership/feedback chain is not a substitute GO. +The named **transition `Sx=[accepted historical] → Sx=C` or `Sx=C(P)` is a construction hypothesis**, not an already-achieved grade. The source-native `C` sufficiency argument and future native tests must use the same function and recursion boundary; Track B only fills missing `C` links, while adjacent useful native work receives a separate Upgrade/Issue route. These are **narrative decisions, not JSON states, implementation authorization, VSM grades, or guarantees of usefulness**. Continue using existing research dispositions `DECISION_READY`, `NEEDS_EVIDENCE`, `NO_USEFUL_CHANGE`, `PLAN_ONLY` separately: `GO + NEEDS_EVIDENCE` is coherent when a falsifiable proposal is qualified but not yet tested. `NO_USEFUL_CHANGE` needs a genuine source-backed negative *proposal* conclusion, not simply missing empirical proof. State the proposal confidence, assumptions, outstanding validation, what would falsify it, next lawful action, and what will NOT be implemented or published. Do not invent runtime demand or test results to justify GO; do not deny a **complete C-target design GO** solely because its future validation has not run. A merely useful original-native feature that does not supply the target function's C ownership/feedback chain is not a substitute GO. **Exhaustion and anti-deferral gate.** On the same named original, check current shipped first-party behavior, supported SDK/plugin/manual workarounds, exact original issues and competing PR heads/decisions, required first-party actor/authority/feedback, and technical feasibility/cost hypotheses of the smallest matched solution. Use alternatives as evidence of reuse and C equivalence, not as assumed maintainer product decisions. If a hypothesis fails, inspect other plausible native options **within that original and requested function scope**, then close the choice in this invocation. The final deliverable must say **what to do now, what not to do, why, the minimum decisive next action and the precise rights/publication state**; unresolved candidate questions remain evidence gaps, not a reason to ask for routine `continue`. No automatic implementation, no switch to another harness, no bypass of PAUSE/STOP or exact publication approval. An owner PAUSE/STOP can prevent **updating the fork-local case** while allowing read-only analysis; in that situation report the finished decision in chat with `PERSISTENCE_BLOCKED` and do not falsely claim the GitHub case changed. @@ -185,7 +185,7 @@ The named **transition `Sx=[accepted historical] → Sx=C` is a construction hyp Use the **Paperclip two-level pilot as the structural exemplar**, not as reusable factual evidence: [Human Issue v2](https://github.com/opensiro-contributions/paperclip/blob/opensiro/meta/.opensiro/issues/capability-roadmap-issue-pilots-20261118/issue-v2.md) and [technical constructor contract](https://github.com/opensiro-contributions/paperclip/blob/opensiro/meta/.opensiro/issues/capability-roadmap-issue-pilots-20261118/constructor-sufficiency-v2.md). The generic templates intentionally mirror their narrative architecture: **Human** = (1) Why Opensiro plus accepted six-function starting assessment, (2) proposed user capability/decision, (3) existing native work vs actual gap, (4) P0/P1/P2 and minimum sufficient result, (5) acceptance/stop gates, (6) independent paths, (7) cost hypothesis, (8) decision/handoff. **AI** = unnumbered function scope (S2/S3/S4/S5) followed by (1) boundary/state/counterfactual, (2) verified native baseline vs proposed change, (3) primary function-specific construction ports, (4) dependencies/priority, (5) optional **independently justified** additional function constructor (or explicit NONE), (6) primary native acceptance cases, (7) falsification and evidence ownership. Preserve explanatory sections, first-party decision-owner and feedback proof, links and materiality; never transplant the exemplar's Paperclip-specific grades, port names, `S4` target or S3 optional proposal as universal requirements. Optional P2 must remain optional. The case-local detailed contract may be longer than the Human Issue; there is no universal mandatory count of five ports or tests. -The **AI/developer** companion linked from the Human layer MUST **reference (not duplicate)** the canonical `roadmap.md` six-function dispositions, P0 priority rationale and exact historical `Sx=[state] → Sx=C` target (or explicit no-qualified-target disposition), and own pinned original code/Issue/PR and mode evidence, full current `SHIPPED` vs `OPEN_PR` vs missing coverage, function-specific actor/rights and exact decision owner, constructor ports/state, `S3↔S4` closure when applicable, negative/positive/compatibility tests, rejection conditions, validation commands and evidence/cost provenance. It MUST cite `roadmap.md` as the single case-local structured decision authority; the Human layer displays one historical vector/six-row table while the AI layer references it, never fabricating a second one. The receipt owns P0/P1/P2, proposal GO/NO_GO/BLOCKED and separate research status; a case-level structural check compares Human/AI declared target, verdict and status with the receipt before claiming handoff complete. Neither layer can silently add user-facing goals or treat a proposed port as installed. Flexible source-native interface and test counts replace the Paperclip five-port/nine-test examples. The Human page links to it; the agent contract links back. The Human page can say `GO + NEEDS_EVIDENCE` while its technical contract remains a hypothesis awaiting independent validation. This is a permitted combination, **not** an automatic NO_GO/BLOCKED; lack of measurements alone is not a disqualifier. Source/authority boundaries, plan-only status, original-template/publication approvals and accepted Index ownership remain unchanged. +The **AI/developer** companion linked from the Human layer MUST **reference (not duplicate)** the canonical `roadmap.md` six-function dispositions, P0 priority rationale and exact historical `Sx=[state] → Sx=C` or `Sx=C(P)` target (or explicit no-qualified-target disposition), and own pinned original code/Issue/PR and mode evidence, full current `SHIPPED` vs `OPEN_PR` vs missing coverage, function-specific actor/rights and exact decision owner, constructor ports/state, `S3↔S4` closure when applicable, negative/positive/compatibility tests, rejection conditions, validation commands and evidence/cost provenance. It MUST cite `roadmap.md` as the single case-local structured decision authority; the Human layer displays one historical vector/six-row table while the AI layer references it, never fabricating a second one. The receipt owns P0/P1/P2, proposal GO/NO_GO/BLOCKED and separate research status; a case-level structural check compares Human/AI declared target, verdict and status with the receipt before claiming handoff complete. Neither layer can silently add user-facing goals or treat a proposed port as installed. Flexible source-native interface and test counts replace the Paperclip five-port/nine-test examples. The Human page links to it; the agent contract links back. The Human page can say `GO + NEEDS_EVIDENCE` while its technical contract remains a hypothesis awaiting independent validation. This is a permitted combination, **not** an automatic NO_GO/BLOCKED; lack of measurements alone is not a disqualifier. Source/authority boundaries, plan-only status, original-template/publication approvals and accepted Index ownership remain unchanged. **Whole-harness priority and methodological negative cases (mandatory):** The research phase yields a compact six-function inventory, including for every function: accepted historical state; current observed owner/closure and mode; candidate `C` construction or **reasoned exclusion**; actual source/Issue/PR links; confidence; and optional maintainer/contributor interest **only if explicitly evidenced**. Possible dispositions for *research narrative*, not new persistent enums: `C_CANDIDATE`, `ALREADY_C`, `ALREADY_A`, `PARENT_RESERVED`, `INTENTIONALLY_NOT_PROVIDED`, `NOT_APPLICABLE_AT_BOUNDARY`, `UNKNOWN`. Do not translate these into formal Index grades. An intentional omission is only `INTENTIONALLY_NOT_PROVIDED` when current project design/maintainer evidence supports it; mere absence is `UNKNOWN` or an unverified hypothesis. If a static/predictable environment makes an autonomous S4 constructor nonessential, or identity/ultimate-policy authority belongs to a parent rather than a locally composable S5, record that as a *bounded, falsifiable design rationale*, not a defective vector or prescriptive Profile change. For any allegedly unnecessary function, document when that conclusion would fail (e.g. external change, policy conflict, larger recursion), and route genuine semantics/assessment ambiguity to the owning Profile/Skills repository as an independent **methodology test**, not a feature PR. No covert assumption that all six functions should be installed. @@ -193,7 +193,9 @@ The **AI/developer** companion linked from the Human layer MUST **reference (not **Unknown target exclusion (temporary, owner decision 2026-12-02).** An accepted Index state `?` is unresolved evidence, not an engineering gap. Do not select, construct, persist a new/revised feature Roadmap for, or seek publication of a transition from `Sx=?` (including explicit A/P experiments). Route the selected function to the Index-owned `[Assessment re-review]` procedure and wait for an accepted resolved state; an Upstream source inspection cannot silently replace it. Other resolved functions in the same vector remain eligible after the normal six-function census. If none qualifies, report `NEEDS_EVIDENCE` and no outreach; if an explicitly requested function is `?`, do not substitute another function. Historical cases/publications remain readable and unchanged; block new or revised proposals targeting `?`, not monitoring or methodological feedback. `GO + NEEDS_EVIDENCE` for a resolved eligible baseline remains valid. See [Filament re-review](https://github.com/opensiro/vsm-harness-index/issues/3726). -**Roadmap default objective — construct a stated function-specific `C` target, not generic feature discovery.** For the **highest-priority qualified function selected after the six-function whole-repository census**, with an accepted historical non-`C` baseline and checked current first-party boundary, **propose the minimum source-native changes necessary for `C` sufficiency**; explicitly record `Sx=[accepted historical] → Sx=C`. `A` and parent-governed `P` are not automatic engineering targets; a developer-composability proposal there needs an independent architectural rationale. A proposal for another function must be separately justified, not bundled as generic usefulness. First resolve stale `?` evidence and source drift, and retain `P` as a valid autonomous-actor-absent, parent-governed arrangement with reserved authority. A function already at `A`/`A(P)` is **not required** to be converted into `C`: `A` does not logically prove a reusable `C` constructor, but it satisfies this route's default no-mandatory-C-work exclusion. `C`/`C(P)` also need no duplicate constructor target. Prioritize a source-informed **plausible user scenario and design distinctness** before measurement; prove benefit only in later validation. Do not manufacture changes simply to fill a historical low grade. If no architecturally qualified `C` target survives current-source validation, explicitly report `NO_USEFUL_CHANGE` or `NEEDS_EVIDENCE`, with reasons, rather than silently substituting unrelated general enhancements. +**Roadmap default objective — construct a stated function-specific `C` target, not generic feature discovery.** For the **highest-priority qualified function selected after the six-function whole-repository census**, with an accepted historical non-`C` baseline and checked current first-party boundary, **propose the minimum source-native changes necessary for `C` sufficiency**; explicitly record `Sx=[accepted historical] → Sx=C` or the supported parent-mode-aware `Sx=C(P)`. `A` and parent-governed `P` are not automatic engineering targets; a developer-composability proposal there needs an independent architectural rationale. A proposal for another function must be separately justified, not bundled as generic usefulness. First resolve stale `?` evidence and source drift, and retain `P` as a valid autonomous-actor-absent, parent-governed arrangement with reserved authority. A function already at `A`/`A(P)` is **not required** to be converted into `C`: `A` does not logically prove a reusable `C` constructor, but it satisfies this route's default no-mandatory-C-work exclusion. `C`/`C(P)` also need no duplicate constructor target. Prioritize a source-informed **plausible user scenario and design distinctness** before measurement; prove benefit only in later validation. Do not manufacture changes simply to fill a historical low grade. If no architecturally qualified `C` target survives current-source validation, explicitly report `NO_USEFUL_CHANGE` or `NEEDS_EVIDENCE`, with reasons, rather than silently substituting unrelated general enhancements. + +**Parent-mode-aware target (S3/S4/S5).** The production constructor family remains C. Use the exact prospective transition to `C(P)` when the proposed C mode is added alongside an independently evidenced, preserved parent-governed mode (for example `S4=P -> S4=C(P)`); do not silently drop (P). If only C is justified, use C and explain the parent-mode disposition where relevant. A C(P) receipt must include one `- Parent mode witness:` field identifying the distinct parent decision owner, trigger, return/closure, pinned source evidence, and preservation test; record both mode witnesses in the AI contract and explain preservation in the Human and public proposal. Preserving an existing P is part of the selected target, not a separate P2 feature. Human approval of an autonomous mode's envelope alone is not a distinct P mode. C(P) is invalid for S1/S2/S3*. The target is a prospective hypothesis, not an accepted Index grade; independent reassessment after implementation determines actual classification. Existing C-target receipts remain readable and valid; apply this rule on new or materially revised Roadmaps, with exact target synchronized across receipt, Human, AI and outbound payload. No new target command, automatic regrade, retroactive migration or publication authority. **Mandatory parallel contribution-on-top gate (six-function census first, then C target):** Map **all six** against the repository and priority evidence **before** locking the selected historical function → proposed C target. For this *same selected C transition*, investigate **two tracks in the same source pass**: **(A) existing native work**—pinned shipped code, exact original Issues, live PR heads/diffs/tests, maintainer decisions, supported plugin/manual alternatives and real owner rights; **(B) independently developed OpenSiro capability hypotheses**—reuse unchanged, original-native integration/extension, or a distinct adjacent effect *on top of A*. A scenario may be **plausible/hypothetical**, not necessarily a measured incident; explain the stimulus, developer/operator, alternative decisions, authorized effect and feedback. Do not derive the proposal solely from an Issue title or an empty historical VSM cell. Compare **C link required → shipped/open Issue/PR coverage → minimum missing on-top constructor → proposed C witness → falsifier/validation experiment** for the same function, user scenario and exact source. The original issue may supply some or all links; preserve its implementation ownership. A matching original Issue/PR is a starting point, **not a NO_GO veto**. Source-backed non-applicability and rejected variants are legitimate; do not build a speculative controller without a discernible user story. diff --git a/docs/CAPABILITY_ROADMAP.md b/docs/CAPABILITY_ROADMAP.md index 6b83b77..dd92592 100644 --- a/docs/CAPABILITY_ROADMAP.md +++ b/docs/CAPABILITY_ROADMAP.md @@ -99,7 +99,9 @@ Check at least the simplest native alternative and all materially plausible on-t **Target-first roadmap:** for relevant VSM functions without a confirmed `C`/`C(P)` or `A`/`A(P)` first-party path, investigate the **minimum source-native set of existing and proposed changes sufficient for a meaningful `C` constructor**. Use accepted Index grades only as dated evidence; inspect current source and resolve `?` before concluding a function is missing. Already-`A`/`A(P)` functions **do not need C engineering work** for this roadmap, even though `A` does not logically imply a reusable `C` interface. Already-`C`/`C(P)` functions also do not need another constructor. Parent-governed `P` is legitimate, and may be retained as the final mode when an autonomous constructor adds no user value or violates reserved authority. -**P0** is the highest-priority qualified source-backed function-specific *C sufficiency construction*, chosen after the six-function census, selected **after parallel existing-work and on-top candidate comparison**, backed by the combination of actual first-party primitives, original Issues/PRs and necessary missing changes. **P1** covers **prerequisites** for that target, including integration, authorization and tests; these dependencies may have to execute before P0 can be delivered. **P2** is independently valuable but optional: a separately evidenced `C(P)`/`A(P)` mode, refinements or optimizations. Priority is based on C-construction sufficiency, source confidence, supported authority/reachability, reusable first-party links and technical dependencies. Plausible user benefit and cost remain **separately labeled hypotheses for maintainers**, not proposal GO requirements; historical grades are not an `A > C > P` maturity ladder. +**Parent-mode-aware target (S3/S4/S5).** The production constructor family remains C. Use the exact prospective transition to `C(P)` when the proposed C mode is added alongside an independently evidenced, preserved parent-governed mode (for example `S4=P -> S4=C(P)`); do not silently drop (P). If only C is justified, use C and explain the parent-mode disposition where relevant. A C(P) receipt must include one `- Parent mode witness:` field identifying the distinct parent decision owner, trigger, return/closure, pinned source evidence, and preservation test; record both mode witnesses in the AI contract and explain preservation in the Human and public proposal. Preserving an existing P is part of the selected target, not a separate P2 feature. Human approval of an autonomous mode's envelope alone is not a distinct P mode. C(P) is invalid for S1/S2/S3*. The target is a prospective hypothesis, not an accepted Index grade; independent reassessment after implementation determines actual classification. Existing C-target receipts remain readable and valid; apply this rule on new or materially revised Roadmaps, with exact target synchronized across receipt, Human, AI and outbound payload. No new target command, automatic regrade, retroactive migration or publication authority. + +**P0** is the highest-priority qualified source-backed function-specific *C sufficiency construction*, chosen after the six-function census, selected **after parallel existing-work and on-top candidate comparison**, backed by the combination of actual first-party primitives, original Issues/PRs and necessary missing changes. **P1** covers **prerequisites** for that target, including integration, authorization and tests; these dependencies may have to execute before P0 can be delivered. **P2** is independently valuable but optional: additional independently justified modes, refinements or optimizations; preservation of an existing parent mode within the selected C(P) target is not P2. Priority is based on C-construction sufficiency, source confidence, supported authority/reachability, reusable first-party links and technical dependencies. Plausible user benefit and cost remain **separately labeled hypotheses for maintainers**, not proposal GO requirements; historical grades are not an `A > C > P` maturity ladder. A plan **MUST show the accepted historical state → observed source-native current state → C construction target or justified exclusion → minimum necessary integration set → sufficiency evidence/acceptance** for each relevant function. It is not sufficient to list P0/P1 ideas without specifying why the complete set could later support `C`. For any qualified C target, link a function-specific first-party constructor and positive/negative acceptance contract. A plan does not assert a shipped C; if there is no defensible useful target, `NEEDS_EVIDENCE` or `NO_USEFUL_CHANGE` is a successful **explicit** plan-only outcome. There is no compulsory implementation, new grade or maintainer adoption. @@ -189,7 +191,7 @@ A compact **plan-only Markdown report** accompanies a dated **case record in the | Delivery | `PLAN_ONLY`, `NEEDS_EVIDENCE` or `NO_USEFUL_CHANGE` as narrative outcomes only; external issue marked `DRAFT — NOT PUBLISHED` | **Fail closed:** unknown source/ref/owner/diff or assessment freshness stays unverified. A >30-day historical assessment prompts a recommended re-review, not a hard stop, automatic Index write, or silent promotion of a pending reassessment. An Issue or open PR does not certify shipped capability, a planned `C` is not an Index `C`, and a maintained project policy is not automatic runtime S5. -**Receipt shape (C-transition proposal-stage opt-in):** New cases use `- Receipt contract: proposal-gate`; the canonical receipt owns `- Accepted VSM vector: S1=A · S2=A · S3=A(P) · S3*=A · S4=— · S5=P` (illustrative only), six per-function dispositions, `- P1 dependencies:`, `- P2 optional:`, `- Research disposition: NEEDS_EVIDENCE` / `DECISION_READY` / `NO_USEFUL_CHANGE` independently of proposal GO/NO_GO/BLOCKED. The validator requires a same-function `- Target transition: S3=— -> S3=C` (example), `- Proposed C construction:` and `- C sufficiency falsifier:` in Identity, include `## Parallel contribution-on-top review` with `- Evaluation object:`, `- Existing-work overlap:`, `- Our on-top contribution:`, `- Incremental benefit:`, and `- Decision scope:`, and add `- Scenario basis: HYPOTHETICAL` or `OBSERVED`, `- Proposal-stage decision: GO` / `NO_GO` / `BLOCKED`, `- Proposed validation:`, `- Validation state: NOT_RUN` and `- Proposal falsifier:`. This structurally separates qualified plans from measured results. Existing `contribution-on-top` and unmarked historical receipts remain valid without retroactive edits; the validator does not certify semantics, actual source validity or execution. Never invent `VALIDATED` from a proposal GO. +**Receipt shape (C-transition proposal-stage opt-in):** New cases use `- Receipt contract: proposal-gate`; the canonical receipt owns `- Accepted VSM vector: S1=A · S2=A · S3=A(P) · S3*=A · S4=— · S5=P` (illustrative only), six per-function dispositions, `- P1 dependencies:`, `- P2 optional:`, `- Research disposition: NEEDS_EVIDENCE` / `DECISION_READY` / `NO_USEFUL_CHANGE` independently of proposal GO/NO_GO/BLOCKED. The validator requires a same-function `- Target transition: S3=— -> S3=C` or `- Target transition: S4=P -> S4=C(P)` (examples; C(P) requires Parent mode witness), `- Proposed C construction:` and `- C sufficiency falsifier:` in Identity, include `## Parallel contribution-on-top review` with `- Evaluation object:`, `- Existing-work overlap:`, `- Our on-top contribution:`, `- Incremental benefit:`, and `- Decision scope:`, and add `- Scenario basis: HYPOTHETICAL` or `OBSERVED`, `- Proposal-stage decision: GO` / `NO_GO` / `BLOCKED`, `- Proposed validation:`, `- Validation state: NOT_RUN` and `- Proposal falsifier:`. This structurally separates qualified plans from measured results. Existing `contribution-on-top` and unmarked historical receipts remain valid without retroactive edits; the validator does not certify semantics, actual source validity or execution. Never invent `VALIDATED` from a proposal GO. For an implementation-oriented `C` target, see the [Paperclip S4=C proposed construction and acceptance contract](https://github.com/opensiro-contributions/paperclip/blob/opensiro/meta/.opensiro/issues/model-release-adaptation-20261117/constructor-acceptance.md) for a concrete (still plan-only) first-party interface/ownership/feedback design and falsifiable test matrix. The example demonstrates required specificity, not a changed Index grade or a mandatory VSM architecture. diff --git a/docs/ROADMAP_INDEPENDENT_RERUN.md b/docs/ROADMAP_INDEPENDENT_RERUN.md index d7e0b43..0948085 100644 --- a/docs/ROADMAP_INDEPENDENT_RERUN.md +++ b/docs/ROADMAP_INDEPENDENT_RERUN.md @@ -15,7 +15,7 @@ Replace only `OWNER/REPO` with the original repository, **not** `opensiro-contri - **Index-first admission:** current included assessment, exact assessment/blob/review pin and Profile/Skills versions; current original source is separately pinned. If absent, fail closed at `ASSESSMENT_REQUIRED / BLOCKED` without creating a new verdict. - **Independent first pass:** do not use old OpenSiro `issue.md`, `roadmap.md`, `constructor-sufficiency.md`, prior chat memory or case verdict to select a function, target or outcome. Prior cases are reopened **only after** a source-backed independent decision for an attribution-aware comparison. Do not turn historical `—` into a current deficit. - **Whole-repository screen:** cover supported product runtime, APIs, config/policy, first-party plugins/modes, examples/tests/CI, owner boundaries, contributor policy, original Issues/PRs and counterfactuals. Current source and Issue/PR bodies/diffs/status must support dispositions; lack of code alone is not evidence that a capability was deliberately omitted. -- **One objective:** select a priority eligible `Sx=[accepted historical state] -> Sx=C` **construction hypothesis** only after evaluating six functions; otherwise state `NO_QUALIFIED_C_TARGET` and scoped `NO_GO`. Assess architectural C sufficiency, not product adoption; native fixes/Issues are evidence, not proof of permanent maintainer intent or a veto absent equivalent C closure. A qualified `GO + NEEDS_EVIDENCE` is permitted for a proposed source-grounded but untested complete C-construction chain; no shipped C or Index-grade change is implied. +- **One objective:** select a priority eligible `Sx=[accepted historical state] -> Sx=C` or `Sx=C(P)` **construction hypothesis** only after evaluating six functions; otherwise state `NO_QUALIFIED_C_TARGET` and scoped `NO_GO`. Assess architectural C sufficiency, not product adoption; native fixes/Issues are evidence, not proof of permanent maintainer intent or a veto absent equivalent C closure. A qualified `GO + NEEDS_EVIDENCE` is permitted for a proposed source-grounded but untested complete C-construction chain; no shipped C or Index-grade change is implied. - **Native-specific recommendation (nonbinding):** Prefer the original's concrete first-party interfaces, authority, operating constraints, minimal missing edit and returned feedback over a generic reusable controller description; no new score or gate, and maintainers still decide adoption. - **Control and publication:** re-read matched fork `.opensiro/state.json`. `PAUSE/STOP` means read-only reporting, no metadata write; `ALLOW` is not external-publication permission. If writing is lawful, preserve case identity and update `issue.md`, `constructor-sufficiency.md`, `roadmap.md` within the existing eight-section Human and six-section AI templates (no appended versioned refinement sections). Run **both** `python3 scripts/validate_capability_roadmap.py ` and `python3 scripts/validate_roadmap_publication.py ` before the fork write and again against the exact committed case after SHA readback; nonzero means no persisted completion. The fork's public GitHub Issues and the original repository's maintainer communications have **separate exact current-conversation approval gates**. - **Result storage and PR closure:** Persist source-backed Human/AI/receipt and events on the matching `opensiro-contributions` fork; update the existing coordination Issue with only short status/concurrency links. Do **not** create an Upstream PR or separate `.md` for this run. Optional historical report links go solely in the [single Supplementary section](ROADMAP_REPORT.md#supplementary); any obsolete report-only PR should be closed unmerged after its fork record is confirmed. diff --git a/scripts/validate_capability_roadmap.py b/scripts/validate_capability_roadmap.py index f34aee8..1df2929 100644 --- a/scripts/validate_capability_roadmap.py +++ b/scripts/validate_capability_roadmap.py @@ -194,10 +194,14 @@ def validate(contents: str, *, experimental_target: str | None = None) -> list[s elif transition: match = re.fullmatch( r"S(1|2|3\*|3|4|5)=(—|\?|A|C|P|A\(P\)|C\(P\))\s*->\s*" - r"S(1|2|3\*|3|4|5)=C", transition + r"S(1|2|3\*|3|4|5)=(C(?:\(P\))?)", transition ) if not match or match.group(1) != match.group(3): - errors.append("invalid Target transition: same VSM function must target C") + errors.append("invalid Target transition: same VSM function must target C or C(P)") + elif match.group(4) == "C(P)" and match.group(1) not in ("3", "4", "5"): + errors.append("C(P) target is only valid for S3, S4 or S5") + elif match.group(4) == "C(P)" and not value(contents, "Parent mode witness"): + errors.append("C(P) target requires Parent mode witness") elif historical: vector = parse_vector(historical) if vector and vector.get("S" + match.group(1)) != match.group(2): diff --git a/scripts/validate_public_issue_payload.py b/scripts/validate_public_issue_payload.py index 65f620c..86087ee 100644 --- a/scripts/validate_public_issue_payload.py +++ b/scripts/validate_public_issue_payload.py @@ -230,8 +230,8 @@ def original_case_lineage_errors(receipt, original_repo, original_body): transition = value(receipt, "Target transition") if not transition: errors.append("canonical case target transition is missing") - elif (transition not in original_body and - transition.replace(" -> ", " → ") not in original_body): + elif not any(re.search(re.escape(t) + r"(?![\w(])", original_body) + for t in (transition, transition.replace(" -> ", " → "))): errors.append("external proposal target differs from canonical case") return errors diff --git a/templates/EXTERNAL_ARCHITECTURE_ISSUE.md b/templates/EXTERNAL_ARCHITECTURE_ISSUE.md index 9ff1c7d..f2dc7ad 100644 --- a/templates/EXTERNAL_ARCHITECTURE_ISSUE.md +++ b/templates/EXTERNAL_ARCHITECTURE_ISSUE.md @@ -90,9 +90,10 @@ may be appropriate to this project's goals. We welcome corrections to our interp selected after reviewing S1/S2/S3/S3*/S4/S5, and relevant maintainer preferences only if expressly documented; otherwise NOT_STATED]. -**Construction hypothesis:** [accepted historical `Sx=[state] → Sx=C`, one +**Construction hypothesis:** [accepted historical `Sx=[state] → Sx=C` or `Sx=C(P)`, one function only]. This is a **proposed future constructor**, not a change to the accepted assessment or a claim that the feature is already shipped. +For C(P), describe the distinct preserved parent decision/return mode, source evidence and compatibility test from the canonical receipt; do not imply simultaneous dual ownership or a new accepted grade. **Native building blocks:** [existing code/API, original Issue/PR decisions]. **Minimal proposed addition:** [what first-party decision/feedback interface, diff --git a/templates/FORK_CAPABILITY_ROADMAP_ISSUE.md b/templates/FORK_CAPABILITY_ROADMAP_ISSUE.md index 3eb1dd3..6e6da88 100644 --- a/templates/FORK_CAPABILITY_ROADMAP_ISSUE.md +++ b/templates/FORK_CAPABILITY_ROADMAP_ISSUE.md @@ -65,7 +65,8 @@ Opensiro tests whether reusable VSM-informed organizational descriptions and con ## 2. Selected construction hypothesis and operator outcome -**Target transition:** [Sx=[accepted historical state] -> Sx=C, or NO_QUALIFIED_C_TARGET — exact value from roadmap.md]. Do not default to S3 and do not claim a new Index classification. +**Target transition:** [Sx=[accepted historical state] -> Sx=C or Sx=C(P), or NO_QUALIFIED_C_TARGET — exact value from roadmap.md]. Do not default to S3 and do not claim a new Index classification. +For C(P), describe the distinct preserved parent decision/return mode, source evidence and compatibility test from the canonical receipt; do not imply simultaneous dual ownership or a new accepted grade. **Function-specific disturbance:** [Real source-supported or clearly HYPOTHETICAL operating/environmental condition requiring a choice]. diff --git a/templates/ROADMAP_AI_CONSTRUCTOR_CONTRACT.md b/templates/ROADMAP_AI_CONSTRUCTOR_CONTRACT.md index f7bae52..50a3674 100644 --- a/templates/ROADMAP_AI_CONSTRUCTOR_CONTRACT.md +++ b/templates/ROADMAP_AI_CONSTRUCTOR_CONTRACT.md @@ -22,7 +22,8 @@ and again after committed SHA readback. External PR publication is separately ga **Source and mode boundary:** [Full current original HEAD, exact product/runtime entry point, distribution mode, purpose, environment, recursion and excluded adjacent dogfood/test/CI/governance surfaces. Reference pinned evidence and accepted historical Index from roadmap.md, not copied or silently regraded]. -**Target transition:** [Exact Sx=[historical state] -> Sx=C or NO_QUALIFIED_C_TARGET from roadmap.md]. If no target qualifies, explain source-backed six-function rationale and do NOT invent construction ports. +**Target transition:** [Exact Sx=[historical state] -> Sx=C or Sx=C(P) or NO_QUALIFIED_C_TARGET from roadmap.md]. If no target qualifies, explain source-backed six-function rationale and do NOT invent construction ports. +For C(P), describe the distinct preserved parent decision/return mode, source evidence and compatibility test from the canonical receipt; do not imply simultaneous dual ownership or a new accepted grade. **Six-function dependencies (S1/S2/S3/S3*/S4/S5):** [Use the **six dispositions in roadmap.md** to name only concrete interactions/constraints that affect this selected construction: operating units, coordination, management, independent audit, adaptation and identity/parent rights. S1 and S3* are eligible primary targets when justified, not only S2/S3/S4/S5. Do not equate repository co-location with in-boundary ownership]. diff --git a/tests/test_public_issue_payload_gate.py b/tests/test_public_issue_payload_gate.py index 9da82d0..3d9ea7c 100644 --- a/tests/test_public_issue_payload_gate.py +++ b/tests/test_public_issue_payload_gate.py @@ -101,6 +101,16 @@ def test_external_draft_cannot_silently_reselect_other_function(self): self.assertEqual(original_case_lineage_errors( receipt, "VoltAgent/voltagent", "Preserve S3=— → S3=C"), []) + def test_external_target_preserves_parent_modifier_exactly(self): + original = "VoltAgent/voltagent" + for target, wrong in (("C(P)", "C"), ("C", "C(P)")): + receipt = f"- Original repository: {original}\n- Target transition: S4=P -> S4={target}\n" + self.assertEqual(original_case_lineage_errors(receipt, original, + f"Proposed S4=P → S4={target}."), []) + self.assertIn("external proposal target differs from canonical case", + original_case_lineage_errors(receipt, original, + f"Proposed S4=P -> S4={wrong}.")) + def test_external_without_canonical_identity_is_not_publishable(self): errors = original_case_lineage_errors("", "VoltAgent/voltagent", "S3=— -> S3=C") self.assertIn("external original destination differs from canonical case", errors) diff --git a/tests/test_roadmap_case_consistency.py b/tests/test_roadmap_case_consistency.py index 4072c73..1617cac 100644 --- a/tests/test_roadmap_case_consistency.py +++ b/tests/test_roadmap_case_consistency.py @@ -92,6 +92,33 @@ def test_complete_unexecuted_go_needs_evidence_is_structurally_valid(self): self.assertEqual(validate_case_dir(self.dir), []) self.assertEqual(parse_vector(VECTOR)["S3"], "A(P)") + def test_parent_preserving_target_is_valid_and_consistent(self): + for name in ("roadmap.md", "issue.md", "constructor-sufficiency.md"): + self.set_file(name, "S4=— -> S4=C", "S4=P -> S4=C(P)") + self.set_file("roadmap.md", VECTOR, VECTOR.replace("S4=—", "S4=P")) + self.set_file("issue.md", "| **S4 · Future adaptation** | — |", + "| **S4 · Future adaptation** | P |") + self.set_file("roadmap.md", "- P2 optional: NONE", + "- Parent mode witness: Human decides external update, binding returns to later operation; pinned native recipe and preservation test.\n- P2 optional: NONE") + self.assertEqual(validate_case_dir(self.dir), []) + self.set_file("issue.md", "S4=P -> S4=C(P)", "S4=P -> S4=C") + self.assertIn("issue.md Target transition disagrees with roadmap.md", + validate_case_dir(self.dir)) + + def test_parent_target_requires_witness_and_eligible_function(self): + parent = PROPOSAL.replace(VECTOR, VECTOR.replace("S4=—", "S4=P")).replace( + "S4=— -> S4=C", "S4=P -> S4=C(P)") + self.assertIn("C(P) target requires Parent mode witness", validate(parent)) + for fn in ("S1", "S2", "S3*"): + invalid = PROPOSAL.replace("S4=— -> S4=C", f"{fn}=A -> {fn}=C(P)") + self.assertIn("C(P) target is only valid for S3, S4 or S5", validate(invalid)) + for fn in ("S3", "S4", "S5"): + baseline = parse_vector(VECTOR)[fn] + proposal = PROPOSAL.replace("S4=— -> S4=C", f"{fn}={baseline} -> {fn}=C(P)").replace( + "- P2 optional: NONE", "- Parent mode witness: Synthetic witness.\n- P2 optional: NONE") + self.assertEqual(validate(proposal), []) + self.assertEqual(validate(parent.replace("C(P)", "C")), []) + def test_human_verdict_mismatch_is_rejected_not_silently_corrected(self): self.set_file("issue.md", "**Proposal-stage decision:** GO", "**Proposal-stage decision:** NO_GO")