From 3dce05cad768b2d8517aab57be1c13cbae479f33 Mon Sep 17 00:00:00 2001 From: Aztechell <47787602+aztechell@users.noreply.github.com> Date: Thu, 26 Nov 2026 00:04:22 +0500 Subject: [PATCH 1/5] docs: define architecture specification v0.1 --- docs/spec/v0.1/README.md | 77 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 docs/spec/v0.1/README.md diff --git a/docs/spec/v0.1/README.md b/docs/spec/v0.1/README.md new file mode 100644 index 0000000..399d2e8 --- /dev/null +++ b/docs/spec/v0.1/README.md @@ -0,0 +1,77 @@ +# HackyLens Architecture Specification v0.1 + +Status: experimental candidate 0.1.0; not a recognized standard or a firmware version. + +## Scope and profiles + +This specification defines observable behavior for resource-constrained embedded applications. MUST and MUST NOT are normative; SHOULD permits a justified exception; MAY is optional. Requirement IDs are stable. Semantic compatibility does not imply binary compatibility or identical timing. + +Core requires the architecture, composition, lifecycle, ownership, time and error contracts below. Shared Script adds SCR and at least one common typed service other than Time. Recovery adds REC to Shared Script. Service extensions are individually declared. Core may be headless. A native-only device cannot claim Shared Script. + +## Architecture + +- ARC-01: Implementations MUST declare specification revision, profiles, services/features, binding versions, capacities, timing and recovery policies, execution model and tested configuration. +- ARC-02: Portable apps and language adapters MUST use typed public services. Board wiring, drivers, peripheral identities and platform synchronization stay private. Providers MUST NOT depend on app policy or language adapters. +- ARC-03: Runtime bookkeeping MUST use bounded preallocated storage. State, buffers, sessions, outstanding operations and script memory MUST have declared finite limits; exhaustion returns an explicit outcome. Separately budgeted script heaps and provider workspaces are permitted. +- ARC-04: Each resource MUST have one authoritative owner and serialization rule across clients. CPU ISA, core count, RTOS, IPC transport and placement are implementation choices. + +## Composition + +- CMP-01: Native apps MUST be statically composed into an immutable registry before execution. Descriptors declare stable identity, entry, required/optional services and finite state/scheduling limits. Identity MUST NOT depend on enumeration or menu order. +- CMP-02: Invalid and duplicate identities MUST be rejected. Missing required services exclude the app; explicitly required apps fail the build. Optional absence has an explicit result or fallback. Requirements do not acquire resources. +- CMP-03: Equivalent inputs MUST produce equivalent semantic composition. Persisted identities MUST NOT be reassigned when an app is disabled. TOML, C symbols, generator and build system are implementation choices. + +## Lifecycle + +One foreground native instance is the unit of execution. Persistent services and script workers are separate scopes. + + INACTIVE -> STARTING -> RUNNING -> STOPPING -> INACTIVE + | ^ + +------------------+ + STOPPING includes retirement and invalidation before reuse. + FAULTED denotes a non-reusable slot when identity cannot safely advance. + +- LIF-01: Runtime MUST validate descriptor/state, clear declared state, establish a new identity and prepare scope before start. At most one foreground native instance is admitted. Switch retires the previous instance first. +- LIF-02: Callbacks are start, event, optional render and stop. They MUST execute synchronously and serially, return terminal results and respect finite work budgets. No untracked tasks or unbounded retries. Ordinary event/render dispatch occurs only in RUNNING; no new ordinary callback begins after teardown acceptance. +- LIF-03: Accepted events MUST carry increasing nonzero sequence and monotonic timestamp within an instance. Storage is bounded. Timer and runtime-close are Core events. Back, if supported, is ordinary input. App close requests are legal only in RUNNING callbacks and take effect after successful callback completion. External close during start is retained and unwound before ordinary dispatch. +- LIF-04: Timer events distinguish scheduled and observed time. Cadence and callback budget are independent positive limits. Next due time is observed callback start plus interval; no catch-up burst. Clock failure, overflow or observed budget excess terminates through common unwind. +- LIF-05: A running instance MUST receive exactly one runtime-close event before stop, including terminal callback failure. Its error cannot erase the original failure or skip cleanup. Instances that never reached the running event surface do not receive it. +- LIF-06: Before scope preparation, no stop or live cleanup; after partial preparation but before start, retire partial scope without stop; once start was entered, stop exactly once even on start failure, then retire scope. Stop MUST be idempotent. +- LIF-07: Teardown MUST create one finite absolute monotonic deadline from a runtime-owned positive budget. Clock failure uses an already-expired deadline and records the error. Stop and every retirement receive that same deadline even after expiry. No renewal or new scoped acquisition during teardown. +- LIF-08: Order MUST be stop if entered, attempt all scoped retirement, quarantine unsafe resources, invalidate handles/tokens, invalidate context, clear/release state. Stop failure or expiry cannot skip stages. Provider-local failure does not by itself poison unrelated providers. Identity exhaustion prevents unsafe reuse. +- LIF-09: Deferred work MUST identify its intended instance and operation; stale completion is rejected before dispatch or mutation. Identity MUST NOT alias an outstanding stale reference after reuse. + +## Ownership + +- OWN-01: Each service MUST specify owner, acquisition, conflict granularity, context, lifetime and failure rules. Exclusive or overlapping claims fail without partial acquisition. Immutable read-only bindings need no per-call lease. +- OWN-02: Copying a handle MUST NOT transfer authority. Stable-address sessions are one possible implementation. Context and render surface are callback-scoped borrows. Observable stale/wrong-context use fails before effects. +- OWN-03: Buffer borrows MUST specify capacity, access and lifetime, and layout where relevant. Storage MUST NOT be reused while an operation can access it. Cancellation alone is not quiescence. Deferred work may retain separately owned staging storage, not invalidated app borrows. +- OWN-04: Ordinary close may preserve a retryable claim. Forced retirement MUST invalidate logical ownership even on failure. Unsafe resources and reachable storage MUST be quarantined or otherwise prevented from reuse until a documented safe boundary. +- OWN-05: Persistent, native-instance and script-run scopes MUST remain distinct. Runtime cleanup authority cannot depend on callback-supplied copies of bookkeeping. + +## Time and errors + +- TIM-01: One boot-local monotonic Time domain MUST serve runtime and clients. Invalid clock observations and arithmetic overflow fail explicitly. Finite deadlines and immediate expiry are distinct from unbounded sentinels. +- TIM-02: Absolute deadlines MUST survive retries, context transfers and cleanup unchanged. Operations document cancellation precedence, check points and maximum work between checks. Completed effects need not roll back on later cancellation. +- TIM-03: Long operations MUST have bounded steps or documented finite blocking bounds. Pending operations have terminal outcomes or a recovery path. Expiry prevents new hardware work except specified bounded safety quiescence; logical retirement remains mandatory. +- ERR-01: Results distinguish success, pending where supported, invalid arguments, absent service, unsupported feature, conflict, stale/wrong authority, invalid state, deadline, cancellation, overflow/limit and I/O/internal failure where relevant. Versioned inputs distinguish incompatibility. Validation failure has no hardware effects. +- ERR-02: First terminal failure is retained; subsequent cleanup errors cannot erase it or skip later cleanup. Each operation documents output validity on non-success. + +## Shared Script + +- SCR-01: Interpreted clients MUST use typed adapters to the same authoritative production services as native clients for shared operations. Units, errors and conversions are documented. Equal semantics do not imply equal latency or rendering paths. Manual migration to native is permitted; automatic translation is not required. +- SCR-02: Engine MUST declare finite memory and operation limits, distinct run identity and state/exit model; reject conflicting work at capacity. Portable adapters expose no raw driver pointers or unrestricted hardware access. +- SCR-03: Cross-context calls MUST use bounded synchronized handoff with explicit request ownership, cancellation and result publication. No reuse of in-flight storage. Single-context direct serialized calls are permitted. +- SCR-04: Engine MUST support cooperative stop and finite execution-limit mode. Local until-stopped mode may be documented. Stop acknowledgment is not terminal handoff; stopping runs admit no new work. Resources cannot be reused while worker access remains possible. +- SCR-05: Completion, exception, stop and expiry converge on terminal cleanup. Non-cooperation enters a documented non-reusable fault state or recovery. Closing a launcher cannot prematurely retire worker resources. + +## Recovery + +- REC-01: Non-cooperating script worker after stop/expiry MUST trigger a documented finite independent escalation policy with trigger, grace period, recovery mechanism, reset scope and observable evidence. +- REC-02: Recovery boot MUST suppress offending autostart and expose cause. Persistent programs/settings, if supported, MUST NOT be intentionally erased. Stronger crash-consistency claims require separate contracts and evidence. + +## Boundaries and evolution + +No mandatory CPU, core count, interpreter, heap size, framebuffer, accelerator, filesystem, IDE, wire protocol or dynamic native loader. No promise of native sandboxing, forced preemption, hard real-time/WCET, safety certification or electrical fail-safe. Actuator safety requires separate system-level policy. + +Specification revisions are independent of firmware, SDK, service ABI and protocol versions. Normative changes require a revision and compatibility note; requirement IDs cannot be reused for unrelated behavior. Existing implementation contracts remain unchanged. From 8afddb80acb02748af2567909c9751084315ccbf Mon Sep 17 00:00:00 2001 From: Aztechell <47787602+aztechell@users.noreply.github.com> Date: Thu, 26 Nov 2026 00:04:32 +0500 Subject: [PATCH 2/5] docs: specify portable typed service semantics --- docs/spec/v0.1/SERVICES.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/spec/v0.1/SERVICES.md diff --git a/docs/spec/v0.1/SERVICES.md b/docs/spec/v0.1/SERVICES.md new file mode 100644 index 0000000..d1bf4d1 --- /dev/null +++ b/docs/spec/v0.1/SERVICES.md @@ -0,0 +1,19 @@ +# Service contracts v0.1 + +Normative companion to [Architecture Specification](README.md). Time is required by Core; other extensions are individually declared. All inherit common ownership, deadline and error rules. Names denote semantic operations, not a fixed C ABI. + +- S-TIME-01: Time returns monotonic microseconds in a boot-local domain. Deadline creation rejects overflow and excessive intervals. Sleep preserves distinct wake target and absolute operation deadline. Reached target wins; otherwise cancellation precedes expiry. Nonzero successful sleep observes progress; frozen/regressing clock fails. Declare maximum interval and check slice. +- S-INPUT-01: One logical state and event stream serves all clients. Accepted transitions include complete post-state, changed, pressed and released masks, sequence and acceptance timestamp. Pressed = changed AND state; released = changed AND NOT state. Holding does not repeat edges. Declare supported logical inputs, pulse-only inputs and sampling/debounce policy. +- S-INPUT-02: State reads do not consume events. Readers have independent cursors; open starts after current sequence. Empty read returns pending without waiting. Bounded history reports overflow with exact lost count and latest stable state, then resynchronizes without replay. Closing one reader does not affect others. +- S-LIGHT-01: Nonempty supported channel claims are atomic. Overlap fails busy; disjoint claims may coexist. Scalar and RGB components are integers 0..1000. Invalid values or unauthorized channels fail before effects. +- S-LIGHT-02: Ordinary close attempts safe-off and may retain claim for retry. Forced retirement attempts all channels with unchanged deadline, invalidates claim and quarantines unsafe channels locally. +- S-DISP-01: Declare dimensions, planes, formats, alignment, capacities and transfer/present bounds. Plane claims are exclusive per plane. Origin top-left, x right, y down, half-open rectangles, checked arithmetic. Zero-area or wholly clipped operations are no-ops. Partial blits preserve original stride and offset source by clipping delta. Null clip resets full bounds. RGB565 byte views, if supported, are big-endian. +- S-DISP-02: Transactions have explicit begin, commands/borrows, present or abort. Validation failure preserves staged state. Writable surface and command-batch modes are mutually exclusive in a native render pass. Borrows remain valid until terminal operation; retirement invalidates them and prevents unsafe reuse. +- S-RENDER-01: Native render extension requires runtime-owned transaction and callback-scoped surface. App cannot present, abort or claim a plane through the surface. Runtime aborts where possible and unwinds on callback/provider/present/budget failure. Busy display retains invalidation. +- S-RENDER-02: Bounded invalidation set coalesces identical rectangles and supports full redraw. Successful start schedules initial full redraw when render exists. Invalidation during render schedules another pass without waiting for next timer. Null render creates no competing transaction and render requests fail explicitly. Requests only in RUNNING callbacks. +- S-LINK-01: Modes sharing a connector share exclusive ownership. Declare supported modes and ranges. Claim authorizes only requested supported modes. Active operation blocks mode change; validate before routing effects and quiesce old mode before applying new. UART 8N1 and 7-bit I2C controller/target are optional subsets. +- S-LINK-02: Incremental transfers identify operation lifetime, declare capacities, preserve deadlines and expose partial progress/cancellation. Stale tokens cannot alias new operations after reopen. Forced retirement quiesces caller buffer access or prevents reuse, invalidates claim and quarantines unsafe connector. Failed ordinary close remains retryable. +- S-POWER-01: Off/restart are separate optional features. Preserve absolute deadline through pending preparation. Where applicable stop scripts and flush/unmount storage before hardware action. Preparation failure/expiry prevents action; returned hardware failure restores prior mount where possible. +- S-ACCEL-01: Read-only signed X/Y/Z in milli-g including gravity, declared axes. Initialization may return pending. Output updated only on success. Distinguish absent, unsupported and I/O failure. Optional motion status documents repeat/latch and orientation semantics. + +Camera, vision, data and audio remain separately versioned services; their complete portable schemas are not frozen in v0.1. Common ownership, borrow, deadline and shared-provider rules apply when used by a claimed profile. No camera accuracy, storage atomicity, model format or audio latency guarantee is established here. From 9d239e7ce20aea1f97e505aa9fb21301c8240d77 Mon Sep 17 00:00:00 2001 From: Aztechell <47787602+aztechell@users.noreply.github.com> Date: Thu, 26 Nov 2026 00:04:42 +0500 Subject: [PATCH 3/5] docs: define portable conformance scenarios --- docs/spec/v0.1/CONFORMANCE.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/spec/v0.1/CONFORMANCE.md diff --git a/docs/spec/v0.1/CONFORMANCE.md b/docs/spec/v0.1/CONFORMANCE.md new file mode 100644 index 0000000..9738c65 --- /dev/null +++ b/docs/spec/v0.1/CONFORMANCE.md @@ -0,0 +1,33 @@ +# Conformance plan v0.1 + +Proposed evidence protocol, not an executable suite or passing report. +Normative requirements: [Architecture](README.md) and [Services](SERVICES.md). + +A claim identifies exact implementation and specification revisions, profiles, features, bindings, configuration, limits, test revision, environment and results. Each applicable requirement needs PASS, FAIL, NOT RUN or NOT APPLICABLE with reason. Missing evidence is not PASS. An untested mandatory requirement prevents an unqualified claim. Host tests establish semantics; structural review establishes boundaries and bounded storage; target tests establish physical behavior. A fake backend is not an independent runtime. + +| Case | Requirements | Required observation | +| --- | --- | --- | +| CT-01 | ARC-01..04 | Review declaration, dependency graph and capacities; exhaust bounded pools; no competing authority or unbounded growth. | +| CT-02 | CMP-01..03 | Duplicate IDs, missing required service, optional absence, reordered inputs and disabled app; correct rejection and stable registry identity. | +| CT-03 | LIF-01..03 | Launch A, switch B, reentrant close during start, ordered events; one foreground, clear state, no dispatch after close. | +| CT-04 | LIF-04, TIM-01 | Missed periods, budget excess, clock regression and overflow; no catch-up, common unwind. | +| CT-05 | LIF-05..06, ERR-02 | Inject validation, preparation, start, event, render, close and stop failures; exact callback counts/order and first error. | +| CT-06 | LIF-07..08, OWN-04..05 | Expired deadline, clock failure and safe-off failure; same deadline throughout, all cleanup attempted, local quarantine before reuse. | +| CT-07 | LIF-09, OWN-02 | Stale context/session/token after switch/reopen; reject without mutating new state; verify non-aliasing at identity exhaustion. | +| CT-08 | OWN-01..05, ERR-01 | Conflicting claims, copied handle, invalid buffer, cancellation and failed retirement; no unauthorized effects or premature reuse. | +| CT-09 | TIM-01..03, S-TIME-01 | Target/cancel/expiry race, excessive interval, overflow, freeze/regression; unchanged deadline and declared check bounds. | +| CT-10 | S-INPUT-01..02 | Transitions, holds, two readers and overflow; exact masks/lost count, independent resync. | +| CT-11 | S-LIGHT-01..02 | Overlap/disjoint claims, invalid values, expired close and failed safe-off; atomic claims and local quarantine. | +| CT-12 | S-DISP-01..02 | Clipping, zero area, overflow, stride, invalid state, stale borrow and failed present; correct pixels/trace and ownership. | +| CT-13 | S-RENDER-01..02 | Initial render, busy display, repeated and in-render invalidation, null render, callback/present failure; runtime transaction ownership. | +| CT-14 | S-LINK-01..02 | Mode conflict, invalid config, active switch, partial transfer, cancel, stale token and retirement failure; no stale buffer access. | +| CT-15 | S-POWER-01 | Unsupported action, pending preparation, expiry, hardware failure; no premature action, mount restoration where applicable. | +| CT-16 | S-ACCEL-01 | Absent, settling, signed sample, I/O error, unsupported motion; unchanged output on failure. | +| CT-17 | SCR-01..03 | Same shared service from native/script, normalized result and conflict parity; inspect common provider; saturate and stress handoff. | +| CT-18 | SCR-04..05, OWN-03..05 | Exit, exception, STOP, timeout, launcher close and delayed handoff; no reuse before quiescence; documented failure path. | +| CT-19 | REC-01..02 | Physical non-cooperation injection; independent recovery event, cause, suppressed autostart and committed data preservation where supported. | +| CT-20 | ARC-03, LIF-08, SCR-02..05 | Repeated launch/stop at capacity; report high-water and residual ownership; no monotonic growth of retained run-owned resources. | + +Adapters translate calls and results but MUST NOT implement the behavior under test. Extract binding-neutral fixtures and trace oracles from existing harnesses; run against another implementation. Report timing endpoints and configured limits separately from sampled latency; percentiles are not WCET. Physical connector claims require an external peer. Recovery needs observed independent recovery, not only post-reset status. Fault injection is isolated from production. + +Minimum report fields: specification, implementation revision, configuration, profiles, extensions/bindings, declared limits, suite revision, case results with evidence, unresolved requirement IDs. No independent suite execution is asserted by this document. From 5a652413ce40b9ea9f74dee2bd41831a8bcbb5b0 Mon Sep 17 00:00:00 2001 From: Aztechell <47787602+aztechell@users.noreply.github.com> Date: Thu, 26 Nov 2026 00:04:57 +0500 Subject: [PATCH 4/5] docs: map K210 reference to architecture requirements --- docs/implementation/K210_SPEC_MAPPING.md | 51 ++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/implementation/K210_SPEC_MAPPING.md diff --git a/docs/implementation/K210_SPEC_MAPPING.md b/docs/implementation/K210_SPEC_MAPPING.md new file mode 100644 index 0000000..1a2eec3 --- /dev/null +++ b/docs/implementation/K210_SPEC_MAPPING.md @@ -0,0 +1,51 @@ +# K210 implementation mapping + +Informative mapping of firmware 0.9.0 at [baseline commit](https://github.com/aztechell/hackylens/commit/15acdd519874a09645d036b036f37273462fbe09) to the [candidate specification](../spec/v0.1/README.md). This is not a passing conformance report. Existing [architecture](../ARCHITECTURE.md) and [technical references](../spec/README.md) remain authoritative for concrete APIs. + +| K210 choice | Portable requirement | +| --- | --- | +| Core 0 services/UI, core 1 VM/decoder | Serialized authority and bounded handoff, not core count | +| app.toml, generated C registry | Static validated semantic composition | +| MicroPython embed, 128 KiB GC heap | Declared finite engine resources | +| Single-slot RPC, uncached alias, barriers | Synchronized bounded handoff | +| Stable-address sessions and generation tokens | Non-aliasing ownership and lifetime | +| BASE/OVERLAY, fixed framebuffer | Declared features and transaction semantics | +| WDT1 reset | Independent recovery and autostart suppression | +| DVP, KPU, frame arena | Explicit borrows and shared services | +| littlefs, FAT32, HMPY | Separate storage and wire contracts | + +## Traceability + +Candidate evidence sources only; no tests were run for this mapping. Paths are repository-relative. + +| Requirements | Existing contracts and code | Candidate tests/evidence | +| --- | --- | --- | +| ARC | docs/ARCHITECTURE.md; docs/RAM_BUDGET.md; tools/architecture_layers.toml | tests/test_app_architecture.py; tests/test_service_architecture.py; tests/test_resources.py; tests/test_app_sdk.py | +| CMP | docs/spec/APP_MANIFEST.md; tools/app_manifest.py; tools/app_composition.py; tools/app_registry.py | tests/test_app_manifest.py; tests/test_app_composition.py; tests/test_app_registry.py | +| LIF | docs/spec/APP_RUNTIME.md; firmware/src/app_runtime/runtime.c; sdk/include/hackylens/app/runtime.h; firmware/src/runtime/app_runtime_integration.c | tests/test_app_runtime_v2.py; tests/app_runtime_v2_harness.c; tests/app_runtime_mixed_harness.c; tests/app_runtime_production_harness.c | +| OWN | docs/spec/CAPABILITY_API.md; docs/spec/APP_SDK.md; firmware/src/services/frame_pool.c; frame_workspace.h; media_workspace.h | tests/test_camera_stream_lease.py; tests/test_shared_buffer.py; tests/test_app_runtime_v2.py | +| TIM, ERR, S-TIME | docs/spec/capabilities/TIME.md; firmware/include/hackylens/capability/common.h | tests/test_time_capability.py; tests/time_capability_harness.c | +| S-INPUT | docs/spec/capabilities/INPUT.md | tests/test_input_capability.py; tests/input_capability_harness.c | +| S-LIGHT | docs/spec/capabilities/LIGHTS.md | tests/test_lights_capability.py; tests/lights_capability_harness.c | +| S-DISP, S-RENDER | docs/spec/capabilities/DISPLAY.md; docs/spec/APP_RUNTIME.md | tests/display_normative_suite.c; tests/test_display_contract.py; tests/app_runtime_display_harness.c | +| S-LINK | docs/spec/capabilities/EXTERNAL_LINK.md | tests/external_link_normative_suite.c; tests/test_external_link_contract.py | +| S-POWER | docs/spec/capabilities/POWER.md | tests/test_power_off.py; tests/test_power_bus.py | +| S-ACCEL | docs/spec/capabilities/ACCELEROMETER.md | tests/test_accelerometer.py | +| SCR | docs/MICROPYTHON_API.md; docs/MICROPYTHON_RESEARCH.md; firmware/src/services/micropython_runtime.c; firmware/src/services/core1_executor.c; firmware/src/apps/micropython/micropython_bindings.c | tests/test_micropython_runtime.py; tests/test_micropython_bindings.py; tests/test_service_bindings.py; tests/test_micropython_app.py | +| REC | docs/WDT_HARDWARE_ACCEPTANCE.md | historical physical WDT1 test on both boards, 0.8.0-wdtfi at c57c81d; tests/test_hmpy_acceptance.py | + +## Open conformance questions + +- Core permits headless devices; current production integration opens BASE before start. Do not claim headless K210 qualification without testing. +- Cooperative deadlines do not preempt arbitrary native code. Audit finite provider steps, cancellation and exceptional cleanup; sampled host latency is not WCET. +- Native generations, script run IDs and operation tokens have different lifetimes. Script run ID wraps; verify non-aliasing of outstanding references rather than assuming all counters never wrap. +- Verify physical quiescence or quarantine of reachable borrowed storage after failed retirement. Logical invalidation alone is insufficient. +- Verify shared service semantics across native/script, not equal BASE/OVERLAY latency. +- Historical WDT hardware acceptance uses an earlier fault-injection build. Repeat for the claimed revision and publish raw logs where available. Reset hash preservation does not prove arbitrary power-cut consistency. +- Camera, vision, data and audio operation schemas are not yet frozen in the architecture specification. Existing SDK/wire contracts remain independent. +- Both physical boards use K210; fake/K210 normative tests share production code. No second SoC or independent runtime has been qualified. +- The new profile definitions and generalized requirements are proposed, not automatically proven by existing tests. Map each applicable requirement to actual pass/fail evidence using the [conformance plan](../spec/v0.1/CONFORMANCE.md). + +## Research evidence + +[UART Logger](../UART_LOGGER_STUDY.md), [Object Gate](../OBJECT_GATE_STUDY.md) and [Sky Glide](../SKY_GLIDE_STUDY.md) measure native/script workloads; [raw data](../research/) are separate. [Python-to-C](../PYTHON_TO_C.md) documents manual migration. These support research, not complete conformance. No particular benchmark ratio or RPC batching implementation is required by the specification. From f11c61fafa1f3e79ed145324c5ec167efe3c089e Mon Sep 17 00:00:00 2001 From: Aztechell <47787602+aztechell@users.noreply.github.com> Date: Thu, 26 Nov 2026 00:05:00 +0500 Subject: [PATCH 5/5] docs: index candidate architecture separately from firmware contracts --- docs/spec/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/spec/README.md b/docs/spec/README.md index a86bfe2..8ec0569 100644 --- a/docs/spec/README.md +++ b/docs/spec/README.md @@ -1,5 +1,15 @@ # Technical references +## Candidate architecture specification + +- [HackyLens Architecture Specification v0.1](v0.1/README.md) +- [Portable service contracts](v0.1/SERVICES.md) +- [Conformance plan](v0.1/CONFORMANCE.md) +- [K210 implementation mapping](../implementation/K210_SPEC_MAPPING.md) + +The candidate specification has an independent version. The concrete firmware +contracts below remain unchanged; no conformance claim is made by extraction. + [Architecture](../ARCHITECTURE.md) describes the current implementation. These references describe public interfaces, resource lifetimes and physical board constraints. Headers and behavioral tests should change with their docs.