Skip to content

fix(deps): share TinyInference with embedding workspaces - #156

Merged
senamakel merged 2 commits into
mainfrom
tinycomputer-single-inference
Oct 22, 2026
Merged

senamakel merged 2 commits into
mainfrom
tinycomputer-single-inference

Conversation

@senamakel

@senamakel senamakel commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

TinyComputer's workspace currently declares TinyInference decisions and planner crates as direct paths into its nested vendor copy. In an embedding host, Cargo cannot redirect those path dependencies to the host's shared TinyInference tree, which can compile duplicate package identities when TinyComputer and host dependencies use TinyInference 0.5.

Declare the two dependencies by the exact TinyInference revision recorded by TinyComputer's vendor gitlink, then keep a workspace-root patch to that vendored copy for standalone builds. When TinyComputer is embedded, Cargo ignores the member workspace patch and honors the host's top-level TinyInference patch, so the planner and host resolve the same tinyinference-core source. The TinyInference submodule pins are unchanged.

Validation:

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo build --all-targets --all-features
  • cargo test --all-features
  • cargo tree -p tinycomputer -i tinyinference-core showed one tinyinference-core v0.5.0 from the pinned vendor copy.
  • An outer-workspace Cargo probe with a separate TinyInference 0.5 patch redirected TinyComputer's git dependencies to that shared source.

Refs #111
Part of tinyhumansai/openhuman#7328

Summary by CodeRabbit

  • Chores
    • Updated the project’s dependency configuration. This maintenance change does not alter the features, behavior, or interface available in the product. No user-facing changes are included in this release. Availability and functionality remain unchanged for users; the update is limited to the project’s internal dependency setup.

senamakel and others added 2 commits October 22, 2026 21:19
The two tinyinference crates are now declared as git dependencies pinned to a
revision instead of path dependencies, so an embedding workspace can redirect
them to its own shared copy. A matching patch entry keeps standalone builds on
the vendored submodule, and the vendored submodules are bumped to their latest
commits.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T21:29:40.415022Z b3d1fc7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a875ee94-d12f-4773-b9a0-2e9231126ace
📥 Commits

Reviewing files that changed from the base of the PR and between e52203c and b3d1fc7.

📒 Files selected for processing: 1
  • Cargo.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The manifest now pins the TinyInference decisions and llm dependencies to a Git repository revision. A source-specific Cargo patch maps them to the vendored crates.

Changes: TinyInference Cargo source configuration

Layer / File(s) Summary
Pin and patch TinyInference dependencies
Cargo.toml
Both dependencies now use the pinned Git source. A source-specific patch resolves them to the vendored crate paths.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix

Possibly related issues

  • tinyhumansai/openintents-core#202: The source-specific patch supports embedding TinyComputer with TinyInference by allowing the host workspace to redirect the shared source.

Suggested reviewers: yellowsnnowmann

Merge Risk: ⚪ Minimal · up to b3d1f

No actionable merge risk remains in the dependency configuration.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main dependency change: sharing TinyInference with embedding workspaces through workspace-compatible dependency configuration.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

A rabbit checks the Cargo file,
Two crates follow one pinned trail.
Vendored paths wait close at hand,
A patch now maps them as planned.
The rabbit hops, then rests a while.

Comment @coderabbitai help to get the list of available commands.

@tinysweeper

tinysweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Tiny Sweeper review

Reviewed head: b3d1fc7dcdac5dcc55c02b40fa86f103b1c18d0f

Verdict: Ready for maintainer review · Priority: none
Coverage: Reviewed 1 of 1 files.
Pull request purpose (title): fix(deps): share Tin…

Diagnostics and supporting details

Full summary

Pull request purpose (title): fix(deps): share TinyInference with embedding workspaces. This pull request reworks how TinyComputer's workspace depends on TinyInference: the two vendored path dependencies for `tinyinference-decisions` and `tinyinference-llm` become git dependencies pinned to `rev = "02c01b72f70cd3747304b2a5a696b52a49fdd4fd"`, and a workspace-root `[patch."https://github.com/tinyhumansai/tinyinference"]` entry maps those packages back to `vendor/tinyinference/crates/...` so standalone builds still resolve locally. The stated purpose is to let an embedding host workspace override these git sources with its own top-level TinyInference patch, avoiding duplicate package identities when both sides use TinyInference 0.5, while leaving the submodule pins untouched. No push delta was available, so this describes the whole pull request.

Review snapshot

Change surface Files Review signal Count
Production 0 Active findings 0
Tests 0 Noted findings 0
Documentation 0 Resolved findings 0
Configuration 1 Pending checks/questions 0

Completeness: Complete
Test assessment: Test coverage is assessed from changed tests and lane evidence; execution is not claimed without trusted check data.

What changed

`Cargo.toml` no longer declares `tinyinference-decisions` and `tinyinference-llm` as direct paths into the vendored submodule; both now point at the tinyhumansai/tinyinference git repository at the full commit rev `02c01b72f70cd3747304b2a5a696b52a49fdd4fd`. A new `[patch."https://github.com/tinyhumansai/tinyinference"]` table at the workspace root redirects both crates back to `vendor/tinyinference/crates/...` for standalone builds; comment text was updated to explain the host-workspace redirect intent. Nothing outside the manifest changes.

Features

  • Modified — TinyInference dependencies declared by pinned git rev: Both TinyInference crates are resolved by source URL plus an exact commit rather than a path, so an embedding host's top-level patch can substitute its shared TinyInference copy and avoid duplicate package identities; the full-rev pin means no floating reference is introduced. (Cargo.toml tinybus = { path = "vendor/tinybus/crates/tinybus" })
  • Added — Workspace-root patch back to the vendored TinyInference copy: Standalone TinyComputer builds continue to compile against the pinned submodule contents despite the dependencies being declared as git sources, keeping standalone resolution reproducible. (Cargo.toml tinycomputer-accessibility = { path = "crates/tinycomputer-accessibility" })

Tests

  • behavioral — The description lists manual validation commands (`cargo fmt`, `cargo clippy`, `cargo build`, `cargo test`, `cargo tree -p tinycomputer -i tinyinference-core`, and an outer-workspace Cargo probe).: Not verified within this review; no trusted check evidence confirms execution or results. (Cargo.toml tinybus = { path = "vendor/tinybus/crates/tinybus" })

Findings

No active actionable findings.

Before merge

None.

Agent review details

critique

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The answered critique lane found no correctness defect in the manifest, noting the git-plus-patch pattern mirrors the existing `tinybus` handling and that a single rev covers both crates.
  • Lane summary: The change replaces the two `vendor/tinyinference` path dependencies with a pinned git dependency and adds a `[patch]` back to those vendored paths so standalone builds still resolve locally. The pattern mirrors the existing `tinybus` handling and the pin is a single rev for both crates, so the lockfile stays coherent; I found no correctness defect in this manifest. _The code index is behind this pull request (indexed at `e172609bdc74`), so retrieved context may be out of date._

security

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The answered security lane found nothing security-relevant introduced, noting provenance is preserved and the pin is a full commit rev rather than a floating ref; it did not verify the patch table's exact key semantics against Cargo's reference.
  • Lane summary: The diff replaces the path dependencies on the vendored TinyInference crates with a pinned git dependency plus a `[patch]` redirect back to the submodule, which preserves wire provenance and keeps standalone builds reproducible. The pin is by full commit rev, so no floating ref is introduced. I found nothing security-relevant introduced here, though I did not verify the patch table's exact key semantics against Cargo's reference within this review. _The code index is behind this pull request (indexed at `e172609bdc74`), so retrieved context may be out of date._

tests

  • Conclusion: Neutral
  • Scope reviewed: all assigned evidence
  • Lane summary: No behavioural change: nothing outside documentation, configuration and tests.

commits

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The answered commits lane reported no sensitive content in committed files.
  • Lane summary: No sensitive content in committed files. _The code index is behind this pull request (indexed at `e172609bdc74`), so retrieved context may be out of date._

description

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Positive: The answered description lane confirmed the change matches the body's stated approach with no reportable defect, but could not verify that the new `rev` equals the submodule gitlink because `vendor/tinyinference` is not checked out, so the pinned vendor copy's identity is unconfirmed.
  • Lane summary: The change swaps the two TinyInference path dependencies for git dependencies at the vendored revision and adds a workspace-root `[patch]` back to the submodule, which matches the body's stated approach; I found no reportable defect. I could not verify the claim that the new `rev` equals the submodule gitlink because `vendor/tinyinference` is not checked out, so I could not confirm the pinned vendor copy is actually the same commit. _The code index is behind this pull request (indexed at `e172609bdc74`), so retrieved context may be out of date._
Evidence and run details
  • Models: ladder/vectors-oai3, deepseek-v4.1-flash
  • Spend: $0.000425
  • Tokens: 141992 input · 3443 output · 19456 cached · 121 embedding
  • Updated: 2026-10-22T21:29:15Z
Head State Pass summary
b3d1fc7dcdac ready for maintainer review 0 active finding(s), 0 resolved finding(s) (at 2026-10-22T21:29:15Z)

tinysweeper 0.1.2

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tinysweeper found nothing blocking. Approving.

Diagnostics

Total spend: $0.0004

@senamakel
senamakel merged commit 759273c into main Oct 22, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant