UIKitPlus is a declarative, protocol-oriented UI framework built on top of UIKit/AppKit.
Key characteristics:
- Fluent, chain-based API surface (
Self-returning modifiers). - Extension-driven feature composition (
DeclarativeProtocol+Feature.swiftpattern). - Reference-semantic reactive state engine (
State,InnerState, mapped/bound states). - Deferred + state-backed layout constraint system (
PreConstraint, solo/super/relative activation). - Cross-platform abstraction via conditional UIKit/AppKit bridges.
UIKitPlus is not a game. There is no deterministic simulation, no Godot, no fixed tick rate, no seeded RNG requirement, and no RenderSnapshot contract.
This repository is documentation-governed and architecture-frozen by default.
Primary entrypoint:
.agent/ARCH_INDEX.md
Critical architecture contracts:
.agent/architecture/LAYER_MODEL.md.agent/architecture/FLUENT_CHAIN_CONTRACT.md.agent/architecture/STATE_SYSTEM.md.agent/architecture/EXTENSION_SYSTEM.md.agent/architecture/RUNTIME_MODEL.md.agent/architecture/MUTATION_MODEL.md
Workflow and governance:
.agent/WORKFLOW.md.agent/DEVELOPMENT_PHASES.md.agent/PATCH_REVIEW_RULES.md.agent/SYSTEM_RULES.md.agent/COMMIT_RULES.md.agent/VALIDATION_RULES.md
Source and debt:
.agent/SOURCE_MAP.md.agent/TECH_DEBT.md.agent/TASKS.md.agent/TASKS_ARCHIVE.md
State vNext planning:
.agent/STATE_VNEXT_PLAN.md
Context discipline:
.agent/CONTEXT_LOADING_RULES.md.agent/CONTEXT_BUDGET.md
All tasks must follow:
PLAN -> IMPLEMENT -> AUDIT -> LOCAL COMMIT
This governance commit is documentation-only.
The following are not in scope for this docs closure:
- Swift source migration
- Test changes
- Swift 6 strict concurrency migration (deferred to later)
- State vNext implementation (deferred to later)
- 52-commit independent audit (deferred to later)
- Push to origin
All workflow artifacts must include architecture ID tags.
Required tag format example: [ST12][MU04][FC02].
This is mandatory for:
- PLAN outputs,
- IMPLEMENT notes,
- AUDIT outputs,
- patch review outputs.
Enforcement:
- planning without architecture-ID grounding is incomplete,
- artifacts without architecture-ID traceability are incomplete,
- review outputs without architecture references fail enforcement.
Must include:
- target files and expected documentation updates,
- layer impact (
DSL,Runtime,Platform,Cross-Layer), - fluent-chain compatibility risk,
- mutation-flow impact,
- extension-collision risk,
- state propagation risk,
- platform leakage risk.
- architecture-ID tags for each risk/decision line.
Rules:
- implement approved scope only,
- do not introduce undocumented contracts,
- do not drift architecture,
- keep UIKitPlus fluent/reference semantics intact,
- keep extension composition stable and predictable.
- implementation notes must include architecture-ID tags for each behavior-affecting change.
Must validate:
- fluent chain contract compliance,
- state and binding propagation correctness,
- extension collision/precedence safety,
- runtime lifecycle consistency,
- layout side-effect safety,
- documentation synchronization.
- every audit finding must include architecture-ID tags.
DO NOT PUSH.
Push to origin is forbidden until governance docs are committed, independent 52-commit audit is accepted, critical regressions are fixed/deferred, Swift 6 / State vNext risks are documented, and the user explicitly authorizes push.
Local commits are allowed only after ChatGPT audit acceptance.
.artifacts/**is transient planning data..artifacts/**must never be committed.- Promote durable facts from
.artifacts/to.agent/before discarding. .artifacts/is git-ignored via.gitignoreentry.artifacts/.
- Architecture is frozen by default.
- Any DSL-breaking or contract-changing architecture update requires explicit approval.
- Agents must refuse silent architecture reinterpretation.
- Fluent API Safety:
- Chainable methods must preserve
Self-return semantics and composability.
- Extension Isolation:
- Extensions must remain domain-scoped and avoid hidden global behavior.
- No Hidden Side Effects:
- State mutations and listener wiring must be explicit and auditable.
- Layout Predictability:
- Constraint behavior must remain explicit, with no undocumented implicit activation side effects.
- Platform Boundary Integrity:
- UIKit/AppKit conditionals must not leak platform-only APIs into shared contracts.
This repository supports iterative ChatGPT planning/review and Codex implementation loops.
Required:
- architecture-grounded prompts,
- patch-scoped changes,
- post-patch contract review,
.agentsynchronization after each completed task.
Required loading strategy:
AGENTS.md.agent/ARCH_INDEX.md.agent/architecture/LAYER_MODEL.md- one domain architecture doc
- one contract doc
Default maximum active architecture docs: 3.
Do not bulk-load the entire .agent tree unless explicitly required.
Task closure is blocked until affected docs are updated.
Minimum sync targets when relevant:
AGENTS.md.agent/ARCH_INDEX.md.agent/ARCHITECTURE.md.agent/architecture/*.md.agent/DEVELOPMENT_PHASES.md.agent/PATCH_REVIEW_RULES.md.agent/SKILL_INDEX.md.agent/skills/*.md.agent/TEMPLATE_INDEX.md.agent/templates/*.md.agent/PROJECT_MEMORY.md.agent/MODULES.md.agent/TASKS.md.agent/TASKS_ARCHIVE.md.agent/TECH_DEBT.md.agent/SOURCE_MAP.md.agent/COMMIT_RULES.md.agent/VALIDATION_RULES.md.agent/STATE_VNEXT_PLAN.md.agent/TODO.md