Skip to content

A02 — Specify the first semantic engineering increment - #271

Merged
bateau84 merged 8 commits into
mainfrom
a02-semantic-engineering-contracts
Nov 30, 2026
Merged

bateau84 merged 8 commits into
mainfrom
a02-semantic-engineering-contracts

Conversation

@bateau84

@bateau84 bateau84 commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Objective

Implementation-facing contracts for the accepted first semantic engineering increment, without production code, downstream task decomposition or merge. Relates to #227 and its C01.1 checkpoint.

Integrated baseline

Main 9e7729a4ba7effd37b0b268276bd96eda1917da5: #265, #266, #269 and #268 merged. All architecture documentation is byte-identical to the reviewed A01.1 head 363ba460; all experience documentation is byte-identical to the reviewed D01.1 head efa1feac1, including after #268's rebase. Source, tests and OKF profile unchanged by experience merge. Candidate 80500794903ed891797681eb7c52d7842a00c1d5.

Contracts

  • ARS-016: owner-qualified identities, revisions and representations; optional ordinary authored recording and validated draft/owner distinction; attributed evidence roles/stages and dependency closure; independent GitHub CI and versioned documentary association and inverse lookup. Preserve existing source owner/reference semantics, legacy evidence validation and release compatibility.
  • ARS-017: independent identity preflight and source/slot admission before matching; per-contribution permission staging/commit and fresh selected union (C01.1); bounded distinct significance/dependency/subject/chronology lanes; common decision foundation, separately authorized exact inspection, pinned selection, invalidation and explicit fresh discovery.
  • K1–K4/A1–A4 and actual assembled QS-001/QS-002 witnesses, including ordinary production, real human/fresh-agent usefulness, actual native refusal vs termination and A/B/C noninterference/recovery. D02 consumer seam remains open for reconciliation.

Verification and limits

  • Verified pinned integrated baseline and exact changed-file inventory: two ARS concepts, spec index, architecture/root logs only.
  • Readback static checks: 196 internal links, 34 mapped links to indexed concepts, specification type, spec inventory and dated logs; no errors in these checks. Not execution of repository OKF tests or live OKF graph validation.
  • Candidate specifies internal safety ceilings (not approved performance SLOs), strict draft/normalized record shape and opaque selection binding; final public tool grammar/transport remains D02.
  • D1 native lineage, D2 historical exact originals/protected release (ARS-003), D3 actual corpus binding/continuity/scan consistency and D4 actual consumer usefulness retain precise independent limits; D5/D7 policy/learning expansion and D6 qualified grouping remain reserved/separate. Installed permission adapter, original transport, actual consumer and compatibility proofs remain outstanding.
  • No change to production code, existing canonical records, frozen populations, review/learning isolation, requirements, ARD-019/ADR-002, DS-002, profile or native permissions. CI and independent review outstanding. Do not merge as part of A02.

Review against accepted first-increment semantics and reconcile with D02 before downstream implementation planning.

A02.1 — Interface reconciliation

Candidate: e80f2acea09379693aebfd52dfb7da929a056bab; DS-003 input: #270 at 5f168c0. Integrated main remains 9e7729a4.

  • Reconciled ARS-016/017 and added ARS-018 — public interfaces. Existing record add accepts optional sparse semantic input; history adds discover/expand/compare/inspect/continue/open-report. Specify strict normalization, shared JSON/Markdown meaning, exact original fragments, typed named navigation, recipient/operation-bound transient handles, explicit fresh discovery, producer compatibility before append, and unchanged specialized/legacy semantics.
  • Actual OpenCode 2.4.2 source supports native file content and Code Mode base64 file collection. Select conditional same-Session HTML file transport for H1 qualification, not a claim of actual opening or recipient-safe release. Native experimental artifact storage/view is project/server-scoped, not recipient authorization; default provider may publish to Console. Reject that ordinary protected delivery route. H1 exercises actual installed host/client opening, native inner/outer result, authorized retention/model exposure, accessibility and further reads. Equivalent text/agent interface independent; no fake HTML opening or broader publication.
  • Replace proposed 10,000/64/100,000 foreground caps with 24 potentially interactive native assertions (one in flight; final reserved), 16 aggregate owner calls (existing 8/source, 40s noninteractive allowance), 10,000 total relation/dependency visits (separate metadata preflight reservation), 32 KiB new text response. Distinguish actual Permission.Event.Asked from assertion calls; Promise API has no supported non-prompt allows. Core host default output cap 50 KiB/2,000 lines; lower configured limits/retention and outer Code Mode must be qualified. These are proposed safety bounds, not performance targets. Wide-corpus coherent admission at representative scale is an explicit host/usability dependency, not guaranteed by a small allowed fixture; no arbitrary prefix, private policy API or protected matching.
  • Preserve A/B/C noninterference and native refusal/termination, ARS-003, D1/D2, specialized mandates, frozen membership, legacy bytes, learning isolation and actual assembled QS-001/QS-002. I1–I5/H1 add decisive public composition proof obligations. No implementation or downstream assignments.
  • Verified exact candidate/main/D02 heads and six changed Markdown files only; 222 internal link occurrences, 52 mapped links to indexed concepts, index/type/log checks, no errors. Static checks only; actual host/consumer and live OKF conformance unrun. CI on candidate: eight workflows started (3 queued/5 in progress at last read). D02 corrections are in ARS-018 §8; no change to docs: specify first semantic knowledge interfaces (D02) #270 branch. Ready for independent combined specification/interface review, not runtime or merge acceptance.

Copy link
Copy Markdown
Owner Author

A02.2 — qualification and architectural disposition

Candidate: 96f52d22bb21d946d795fe9f0ddea851c151a181 (documentation only; integrated baseline unchanged). ARS-017 §2.3 and ARS-018 §§5.1–5.2 distinguish exact-resource stage grouping from independent mixed-permission admission. No ceiling or authority change.

Installed OpenCode 2.4.2 probe, separate qualification-only commit e0a7effbf93bc48c5853559eccdc498c19ddad7f: 25 and 300 preallowed Sessions each completed in four assertions, zero asks; 300-Session final union contained 902 resources (84,688 JSON bytes). One denied resource refused the entire grouped stage. Independent A/B/C preserved A/C and the shared resource, excluded B; feedback refusal continued, plain rejection terminated, pre-final revocation invalidated. Grouped ask case produced two actual asks. Independently read back the original qualification archive (artifact 15386382265, SHA-256 b454e754d9f8a99268787d8614c9445659e3d077ee1dc00817f34d2205d5cc8b).

Disposition: positive exact-set batching is qualified; general selective admission across hundreds of Sessions remains a blocking architectural/host decision. Require a supported independently resolved positive admission mechanism (or equivalent authoritative independently permitted source domain), bounded actual asks and independent decisions, with final exact-union reauthorization. No inspecting private policy, splitting/retrying refused groups, broadening grants, matching hidden bodies or requiring manual Session relevance selection. Probe does not implement semantic discovery or qualify hidden denied content/cardinality/degree variation, C-dependent slots, actual prompt audience, cancellation, atomic release or assembled QS outcomes; these remain required in the real mixed-domain witness. H1 remains separate. Do not treat safe group failure as successful recovery.

Static checks: 226 internal links, 52 mapped concept links; no errors. Qualification branch is not intended to merge. PR remains draft; production code unchanged.

Copy link
Copy Markdown
Owner Author

A02.3 — Mixed-domain admission disposition

Candidate a3093b96cbc745021ef2e35a33d6b83770a67ed3. ARS-019 specifies the proposed minimal host seam; ARS-017/018 reconcile admission, accounting and final reauthorization without changing public tool grammar, accepted scope or authority.

Finding: Store/EngineeringHistory identity partitions, native Session inventory/location, requester-owned reviews, optional objectives, GitHub and OKF source domains support bounded independently authorized reads, but none resolves general mixed Session permissions under current native authority. Pinned 2.4.2 and inspected dev e673ccd Promise/Effect interfaces lack the non-prompting native decision. Existing open OpenCode #64787 is the appropriate upstream request to extend, not duplicate; #61645 remains a separate atomic execution/release problem. Relevant prompt audience, rule-provenance, invocation and cancellation issues are linked in ARS-019 §2.

Proposed direction: a non-prompting independently resolved exact-set positive native decision, preferably a bounded vector (one-unit supported). Deny, approval-required and unavailable never grant access. Keep per-unit complete set and actual invocation binding, owner metadata preflight, independent PendingUnit commits/shared dependency closure, no hidden-data influence, no automatic approvals/retries, and a final single exact material-union native assertion-equivalent decision with actual serialized digest. Existing assert remains for actual independently authorized explicit approval only when the full native request audience is permitted. If no qualified final route, withhold. Keep 24 permission-boundary calls, separate actual unit evaluations charged against existing inventory/preflight reservations, and existing owner/time/traversal/response bounds. No private policy inspection or new grants. H2 tests the actual host capability; not executed and absent on 2.4.2.

Proposed intermediate: ordinary retained semantic recording (compatibility gate before emission), question-led foundation and targeted expansion in coherently admitted scopes (including positive exact-set grouping), scoped associations/exact reads and genuine bounded fresh recovery. Demonstrate real ordinary producer and human/fresh-agent outcomes. Do not silently narrow the default question, require manual Session IDs, call large mixed refusal successful recovery, or reduce QS-001/QS-002/Anchor obligations. Separate maintainer approval required for staged delivery; upstream proposal prepared privately, not published.

Evidence preservation: Re-downloaded A02.2 original artifact 15386382265, 244211 bytes, SHA-256 b454e754d9f8a99268787d8614c9445659e3d077ee1dc00817f34d2205d5cc8b, ZIP integrity and report PASS verified; stored in maintainer's private personal Library independently of Dec 7 Actions expiry, re-materialized saved copy, exact byte equality verified. No archive bytes/private locator published. No scalar experiment repeated.

Static checks: 252 internal links, 67 mapped concept links, metadata/index/log and changed-file scope, no errors. Candidate CI running at last check. No production implementation, expanded permissions, upstream publication or merge.

Copy link
Copy Markdown
Owner Author

A02.4 — Final native delivery boundary disposition

Candidate 3d13e0b0de43e1c5be96c6fed667a9f7d9e8ae32 on integrated 9e7729a4ba7effd37b0b268276bd96eda1917da5. ARS-018 §§6–8 is reconciled with completed H1.1; ARS-016/017/019 and logs updated consistently. No production or authority change.

H1: transport 30/30 PASS on 4518beca627627910c7df9e731089bf8fe0aad59 / run 46434548467; full HTML delivery UNQUALIFIED/unavailable. Actual synthetic direct/Code Mode files reached next local provider requests and native retained history; foreign native read exposed JSON/filename and same-operator fork copied HTML. No independent-principal breach inferred, no external-provider/complete custody or actual client-open proof. No file/HTML/alternate publication workaround; defer actual opening qualification until an authorized route is viable.

Ordinary native delivery: exact representation + complete material source/computation dependencies + actual recipient/use/provider + already-authorized native retention/lifecycle. Use existing source/recipient/owner authority before matching, including independently eligible units, applicable wildcard allows, actual profile evidence and final exact returned-byte digest assertion. If an affected view requires narrower audience, provider exclusion, non-retention, current later sink enforcement or a protected release fence unsupported on that path, withhold before result admission, not post-return redaction. No new ACL, broad grant, per-read approval ritual or blanket ARS-003/Q5 prerequisite. Final assert governs Loom return, not atomic outer Code Mode/persistence/provider release or durable custody. Preserve §7.3 historical authorized copy within existing audience/use/retention versus fresh retrieval/new delivery; handle invalidation does not recall bytes. Model/agent/provider change, replay, history/SDK, fork/export/import/restore may introduce new audience; enforce actual restrictions or withhold initial material. I5 and K4/A1–A4 remain real composition/consumer obligations.

Interface: no public operation/schema change; reserve report success variant, no open-report action advertised on examined host. Explicit request may return unavailable/null delivery with equivalent newly eligible foundation only when current page and actual ordinary route qualify; otherwise safe unavailable/invalidated, no old view/handle or automatic reselection. All affected new read, acknowledgement, context, legacy-enriched and specialized release paths require §§6–7; genuine legacy grammar/bytes and existing authority remain.

