# PyCForge SDK project directives

Read docs/Coverage-0.7.md before changing coverage discovery. Python, console
and desktop must share the same report, preserve explicit offline labels and
avoid inferring conversion families from profile versions or library names.

This is a separate product from PyCForge. CC alone decides and performs PyPI
publication. Do not add GitHub hosting or publish from an assistant environment.

Read `PyCForge-SDK-README-Guidelines.txt` before changing the SDK README or preparing
distributions. Keep its prose focused on product use, human and AI clients, and
capabilities supplied by PyCForge. Keep development-cycle status in separate
engineering records, and align the README embedded in both distribution files.
Preserve the approved public banner above the version heading and carry the
plain-text guideline into every source archive. `docs/README-GUIDELINES.md`
retains the earlier editorial context.

Read docs/FRAMEWORK.md before changing the architecture. Keep the SDK backend
independent of Qt and of engine imports in its own Python process. Console,
Python and GUI clients must use the same public SDK service. The selected
engine is authoritative for conversion semantics; use supported public engine
services, never private compiler adapters or a copied converter.

Preserve old project inputs and successful package artifacts on failure. Do not
skip required fixtures, accept stale evidence, interpret offline data as execution
authority, execute examples during browsing, or silently change conversion routes.

Use explicit native verification and package registration commands. Keep all
unmet array/resource/general-plugin requirements visible. Review installed
artifacts in separate SDK and engine environments before delivery. Retain these
directives, the original requirements/roadmap and reproducible verification.


Conversion imports are an ongoing product capability; the user removed the
previous two-library limit on 2026-10-28. Follow docs/FRAMEWORK.md, including
contract evolution, coverage limits and old-engine/project/package qualification.

The optional desktop in src/pycforge_sdk/gui uses the same headless service.
Read revision 0.6 before altering readiness, worker lifetime or editor saves.
Keep visual-provenance.json accurate; copied presentation assets do not authorize
copying engine conversion logic. Run headless tests and tests_gui in separate
SDK environments, with the selected engine installed independently.

Read `docs/UI-0.6.1.md` before changing file selection or the desktop's visual
controls. Retain custom titlebars, drive navigation, explicit interpreter
guidance, and icon-with-text actions. Keep SDK and distribution versions aligned.

The SDK uses the original code-bracket mark and copper-orange accents from its
approved banner. Keep this identity in gui/identity.py and resources/sdk-mark.png;
do not recolor the preserved shared visual files. See docs/UI-0.6.1.md.

Read docs/UI-0.6.2.md before changing startup discovery. Keep discovery headless, bounded and cache-preserving; keep user choice and cancellation explicit. Only a successful live connection updates the saved interpreter. Retain the original banner icon on startup, main window and dialogs.

Read docs/Workbench-1.0.md before changing engine-driven forms or Help. Preserve compatibility for additive workbench metadata; reject unknown required semantics before cache replacement. No library-name dispatch belongs in the SDK.

For SDK 0.6.3, read the structured-value section of docs/FRAMEWORK.md. Preserve
engine-owned forms and report the actual engine-produced package format. New
library support must not add library-name or conversion dispatch to this SDK.

Read docs/Template-Customization-0.8.md before changing starter customization. Keep the public SDK service shared by Python, CLI and desktop; never rewrite conversion sources independently in the client.

Read docs/Preflight-0.9.md before changing fixture review or diagnostic navigation.
Preflight never runs native fixtures, writes verification evidence or approves
packaging. Preserve engine diagnostic coordinates and translate them for Qt safely.

Read docs/Native-Diagnostics-0.10.md before changing native compiler facts, retained failure inputs or the installed manual. Keep these contracts shared by public clients and independent of Qt/engine imports.

Read docs/PyCForge-SDK-Improvement-Roadmap.txt and docs/New-Project-0.11.md before
changing project creation. Keep direct/guided fields shared and engine-provided
starters authoritative. Preserve existing project formats and explicit execution.

Read docs/Setup-Recovery-0.12.md before changing saved setup or its catalogue
review. Keep read/save inert, require observed hashes for replacements, preserve
unfinished edits and require explicit acceptance of changed starter data.

Read docs/Authoring-Guide-0.13.md before changing guided project editing. Reuse
the same editor controls and headless guidance model, keep position preferences
outside project meaning, and never treat navigation as verification or approval.

Read docs/SDK-Extensibility-Audit-0.14.md before changing engine compatibility,
project capacity or field/next-action presentation. Ordinary compatible engine
additions must pass with a frozen SDK. Do not copy example counts into project
limits, hide absent advertised fields, discard optional metadata or infer a
conversion family. Keep explicit saves, engine validation and evidence gates.

Read docs/Import-Handoff-0.15.md before changing worker shutdown or package/
registration continuation. Return the worker to the GUI thread before quitting
its execution thread; keep cancellation cooperative and completion supervised.
Handoff is an inert view of completed operations, never an approval credential.
Keep actual engine identities, independent registration and unknown metadata.

Read docs/Fixture-Authoring-0.16.md before changing fixture edits or recorded-result
presentation. Preserve observed-project and reviewed-plan checks, existing source
files and engine metadata. Author expectations remain independent of observed
output. No editing, navigation or comparison may execute fixtures or approve
packaging. Keep the one-document commit boundary and recovery limits explicit.

Read docs/Source-Repair-0.17.md before changing source repair checkpoints or review.
Keep original/edited/current text distinct, apply only an exact reviewed state,
preserve author expectations, and report explicit checkpoint and single-file
recovery limits. Use the same services for desktop, CLI and Python.

Read docs/Project-Recovery-0.18.md before changing project drafts or resumed authoring.
Preserve incomplete text and inactive fixture inputs, require exact reviewed
currentness, and keep resume inert and project/fixture commits separate. README
now follows CC's concise audience/workflow direction; retain its sole banner URL.
