Skip to content

chore(runner): remove dead feature flags (libsql-secrets, filesystem-goal-store) - #6378

Merged
ilblackdragon merged 1 commit into
mainfrom
chore/remove-dead-runner-feature-flags
Jul 21, 2026
Merged

ilblackdragon merged 1 commit into
mainfrom
chore/remove-dead-runner-feature-flags

Conversation

@ilblackdragon

Copy link
Copy Markdown
Member

What

Trims ironclaw_runner from three feature flags to one. Removes libsql-secrets and filesystem-goal-store; keeps libsql-restart-tests (a CI test-lane selector). This continues the runner feature-flag cleanup after #6374 removed local_trigger_access (and with it webui-user-store / filesystem-local-trigger-access).

Supersedes #6377 (which removed libsql-secrets alone) — folded in here because filesystem-goal-store is referenced inside the libsql-secrets block, so splitting them would guarantee a merge conflict.

Why these two are dead / mis-gated

Per .claude/rules/cargo-features.md, a feature must earn its build. Neither did:

libsql-secrets — gated src/secrets.rs, a libSQL FilesystemSecretStore assembly that no shipped build enabled (only the CI compile self-test package-feature-flags.sh). The production secret-store assembly already lives in ironclaw_reborn_composition::factory (build_secret_store / open_local_dev_secret_store), so the runner module was dead duplication.

filesystem-goal-store — gated FilesystemSubagentGoalStore + the await_edge submodules, isolating only ironclaw_filesystem (a cheap path dep, not a heavy external one). It was forwarded by composition's both libsql and postgres features and by product_workflow → on in every build. That's the rule's "if every artifact enables it, it's the product," not a build shape.

