Skip to content

ci: cross-compile tole-core for the mobile targets (E9 partial) - #82

Merged
ajianaz merged 1 commit into
developfrom
ci/cross-compile-mobile
Sep 18, 2026
Merged

ajianaz merged 1 commit into
developfrom
ci/cross-compile-mobile

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

What

New cross-compile CI matrix job: cargo check -p tole-core --no-default-features for aarch64-apple-ios (macos-14) and aarch64-linux-android (ubuntu + preinstalled NDK, cc env vars pointed at the newest runner NDK).

Why

E9 acceptance (issue #9) requires the cross-build matrix. The embedder/mobile profile (no subprocess tools, no MCP) is core to the "mobile-ready core" claim but was never compile-checked by CI — default-feature invocations never touch that configuration.

Changes

  • .github/workflows/ci.yml: one matrix job, per-target rust-cache key, conditional NDK env setup (android only; iOS needs no extra toolchain)
  • CHANGELOG Unreleased entry

Testing

  • Both invocations verified locally before landing: iOS check on this macOS host (11s clean), android check with the identical CC/AR env pattern against NDK r28 (7s clean)
  • YAML parses (ruby YAML.load_file)
  • cora review --staged: No issues found (exit 0)
  • Note: E9 also lists a perf doc + timeout/truncation hardening — those remain open on E9: Hardening, cross-build CI, perf, OSS prep #9; this covers the cross-build matrix item

Embedder profile (--no-default-features: no subprocess tools, no MCP)
is now compile-checked on aarch64-apple-ios (macos-14) and
aarch64-linux-android (ubuntu runner + preinstalled NDK). Check-only —
no link, no device. Android needs the NDK clang for bundled sqlite, so
the job points the cc crate env vars at the newest runner NDK.

Both invocations verified locally before landing: the iOS check on this
macOS host, the android check with the same CC/AR env pattern against
NDK r28.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 7a7fa6f into develop Sep 18, 2026
16 checks passed
@ajianaz
ajianaz deleted the ci/cross-compile-mobile branch September 18, 2026 01:43
ajianaz added a commit that referenced this pull request Sep 18, 2026
…d rewrite, CLA files (#91)

Docs pass aligned with the uteke workflow-standard rooms
(codecora-workflow-standard + codecoradev-conventions):

- README: badges, install from crates.io (tole-cli IS published — the
  'build from source only' claim was stale), CLI command table, env-var
  reference table, sessions-location note, ecosystem repo links,
  workspace/evals layout, documentation index with CLA links.
- CONTRIBUTING: rewritten to the ecosystem standard — branch-name
  prefixes, issue-first + templates, PR body sections (What/Why/
  Changes/Testing), merge-gate checklist (real Cora verdict required,
  not just a green check), Cora Review 10-min split rule, CLA section,
  crates.io claim corrected.
- AGENTS.md: restructured to the adopted 6-section Gatehouse standard
  (repo layout, branch & merge discipline, pre-commit checks, tooling,
  cross-session continuity, infra facts). New tooling mandate: cora
  index/brain/callers/impact/affected/query before and during coding
  (brain over blind grep), review/scan after; uteke recall/remember for
  cross-session continuity (namespace repo-tole, standards rooms are
  the source of truth).
- CLA_INDIVIDUAL.md + CLA_CORPORATE.md added (org-generic, mirrored
  from codecoradev/cora-code per the every-repo-ships-CLA standard).
- CHANGELOG: deduplicated the double '### Added' heading under
  Unreleased (artifact of merged PRs).
- docs/architecture.md: 'Cross-build CI deferred to Phase 3' stale
  claims updated (landed in #82).

Co-authored-by: ajianaz <[email protected]>
ajianaz added a commit that referenced this pull request Sep 29, 2026
#9)

- perf_threshold.rs (CI-enforced regression gates): text-only turn,
  10-call tool chain (full intent→effect→settle sandwich per call),
  crash-resume replay — each under a documented 2s budget (observed
  <50ms; ~40x headroom, so failures are real regressions not noise).
  Results recorded in docs/perf.md.
- fuzz_lite.rs (deterministic LCG corpus, no rand dep): 400 hostile
  inputs x 5 tools (traversal, control chars, zero-width, flag
  injection, shell metacharacters, 300-char blobs) must settle
  Ok/Err — never panic; 600 fuzzed argv shapes through
  check_destructive_argv (teardown payloads never pass); truncation
  invariants (40 MiB stream → capped 32 MiB WITH the marked suffix —
  generated child-side, argv limits forbid shipping the payload).
- epics Track C marked DONE; README links docs/perf.md.

E9 acceptance: cross-build CI (#82) ✓, fuzz/panic-free ✓, perf doc ✓,
public-ready (#79/#91) ✓.
ajianaz added a commit that referenced this pull request Sep 29, 2026
#9)

- perf_threshold.rs (CI-enforced regression gates): text-only turn,
  10-call tool chain (full intent→effect→settle sandwich per call),
  crash-resume replay — each under a documented 2s budget (observed
  <50ms; ~40x headroom, so failures are real regressions not noise).
  Results recorded in docs/perf.md.
- fuzz_lite.rs (deterministic LCG corpus, no rand dep): 400 hostile
  inputs x 5 tools (traversal, control chars, zero-width, flag
  injection, shell metacharacters, 300-char blobs) must settle
  Ok/Err — never panic; 600 fuzzed argv shapes through
  check_destructive_argv (teardown payloads never pass); truncation
  invariants (40 MiB stream → capped 32 MiB WITH the marked suffix —
  generated child-side, argv limits forbid shipping the payload).
- epics Track C marked DONE; README links docs/perf.md.

E9 acceptance: cross-build CI (#82) ✓, fuzz/panic-free ✓, perf doc ✓,
public-ready (#79/#91) ✓.
ajianaz added a commit that referenced this pull request Sep 29, 2026
#9)

- perf_threshold.rs (CI-enforced regression gates): text-only turn,
  10-call tool chain (full intent→effect→settle sandwich per call),
  crash-resume replay — each under a documented 2s budget (observed
  <50ms; ~40x headroom, so failures are real regressions not noise).
  Results recorded in docs/perf.md.
- fuzz_lite.rs (deterministic LCG corpus, no rand dep): 400 hostile
  inputs x 5 tools (traversal, control chars, zero-width, flag
  injection, shell metacharacters, 300-char blobs) must settle
  Ok/Err — never panic; 600 fuzzed argv shapes through
  check_destructive_argv (teardown payloads never pass); truncation
  invariants (40 MiB stream → capped 32 MiB WITH the marked suffix —
  generated child-side, argv limits forbid shipping the payload).
- epics Track C marked DONE; README links docs/perf.md.

E9 acceptance: cross-build CI (#82) ✓, fuzz/panic-free ✓, perf doc ✓,
public-ready (#79/#91) ✓.
ajianaz added a commit that referenced this pull request Sep 29, 2026
#9)

- perf_threshold.rs (CI-enforced regression gates): text-only turn,
  10-call tool chain (full intent→effect→settle sandwich per call),
  crash-resume replay — each under a documented 2s budget (observed
  <50ms; ~40x headroom, so failures are real regressions not noise).
  Results recorded in docs/perf.md.
- fuzz_lite.rs (deterministic LCG corpus, no rand dep): 400 hostile
  inputs x 5 tools (traversal, control chars, zero-width, flag
  injection, shell metacharacters, 300-char blobs) must settle
  Ok/Err — never panic; 600 fuzzed argv shapes through
  check_destructive_argv (teardown payloads never pass); truncation
  invariants (40 MiB stream → capped 32 MiB WITH the marked suffix —
  generated child-side, argv limits forbid shipping the payload).
- epics Track C marked DONE; README links docs/perf.md.

E9 acceptance: cross-build CI (#82) ✓, fuzz/panic-free ✓, perf doc ✓,
public-ready (#79/#91) ✓.
ajianaz added a commit that referenced this pull request Sep 29, 2026
#9) (#139)

- perf_threshold.rs (CI-enforced regression gates): text-only turn,
  10-call tool chain (full intent→effect→settle sandwich per call),
  crash-resume replay — each under a documented 2s budget (observed
  <50ms; ~40x headroom, so failures are real regressions not noise).
  Results recorded in docs/perf.md.
- fuzz_lite.rs (deterministic LCG corpus, no rand dep): 400 hostile
  inputs x 5 tools (traversal, control chars, zero-width, flag
  injection, shell metacharacters, 300-char blobs) must settle
  Ok/Err — never panic; 600 fuzzed argv shapes through
  check_destructive_argv (teardown payloads never pass); truncation
  invariants (40 MiB stream → capped 32 MiB WITH the marked suffix —
  generated child-side, argv limits forbid shipping the payload).
- epics Track C marked DONE; README links docs/perf.md.

E9 acceptance: cross-build CI (#82) ✓, fuzz/panic-free ✓, perf doc ✓,
public-ready (#79/#91) ✓.

Co-authored-by: ajianaz <[email protected]>
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