Staging: latest coordination checkpoint records approval pending; no explicit approval found. ARS-019 §4 remains a proposed bounded intermediate, with actual release-profile compatibility added to its witness. Complete Anchor/BR/OC/QS, H1/H2, D1–D7 and original #227 obligations unchanged. ARS-019 independent admission still absent on 2.4.2; H2 not executable until supported mechanism. No upstream publication.

Static readback: 265 internal link occurrences, 67 mapped concept links, types/index/log/date checks and exact changed-file scope, no errors. A02.3 CI 8/8 PASS, H1 candidate 9/9 PASS; new exact-head CI running at verification. Six Markdown files modified since A02.3 (seven total against main). No repeat host research, no new experiment, no implementation assignments, no merge. Ready for D02.2 and then independent combined document review, not runtime or product acceptance.

Copy link
Copy Markdown
Owner Author

A02.5 — C02 finding dispositions

Candidate 2acad13752f4df3a09e5d7add831f51ea1c652d9 on unchanged integrated 9e7729a4ba7effd37b0b268276bd96eda1917da5. C02 checkpoint: accept all three specification findings, corrected in ARS-016–019. No independent C02.1 acceptance claimed.

  • M01 — addressed: ARS-016 §2/§§3–6 separates canonical identity-only SourcePin from durable owner-validated ResolvedPin with exact GitHub locator (or existing supported owner-key). Required source/basis/dependency pins retained in same ordinary append independently of legacy artifact_refs/handles. Existing locator grammar and exact attempt pin; actual numeric repository checked at metadata boundary before further object/content/run/log/matching query. Slug reuse/wrong repo/tuple/revision withheld; unavailable original qualified. No numeric-ID resolver, guessed latest/rename or manual duplicate entry. Public recursive projection excludes private resolution; actual authorized exact original bytes unchanged. K2/K3/I2 restart and inverse witnesses specified.
  • M02 — addressed: ARS-017 §2.3 / ARS-018 §5 / ARS-019 §2.2 distinguish current-host 2.4.2 requested foreground native assert, including default current-location, from proposed future H2 nonprompting decisions. Actual request/foreground purpose and complete prompt/event/retention audience required; user question suffices for ordinary bounded permission flow, not an allow or consent attestation. If intent unclear, clarify; expressly no prompts/unattended/automatic/unsupported audience withhold. Native assert may ask at each distinct required stage/final union (A02.2 observed two). No auto re-ask/split/retry, private policy inference, widening or manual source enumeration; no automatic H2→assert fallback. 24 cap and refusal/termination unchanged. Actual consumer/host composition proof still required.
  • M03 — addressed: ARS-018 §§2–4 separates complete NavigationAction read requests and typed RecordReferenceOffer values (record_references, target_kind source/claim). Distinct tokens, strict field/purpose and target checks, explicit page/record-ack/exact-original origins, standalone related expansion starts fresh scoped admitted selection, page-origin remains pinned; original-next independent. Concern add→acknowledged claim reference→ordinary correction→inverse relation, direct exact original→standalone association/reference, and stale/foreign/wrong-purpose/cross-kind negative tests. Current material dependency and actual recipient/retention checks, atomic append/postcommit ack semantics, combined action cap and existing handle capacity/lifetime retained. Durable records store resolved pin or ClaimKey, never token. Two-implementer agreement in §8; proposed types/conformance examples, not compiled runtime tests.

Static readback: 273 internal link occurrences, 67 mapped concept links, frontmatter/index/log/date and changed-file scope checks; zero errors. Prior A02.4 and D02.2 each 8/8 CI PASS; new candidate exact-head CI started. Six Markdown files changed since A02.4, seven total vs main. No new research, production code, permission/requirement expansion, merge, upstream publication or staging approval. H1 unavailable, H2 blocked, ARS-003/Q5 and D1–D7/full QS unchanged. ARS-019 §4 remains proposed; attention refinement scope from D02.2 preserved. Ready for focused D02.3 then independent C02.1 targeted re-review.

@bateau84
bateau84 marked this pull request as ready for review November 30, 2026 22:19
@bateau84
bateau84 merged commit 55e53fe into main Nov 30, 2026
10 checks passed
@bateau84
bateau84 deleted the a02-semantic-engineering-contracts branch November 30, 2026 22:19
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