Changes

  • Delete src/secrets.rs, tests/secrets.rs; drop the secrets module gate; remove orphaned optional deps ironclaw_secrets + secrecy.
  • Make ironclaw_filesystem an unconditional runner dep; de-gate goal_store.rs (18 #[cfg] sites) and await_edge/mod.rs (4 submodule gates); remove the redundant dev-dep dupe.
  • Drop the ironclaw_runner/filesystem-goal-store forwards in ironclaw_reborn_composition (libsql/postgres) and the filesystem-goal-store feature on product_workflow's dev-dep.
  • package-feature-flags.sh: runner now emits just --features libsql-restart-tests.

After this, libsql has no src/ user left — it survives only as libsql-restart-tests' test-lane dep.

Behavior / risk

Move-only dead-code removal — behavior unchanged: libsql-secrets was dead in every shipped build; filesystem-goal-store code was on in every shipped build. De-gating also resolves the pre-existing dead-code warnings in the runner's zero-feature build (the await_edge/untrusted_text helpers are now always compiled and reachable).

Validation

  • cargo test -p ironclaw_runner (default) — 339+ pass; the previously feature-gated goal-store/await-edge tests now run by default
  • cargo clippy -p ironclaw_runner --all-targets (default and --features libsql-restart-tests) — clean
  • Workspace feature matrix (per .claude/rules/review-discipline.md, both legs): cargo clippy --all --tests --examples -- -D warnings and --all-features — both clean
  • cargo test -p ironclaw_architecture — pass (dependency edges changed)
  • scripts/ci/test-package-feature-flags.sh — pass

🤖 Generated with Claude Code

…m-goal-store

Continues the runner feature-flag cleanup after #6374 removed
`local_trigger_access` (and with it `webui-user-store` /
`filesystem-local-trigger-access`). Removes the two remaining flags that
no shipped build shape turns off, leaving `libsql-restart-tests` as the
runner's sole flag — a sanctioned CI test-lane selector with zero `src/`
`#[cfg]`.

libsql-secrets:
- Gated `src/secrets.rs`, a libSQL `FilesystemSecretStore` assembly no
  shipped build enabled (only the CI compile self-test). The production
  assembly already lives in `ironclaw_reborn_composition::factory`
  (`build_secret_store` / `open_local_dev_secret_store`).
- Removes the module + `tests/secrets.rs`, the feature, and the now-orphaned
  optional deps `ironclaw_secrets` and `secrecy`.

filesystem-goal-store:
- Gated `FilesystemSubagentGoalStore` + the `await_edge` submodules,
  isolating only `ironclaw_filesystem` (a cheap path dep). It was forwarded
  by composition's *both* `libsql` and `postgres` features and by
  product_workflow — on in every build, i.e. the product, not a build shape.
- Makes `ironclaw_filesystem` an unconditional dep and de-gates the code;
  drops the forwards in composition (`libsql`/`postgres`) and the
  product_workflow dev-dep feature.

De-gating also resolves the pre-existing dead-code warnings in the runner's
zero-feature build (the `await_edge`/`untrusted_text` helpers are now always
compiled and reachable).

Behavior unchanged: both modules/paths were on in every shipped build or
dead in all of them. Verified: runner tests (default), runner clippy
(default + libsql-restart-tests), workspace feature matrix (default +
all-features), and `cargo test -p ironclaw_architecture`.

Supersedes #6377.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ironloopai

ironloopai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

🔎 IronLoop Review Status

Head: 9840cb8fd0d8e793efbe68f8e7b5125c15953287
Result: Reviewer output needs human attention or validation.
Next: Review the flagged rows before merging.
Updated: 2026-07-21T00:03:07.164Z

Current reviewers:

Reviewer State Verdict Findings Last update
ironloop/common-reviewer (reviewer) Completed Needs validation 0 blocking findings / 0 notes; needs validation 2026-07-21T00:03:07.155Z
Reviewer summaries
Reviewer Detail
ironloop/common-reviewer (reviewer) Needs validation; 0 blocking findings; No concrete correctness or security defect found in the focused feature cleanup. Runtime validation could not run because this environment has no Cargo/Rust toolchain.
Recent activity
Time Reviewer State Detail
2026-07-21T00:00:00.238Z ironloop/common-reviewer (reviewer) Queued Accepted review request for head 9840cb8.
2026-07-21T00:00:00.238Z ironloop/common-reviewer (reviewer) Queued Waiting for this reviewer lane to become available.
2026-07-21T00:00:00.760Z ironloop/common-reviewer (reviewer) Started Reviewer worker started.
2026-07-21T00:00:04.829Z ironloop/common-reviewer (reviewer) Workspace ready Prepared isolated checkout (merge_ref) at 29b624a.
2026-07-21T00:03:07.155Z ironloop/common-reviewer (reviewer) Result captured Needs validation; 0 blocking findings.
2026-07-21T00:03:07.155Z ironloop/common-reviewer (reviewer) Completed Review completed and terminal status was persisted.
Available commands
  • @ironloopai help
  • @ironloopai agents
  • @ironloopai review
  • @ironloopai review --agent <agent>
Run metadata

Admission: webhook accepted the request and IronLoop persisted reviewer state before this projection.

@railway-app
railway-app Bot temporarily deployed to ironclaw-ci-preview / ironclaw-pr-6378 July 21, 2026 00:00 Destroyed
@github-actions github-actions Bot added scope: dependencies Dependency updates size: L 200-499 changed lines risk: low Changes to docs, tests, or low-risk modules labels Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f9a5619c-59d1-465a-aefe-85173f5dbdd9

📥 Commits

Reviewing files that changed from the base of the PR and between 5b307e2 and 9840cb8.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock, !**/Cargo.lock
📒 Files selected for processing (9)
  • crates/ironclaw_product_workflow/Cargo.toml
  • crates/ironclaw_reborn_composition/Cargo.toml
  • crates/ironclaw_runner/Cargo.toml
  • crates/ironclaw_runner/src/lib.rs
  • crates/ironclaw_runner/src/secrets.rs
  • crates/ironclaw_runner/src/subagent/await_edge/mod.rs
  • crates/ironclaw_runner/src/subagent/goal_store.rs
  • crates/ironclaw_runner/tests/secrets.rs
  • scripts/ci/package-feature-flags.sh
💤 Files with no reviewable changes (5)
  • crates/ironclaw_runner/tests/secrets.rs
  • crates/ironclaw_runner/src/secrets.rs
  • crates/ironclaw_reborn_composition/Cargo.toml
  • crates/ironclaw_runner/src/lib.rs
  • crates/ironclaw_runner/src/subagent/goal_store.rs

📝 Walkthrough

Summary by CodeRabbit

  • Refactor
    • Simplified feature configuration for database-backed workflows.
    • Made subagent goal-store and await-edge functionality consistently available.
    • Removed the standalone libSQL secret-store interface and related integration coverage.
  • Chores
    • Updated CI feature selection to reflect the streamlined configuration.

Walkthrough

Changes

Runner feature consolidation

Layer / File(s) Summary
Dependency and feature contract updates
crates/ironclaw_runner/Cargo.toml, crates/ironclaw_reborn_composition/Cargo.toml, crates/ironclaw_product_workflow/Cargo.toml
Filesystem, thread, and turn dependencies become unconditional; filesystem-goal-store feature links are removed from consuming features and test dependencies.
Unconditional filesystem goal store
crates/ironclaw_runner/src/subagent/await_edge/mod.rs, crates/ironclaw_runner/src/subagent/goal_store.rs
Await-edge modules, filesystem goal-store implementations, helpers, and related contract tests no longer require the filesystem-goal-store feature.
Reborn secret-store removal
crates/ironclaw_runner/src/lib.rs, scripts/ci/package-feature-flags.sh
The feature-gated secrets module is no longer exported, and CI stops enabling libsql-secrets.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: serrrfirat

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is detailed, but it does not follow the repository template and omits required sections like Linked Issue, Security Impact, and Rollback Plan. Rewrite it to match the template headings and add the missing Linked Issue, Security Impact, Reborn Trust-Boundary Checklist, Database Impact, Blast Radius, Rollback Plan, and Review Follow-Through sections.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title follows Conventional Commits style and accurately summarizes the feature-flag cleanup in ironclaw_runner.
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.

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.

@github-actions github-actions Bot added the contributor: core 20+ merged PRs label Jul 21, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the codebase by removing the libsql-secrets and filesystem-goal-store feature flags from ironclaw_runner and related crates. It deletes the secrets module and its associated tests, removes dependencies on ironclaw_secrets and secrecy, and makes the filesystem-backed goal store and await edge modules always compiled rather than conditionally compiled. There are no review comments to assess, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@ironloopai ironloopai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ IronLoop Review: reviewer

Review at a glance

Verdict Blocking Notes Inline Head
⚠️ Needs validation 0 0 0 9840cb8fd0d8

Head: 9840cb8fd0d8e793efbe68f8e7b5125c15953287
Next: Human review or validation is required before merging.

Run details

Status: Current
Needs human: no
Needs validation: yes

Summary

No concrete correctness or security defect found in the focused feature cleanup. Runtime validation could not run because this environment has no Cargo/Rust toolchain.

Findings

None.

Developer follow-up

After fixing this feedback:

  1. Push the fix to this PR branch.
  2. Re-run this reviewer with @ironloopai review --agent reviewer if you only changed this reviewer's findings.
  3. Re-run all reviewers with @ironloopai review when the fix may affect multiple areas.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage ratchet

Ratchet mode: ENFORCING

RATCHET PASS: global
  observed: 86.4% (321687 / 372336 lines)
  floor:    85.3% (tolerance 0.5pp -> effective floor 84.8%)
  denominator: 372336 lines now vs 320188 at floor capture (+52148 lines, +16.29%) — material change (>5%)

⚠️ 2 Reborn crate(s) have 0 int-tier coverage (target: 0) — ironclaw_prompt_envelope, ironclaw_scripts

Reborn integration-tier coverage

Line coverage (Reborn crates): 86.4% — 321687 / 372336 lines

Per-crate breakdown (65 crates, lowest-covered first)
Crate Line % Covered / Total
ironclaw_prompt_envelope 0% 0 / 88
ironclaw_scripts 0% 0 / 345
ironclaw_runtime_policy 33.84% 89 / 263
ironclaw_event_projections 43.31% 673 / 1554
ironclaw_observability 61.54% 16 / 26
ironclaw_authorization 62.46% 604 / 967
ironclaw_dispatcher 62.88% 83 / 132
ironclaw_mcp 64.89% 595 / 917
ironclaw_filesystem 68.34% 4121 / 6030
ironclaw_channel_host 68.65% 219 / 319
ironclaw_memory 69.2% 773 / 1117
ironclaw_reborn_migration 70.42% 2362 / 3354
ironclaw_trust 72.88% 661 / 907
ironclaw_wasm_limiter 74.6% 47 / 63
ironclaw_extractors 74.72% 538 / 720
ironclaw_capabilities 75.76% 2103 / 2776
ironclaw_projects 76.48% 400 / 523
ironclaw_reborn_cli 76.54% 9890 / 12922
ironclaw_triggers 77.33% 2531 / 3273
ironclaw_llm 78.39% 20412 / 26038
ironclaw_product_context 78.57% 11 / 14
ironclaw_telegram_extension 80.18% 4842 / 6039
ironclaw_wasm_product_adapters 80.36% 1448 / 1802
ironclaw_process_sandbox 80.65% 671 / 832
ironclaw_first_party_extensions 81.06% 5965 / 7359
ironclaw_memory_native 81.17% 3195 / 3936
ironclaw_events 81.95% 1594 / 1945
ironclaw_network 82.98% 673 / 811
ironclaw_reborn_event_store 83.03% 1169 / 1408
ironclaw_reborn_identity 83.59% 433 / 518
ironclaw_processes 83.76% 939 / 1121
ironclaw_secrets 83.79% 2548 / 3041
ironclaw_wasm 84.44% 1069 / 1266
ironclaw_reborn_config 84.66% 2152 / 2542
ironclaw_product_workflow 84.75% 11088 / 13083
ironclaw_auth 84.97% 3279 / 3859
ironclaw_run_state 85.61% 458 / 535
ironclaw_channel_delivery 85.79% 1383 / 1612
ironclaw_common 86.13% 1714 / 1990
ironclaw_threads 87.22% 4838 / 5547
ironclaw_slack_v2_adapter 87.3% 1491 / 1708
ironclaw_skills 87.58% 4470 / 5104
ironclaw_turns 87.89% 14549 / 16554
ironclaw_product_adapter_registry 88.06% 531 / 603
ironclaw_product_adapters 88.1% 3384 / 3841
ironclaw_reborn_traces 88.2% 11946 / 13544
ironclaw_host_runtime 88.69% 18153 / 20467
ironclaw_reborn_openai_compat 88.79% 3778 / 4255
ironclaw_host_api 88.83% 4635 / 5218
ironclaw_webui 89.33% 7700 / 8620
ironclaw_extensions 89.33% 2955 / 3308
ironclaw_telegram_v2_adapter 89.65% 2712 / 3025
ironclaw_reborn_composition 89.8% 75738 / 84341
ironclaw_approvals 90.18% 1598 / 1772
ironclaw_conversations 90.39% 3123 / 3455
ironclaw_event_streams 90.82% 1009 / 1111
ironclaw_hooks 90.88% 10075 / 11086
ironclaw_runner 91.09% 16926 / 18581
ironclaw_resources 91.67% 4477 / 4884
ironclaw_loop_host 92.24% 15992 / 17338
ironclaw_attachments 93.06% 630 / 677
ironclaw_agent_loop 94.95% 9424 / 9925
ironclaw_safety 95.09% 3682 / 3872
ironclaw_outbound 95.52% 3451 / 3613
ironclaw_first_party_extension_ports 95.62% 3672 / 3840

This table itself is informational and never gates the PR on its own — not the percentage, not the per-crate holes, not the 0-coverage callout. A separate coverage ratchet (dry-run until enforce=true; see tests/integration/coverage-floor.toml) can fail the build on specific configured floors.

Exemptions (3 entry/entries excluded from the accounting above)
Module / Crate Reason Issue
crate: ironclaw_embeddings v1-only: consumed only by root ironclaw (src/app.rs, src/tools/builtin/memory.rs, src/workspace/mod.rs, src/config/{mod,embeddings}.rs); no crates/* dependents. Covered by "Tests (Legacy)". #5657
crate: ironclaw_gateway v1-only: consumed only by root ironclaw (src/channels/web/platform/static_files.rs, src/channels/web/handlers/frontend.rs); no crates/* dependents. Covered by "Tests (Legacy)". #5657
crate: ironclaw_tui v1-only: consumed only by root ironclaw (src/main.rs, src/channels/tui.rs); no crates/* dependents. Crate's own doc comment confirms it bridges INTO v1, not Reborn. Covered by "Tests (Legacy)". #5657

@railway-app

railway-app Bot commented Jul 21, 2026

Copy link
Copy Markdown

🚅 Deployed to the ironclaw-pr-6378 environment in ironclaw-ci-preview

Service Status Web Updated (UTC)
ironclaw ✅ Success (View Logs) Web Jul 21, 2026 at 12:16 am

This branch was successfully deployed

No deployments
ironclaw-ci-preview / ironclaw-pr-6378 — 9840cb8f Deployed Jul 21, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: core 20+ merged PRs risk: low Changes to docs, tests, or low-risk modules scope: dependencies Dependency updates size: L 200-499 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant