Skip to content

sync: v11 hardening and upstream base pin - #42

Merged
ecryptoguru merged 3 commits into
mainfrom
sync/v11-hardening-2026-08-02
Aug 2, 2026
Merged

sync: v11 hardening and upstream base pin#42
ecryptoguru merged 3 commits into
mainfrom
sync/v11-hardening-2026-08-02

Conversation

@ecryptoguru

@ecryptoguru ecryptoguru commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Pushes the local v11 hardening commit and the upstream-base pin to main.

Commits:

  • 8506d48 update11a (pin .lyrashield-upstream-base)
  • 9143f7b feat(fork): enforce thin-fork invariants and attribution banners for v11

Summary by CodeRabbit

  • New Features

    • Added product-prefixed configuration options for deduplication settings and application URL.
    • Environment variables now take precedence over .env values.
    • Git operations now stop after a short timeout instead of waiting indefinitely.
  • Bug Fixes

    • ChatGPT subscription-backed models are rejected before sandbox setup across all entry points.
    • Telemetry is disabled by default.
  • Documentation

    • Updated provider, CLI, configuration, and contribution guidance to reflect these changes.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@ecryptoguru, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ba5e4d50-3bc6-48aa-9c79-61c50225ce67

📥 Commits

Reviewing files that changed from the base of the PR and between 9143f7b and d53b7df.

📒 Files selected for processing (1)
  • scripts/verify-thin-fork.sh
📝 Walkthrough

Walkthrough

The PR updates thin-fork verification, adds upstream attribution, introduces product-prefixed configuration aliases, rejects subscription-backed models, disables telemetry by default, preserves exported environment variables, adds Git timeouts, and removes redundant type casts.

Changes

Fork controls and runtime boundaries

Layer / File(s) Summary
Configuration and model boundary
lyrashield_adapter/cli.py, strix/config/settings.py, strix/interface/main.py, strix/telemetry/__init__.py, tests/test_lyrashield_adapter.py
Product-prefixed aliases are derived from the settings schema. .env values no longer override exported variables. Subscription-backed models are rejected for all entry points. Telemetry defaults to disabled.
Thin-fork verification and attribution
.lyrashield-upstream-base, scripts/verify-thin-fork.sh, CONTRIBUTING.md, docs/contributing.mdx, UPGRADES.md, strix/**
The pinned upstream commit and verification gate now validate attribution banners and ledger entries for changed upstream files. Attribution headers are added across inherited modules.
Runtime safeguards and documentation
strix/interface/utils.py, strix/config/models.py, strix/core/*, strix/report/*, strix/viewer/transcript.py, docs/advanced/configuration.mdx, docs/llm-providers/*, docs/usage/*
Git commands receive five-second timeouts. Redundant casts are removed after runtime checks. Configuration and provider documentation describes the new aliases and model restrictions. Two obsolete planning documents are deleted.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Environment
  participant Adapter
  participant Settings
  participant EntryPoint
  Environment->>Adapter: Supply exported or .env configuration
  Adapter->>Settings: Build product-prefixed aliases from the schema
  Settings-->>EntryPoint: Resolve model and runtime settings
  EntryPoint->>EntryPoint: Reject subscription-backed models before sandbox setup
Loading

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 43.48% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the v11 hardening work and the upstream base pin described in the pull request.
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.
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sync/v11-hardening-2026-08-02

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@ecryptoguru
ecryptoguru enabled auto-merge (rebase) August 2, 2026 01:14

@coderabbitai coderabbitai 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.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CONTRIBUTING.md`:
- Line 43: Update the verification instructions in CONTRIBUTING.md at lines
43-43 and docs/contributing.mdx at lines 15-15 to state that every changed
strix/ path requires either an attribution banner or a matching UPGRADES.md
ledger entry, replacing the banner-only wording in both locations.

In `@docs/advanced/configuration.mdx`:
- Around line 126-128: The LYRASHIELD_APP_URL configuration documentation
currently exposes the legacy Strix relay as its default. Update the ParamField
default or configuration guidance to use a LyraShield-owned relay endpoint, or
require explicit LyraShield configuration, so email verification and encrypted
report delivery cannot implicitly target STRIX_APP_URL.

In `@lyrashield_adapter/cli.py`:
- Around line 52-66: Update prepare_environment() so the STRIX_TELEMETRY
fallback is assigned only when the user has not already provided an explicit
telemetry setting, preserving both LYRASHIELD_TELEMETRY and STRIX_TELEMETRY
values while retaining the existing default of "0".

In `@pyproject.toml`:
- Around line 99-102: Update the [tool.mypy] exclude list in pyproject.toml to
remove strix/interface/tui while preserving the tests exclusion, so the existing
mypy directory gate checks the TUI source.

In `@scripts/verify-thin-fork.sh`:
- Around line 23-29: Update the validation flow in verify-thin-fork.sh to fetch
"$BASE" from the upstream remote on every run, rather than only when git
cat-file finds a local object. After fetching, validate that "$BASE" resolves
specifically to a commit object, rejecting trees, blobs, tags, or failed fetches
before continuing.

In `@strix/telemetry/__init__.py`:
- Around line 1-9: Set STRIX_TELEMETRY to "0" in the CLI entry-point flow
immediately before invoking upstream main(), ensuring it occurs before any
settings resolution; also add a guard that rejects telemetry.enabled whenever
LYRASHIELD_PRODUCT_BOUNDARY is set, using the existing settings-loading and
entry-point symbols.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 97a9f859-ee13-477b-b8f5-6d6c2eeb70d7

📥 Commits

Reviewing files that changed from the base of the PR and between 5f224a0 and 9143f7b.

📒 Files selected for processing (49)
  • .lyrashield-upstream-base
  • CONTRIBUTING.md
  • Makefile
  • README.md
  • UPGRADES.md
  • docs/advanced/configuration.mdx
  • docs/advanced/skills.mdx
  • docs/contributing.mdx
  • docs/cost-cache-engine-plan.md
  • docs/index.mdx
  • docs/llm-providers/azure.mdx
  • docs/llm-providers/openai.mdx
  • docs/llm-providers/overview.mdx
  • docs/p4-endpoint-enablement.md
  • docs/usage/cli.mdx
  • docs/usage/instructions.mdx
  • lyrashield_adapter/cli.py
  • pyproject.toml
  • scripts/verify-thin-fork.sh
  • strix/agents/factory.py
  • strix/agents/prompt.py
  • strix/config/codex.py
  • strix/config/models.py
  • strix/config/settings.py
  • strix/core/agents.py
  • strix/core/execution.py
  • strix/core/inputs.py
  • strix/core/runner.py
  • strix/core/sessions.py
  • strix/interface/auth_cli.py
  • strix/interface/cli.py
  • strix/interface/main.py
  • strix/interface/provider_contract_cli.py
  • strix/interface/tui/app.py
  • strix/interface/utils.py
  • strix/provider_contract.py
  • strix/report/sarif.py
  • strix/report/state.py
  • strix/report/usage.py
  • strix/report/writer.py
  • strix/runtime/docker_client.py
  • strix/runtime/session_manager.py
  • strix/telemetry/__init__.py
  • strix/telemetry/_common.py
  • strix/telemetry/posthog.py
  • strix/telemetry/scarf.py
  • strix/viewer/server.py
  • strix/viewer/transcript.py
  • tests/test_lyrashield_adapter.py
💤 Files with no reviewable changes (4)
  • docs/p4-endpoint-enablement.md
  • docs/cost-cache-engine-plan.md
  • strix/report/state.py
  • strix/config/models.py

Comment thread CONTRIBUTING.md
Comment thread docs/advanced/configuration.mdx
Comment thread lyrashield_adapter/cli.py
Comment thread pyproject.toml
Comment thread scripts/verify-thin-fork.sh
Comment thread strix/telemetry/__init__.py
@ecryptoguru
ecryptoguru merged commit 678fccb into main Aug 2, 2026
2 checks passed
@ecryptoguru
ecryptoguru deleted the sync/v11-hardening-2026-08-02 branch August 2, 2026 01:25
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