rubik 0.8.1 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ATTRIBUTION.md +2 -2
- data/CHANGELOG.md +207 -43
- data/README.md +5 -1
- data/bin/rubik +15 -10
- data/lib/rubik/adapter/base.rb +19 -0
- data/lib/rubik/adapter/generic.rb +0 -14
- data/lib/rubik/adapter/node.rb +2 -0
- data/lib/rubik/ast/treesitter/zig_walker.rb +15 -2
- data/lib/rubik/cli/workspace_trust.rb +17 -0
- data/lib/rubik/concurrency/worker.rb +143 -0
- data/lib/rubik/concurrency.rb +1 -0
- data/lib/rubik/config/deep_ops.rb +17 -0
- data/lib/rubik/config/defaults.rb +23 -1
- data/lib/rubik/config/schema.rb +0 -1
- data/lib/rubik/config/store.rb +14 -0
- data/lib/rubik/config.rb +7 -3
- data/lib/rubik/context/repo_context_reader.rb +27 -8
- data/lib/rubik/events.rb +18 -0
- data/lib/rubik/kernel/dispatcher.rb +4 -4
- data/lib/rubik/kernel/unit.rb +4 -3
- data/lib/rubik/log.rb +2 -1
- data/lib/rubik/lsp/client.rb +83 -180
- data/lib/rubik/lsp/document_store.rb +209 -0
- data/lib/rubik/mcp/client.rb +4 -3
- data/lib/rubik/mcp/manager.rb +6 -2
- data/lib/rubik/mcp/transport/stdio.rb +51 -9
- data/lib/rubik/orchestrator/auto_apply.rb +2 -0
- data/lib/rubik/orchestrator/budget_manager.rb +18 -2
- data/lib/rubik/orchestrator/goal_ledger/deep_ops.rb +41 -0
- data/lib/rubik/orchestrator/goal_ledger/drift.rb +2 -1
- data/lib/rubik/orchestrator/goal_ledger/ledger.rb +56 -50
- data/lib/rubik/orchestrator/goal_ledger/observation_projection.rb +26 -0
- data/lib/rubik/orchestrator/goal_ledger/patch.rb +10 -17
- data/lib/rubik/orchestrator/goal_ledger/suspend_lifecycle.rb +9 -41
- data/lib/rubik/orchestrator/goal_ledger/validator.rb +6 -20
- data/lib/rubik/orchestrator/goal_ledger/verifier.rb +3 -14
- data/lib/rubik/orchestrator/goal_ledger/xml_render.rb +21 -14
- data/lib/rubik/orchestrator/goal_session.rb +505 -0
- data/lib/rubik/orchestrator/goal_state.rb +15 -15
- data/lib/rubik/orchestrator/loop.rb +62 -63
- data/lib/rubik/orchestrator/lsp_feedback.rb +7 -1
- data/lib/rubik/orchestrator/subagent/admission_policy.rb +161 -0
- data/lib/rubik/orchestrator/subagent/builtin_types.rb +3 -2
- data/lib/rubik/orchestrator/subagent/instance.rb +4 -0
- data/lib/rubik/orchestrator/subagent/journal.rb +2 -1
- data/lib/rubik/orchestrator/subagent/notices.rb +5 -4
- data/lib/rubik/orchestrator/subagent/profile_contract.rb +4 -10
- data/lib/rubik/orchestrator/subagent/questioner.rb +21 -6
- data/lib/rubik/orchestrator/subagent/run_cycle.rb +22 -1
- data/lib/rubik/orchestrator/subagent/scoped_registry.rb +34 -2
- data/lib/rubik/orchestrator/subagent/step_runner.rb +1 -1
- data/lib/rubik/orchestrator/subagent/teardown.rb +4 -0
- data/lib/rubik/orchestrator/subagent/transcript_formatter.rb +2 -1
- data/lib/rubik/orchestrator/subagent/type_registry.rb +19 -1
- data/lib/rubik/orchestrator/turn_executor/subagent_channel.rb +6 -1
- data/lib/rubik/orchestrator/turn_executor/user_channel.rb +6 -1
- data/lib/rubik/orchestrator/turn_executor.rb +2 -1
- data/lib/rubik/orchestrator.rb +1 -0
- data/lib/rubik/platform/path.rb +0 -1
- data/lib/rubik/platform.rb +15 -0
- data/lib/rubik/plugin/storage.rb +20 -29
- data/lib/rubik/prompt/context_builder.rb +24 -18
- data/lib/rubik/prompt/context_compactor.rb +31 -8
- data/lib/rubik/prompt/conversation_rows.rb +33 -0
- data/lib/rubik/prompt/doctrine.rb +4 -2
- data/lib/rubik/prompt/emergency_compactor.rb +5 -4
- data/lib/rubik/repl/commands/agent_context.rb +1 -1
- data/lib/rubik/repl/commands/agent_execution.rb +15 -467
- data/lib/rubik/repl/commands/buffer.rb +5 -1
- data/lib/rubik/repl/commands/lsp.rb +1 -1
- data/lib/rubik/repl/commands/mcp.rb +5 -0
- data/lib/rubik/repl/commands/subagents.rb +4 -4
- data/lib/rubik/repl/commands/workspace.rb +22 -2
- data/lib/rubik/repl/config_wiring.rb +24 -7
- data/lib/rubik/repl/input_execution.rb +1 -1
- data/lib/rubik/repl/input_loop.rb +1 -1
- data/lib/rubik/repl/lifecycle.rb +31 -2
- data/lib/rubik/repl/pruner/harness.rb +52 -67
- data/lib/rubik/repl/pruner/rules.rb +3 -1
- data/lib/rubik/repl/service_catalog.rb +1 -1
- data/lib/rubik/repl/synthesized_command_context.rb +3 -0
- data/lib/rubik/repl/turn_recorder.rb +5 -4
- data/lib/rubik/repl.rb +1 -0
- data/lib/rubik/runtime/context.rb +5 -0
- data/lib/rubik/runtime/discovery.rb +55 -0
- data/lib/rubik/runtime/manifest_store.rb +116 -0
- data/lib/rubik/runtime/overlay_storage.rb +300 -218
- data/lib/rubik/runtime/repair_probe.rb +20 -2
- data/lib/rubik/runtime/sealed_coeffects.rb +58 -0
- data/lib/rubik/runtime/synthesized_command_context.rb +80 -0
- data/lib/rubik/runtime/synthesized_tool_context.rb +123 -0
- data/lib/rubik/runtime/task_manager.rb +7 -2
- data/lib/rubik/runtime.rb +3 -0
- data/lib/rubik/security/allowlist.rb +167 -0
- data/lib/rubik/security/audit_log.rb +72 -0
- data/lib/rubik/security/classifier/classifier.rb +24 -8
- data/lib/rubik/security/classifier/commands/biome.yaml +49 -0
- data/lib/rubik/security/classifier/commands/bun.yaml +91 -0
- data/lib/rubik/security/classifier/commands/bundle.yaml +107 -0
- data/lib/rubik/security/classifier/commands/clang-format.yaml +21 -0
- data/lib/rubik/security/classifier/commands/clang.yaml +37 -0
- data/lib/rubik/security/classifier/commands/cmake.yaml +37 -0
- data/lib/rubik/security/classifier/commands/ctest.yaml +30 -0
- data/lib/rubik/security/classifier/commands/gcc.yaml +36 -0
- data/lib/rubik/security/classifier/commands/gem.yaml +104 -0
- data/lib/rubik/security/classifier/commands/gofmt.yaml +15 -0
- data/lib/rubik/security/classifier/commands/pnpm.yaml +8 -8
- data/lib/rubik/security/classifier/commands/python.yaml +18 -1
- data/lib/rubik/security/classifier/commands/python3.yaml +18 -1
- data/lib/rubik/security/classifier/commands/rake.yaml +60 -0
- data/lib/rubik/security/classifier/commands/rspec.yaml +42 -0
- data/lib/rubik/security/classifier/commands/rubocop.yaml +38 -0
- data/lib/rubik/security/classifier/commands/ruby.yaml +25 -0
- data/lib/rubik/security/classifier/commands/rustc.yaml +34 -0
- data/lib/rubik/security/classifier/commands/zig.yaml +77 -0
- data/lib/rubik/security/classifier/database.rb +12 -1
- data/lib/rubik/security/classifier/matcher.rb +17 -2
- data/lib/rubik/security/classifier/models.rb +3 -2
- data/lib/rubik/security/classifier.rb +5 -0
- data/lib/rubik/security/command_gate.rb +567 -0
- data/lib/rubik/security/guard.rb +96 -989
- data/lib/rubik/security/path_policy.rb +117 -0
- data/lib/rubik/security/synthesis_gate.rb +300 -0
- data/lib/rubik/security.rb +5 -0
- data/lib/rubik/storage/ranking.rb +113 -0
- data/lib/rubik/storage/store.rb +2 -92
- data/lib/rubik/storage/transcript_indexer.rb +2 -3
- data/lib/rubik/storage/vakanuvis/harness.rb +49 -89
- data/lib/rubik/tools/base.rb +24 -7
- data/lib/rubik/tools/builtins/files.rb +2 -0
- data/lib/rubik/tools/builtins/goal_ledger.rb +9 -9
- data/lib/rubik/tools/builtins/grep.rb +2 -3
- data/lib/rubik/tools/builtins/lifecycle.rb +91 -88
- data/lib/rubik/tools/builtins/synthesis.rb +124 -64
- data/lib/rubik/tools/builtins/unsynthesize.rb +38 -0
- data/lib/rubik/tools/catalog.rb +3 -0
- data/lib/rubik/tools/declaration.rb +6 -2
- data/lib/rubik/tools/lifecycle_rollbacks.rb +87 -0
- data/lib/rubik/tools/native_search.rb +2 -1
- data/lib/rubik/tools/preflight_runner.rb +107 -14
- data/lib/rubik/tools/registry.rb +2 -0
- data/lib/rubik/tools/truncator.rb +25 -0
- data/lib/rubik/tools/uri_resolver.rb +3 -1
- data/lib/rubik/uris.rb +5 -1
- data/lib/rubik/version.rb +1 -1
- data/lib/rubik.rb +1 -0
- metadata +35 -1
|
@@ -6,6 +6,7 @@ require "stringio"
|
|
|
6
6
|
require "timeout"
|
|
7
7
|
|
|
8
8
|
require_relative "../security/errors"
|
|
9
|
+
require_relative "../runtime/synthesized_tool_context"
|
|
9
10
|
|
|
10
11
|
module Rubik
|
|
11
12
|
module Tools
|
|
@@ -48,10 +49,33 @@ module Rubik
|
|
|
48
49
|
def flush
|
|
49
50
|
out.flush if out.respond_to?(:flush)
|
|
50
51
|
end
|
|
52
|
+
|
|
53
|
+
def coeffect(_name)
|
|
54
|
+
nil
|
|
55
|
+
end
|
|
51
56
|
end
|
|
52
57
|
case payload["mode"]
|
|
53
58
|
when "tool"
|
|
54
|
-
|
|
59
|
+
tool_ctx = Struct.new(:dummy) do
|
|
60
|
+
def require(_name); nil; end
|
|
61
|
+
def get(_name, default = nil); default; end
|
|
62
|
+
def has?(_name); false; end
|
|
63
|
+
def satisfied?(_deps); true; end
|
|
64
|
+
def coeffect(_name); nil; end
|
|
65
|
+
end.new
|
|
66
|
+
pos_params = handler.respond_to?(:parameters) ? handler.parameters.select { |t, _| [:req, :opt, :rest].include?(t) } : []
|
|
67
|
+
accepts_ctx = if pos_params.empty?
|
|
68
|
+
handler.respond_to?(:arity) && handler.arity == 2
|
|
69
|
+
else
|
|
70
|
+
pos_params.count { |t, _| t == :req } <= 2 && pos_params.size >= 2
|
|
71
|
+
end
|
|
72
|
+
if handler.respond_to?(:arity) && handler.arity == 0
|
|
73
|
+
handler.call
|
|
74
|
+
elsif accepts_ctx
|
|
75
|
+
handler.call(payload["args"], tool_ctx)
|
|
76
|
+
else
|
|
77
|
+
handler.call(payload["args"])
|
|
78
|
+
end
|
|
55
79
|
else
|
|
56
80
|
view = command_view.new(StringIO.new)
|
|
57
81
|
case handler.arity
|
|
@@ -60,9 +84,14 @@ module Rubik
|
|
|
60
84
|
else handler.call(payload["args"], view.out, nil)
|
|
61
85
|
end
|
|
62
86
|
end
|
|
63
|
-
STDOUT.puts JSON.dump(ok: true)
|
|
64
|
-
rescue StandardError, ScriptError => e
|
|
65
|
-
|
|
87
|
+
STDOUT.puts "\n" + JSON.dump(ok: true)
|
|
88
|
+
rescue StandardError, ScriptError, SystemExit => e
|
|
89
|
+
# SystemExit must be caught too: a handler that prints a fake
|
|
90
|
+
# {"ok":true} line and then calls exit would otherwise leave the
|
|
91
|
+
# fake as the last output line with a clean exit status — the
|
|
92
|
+
# parent's reverse scan would accept it as the verdict. The
|
|
93
|
+
# genuine failure verdict printed here is the LAST line instead.
|
|
94
|
+
STDOUT.puts "\n" + JSON.dump(ok: false, error: "#{e.class}: #{e.message}")
|
|
66
95
|
end
|
|
67
96
|
RUBY
|
|
68
97
|
|
|
@@ -109,15 +138,37 @@ module Rubik
|
|
|
109
138
|
nil
|
|
110
139
|
rescue Timeout::Error
|
|
111
140
|
"execution timed out after #{timeout} seconds"
|
|
141
|
+
rescue SystemExit => e
|
|
142
|
+
# Same spoof class as the child rescue above: an in-process handler
|
|
143
|
+
# that prints a fake success and calls exit must not terminate the
|
|
144
|
+
# host verification run as a clean pass.
|
|
145
|
+
"SystemExit raised during verification: #{e.message}"
|
|
112
146
|
rescue StandardError, ScriptError => e
|
|
113
147
|
"#{e.class}: #{e.message}"
|
|
114
148
|
end
|
|
115
149
|
|
|
116
150
|
# Parent-side mirror of the child evaluator's dispatch (see CHILD_SCRIPT).
|
|
117
151
|
# Keeps the fallback path semantically identical to the subprocess path.
|
|
118
|
-
def call_handler(handler, args, mode: :command, shell: nil)
|
|
152
|
+
def call_handler(handler, args, mode: :command, shell: nil, context: nil)
|
|
119
153
|
if mode == :tool
|
|
120
|
-
handler.
|
|
154
|
+
if handler.respond_to?(:arity) && handler.arity.zero?
|
|
155
|
+
handler.call
|
|
156
|
+
elsif Rubik::Runtime::SynthesizedToolContext.accepts_context?(handler)
|
|
157
|
+
tool_ctx = if context.nil?
|
|
158
|
+
Struct.new(:dummy) do
|
|
159
|
+
def require(_name) = nil
|
|
160
|
+
def get(_name, default = nil) = default
|
|
161
|
+
def has?(_name) = false
|
|
162
|
+
def satisfied?(_deps) = true
|
|
163
|
+
def coeffect(_name) = nil
|
|
164
|
+
end.new
|
|
165
|
+
else
|
|
166
|
+
Rubik::Runtime::SynthesizedToolContext.wrap(context)
|
|
167
|
+
end
|
|
168
|
+
handler.call(args, tool_ctx)
|
|
169
|
+
else
|
|
170
|
+
handler.call(args)
|
|
171
|
+
end
|
|
121
172
|
else
|
|
122
173
|
command_view = Struct.new(:out) do
|
|
123
174
|
def puts(*)
|
|
@@ -131,6 +182,10 @@ module Rubik
|
|
|
131
182
|
def flush
|
|
132
183
|
out.flush if out.respond_to?(:flush)
|
|
133
184
|
end
|
|
185
|
+
|
|
186
|
+
def coeffect(_name)
|
|
187
|
+
nil
|
|
188
|
+
end
|
|
134
189
|
end
|
|
135
190
|
view = command_view.new(StringIO.new)
|
|
136
191
|
case handler.arity
|
|
@@ -175,7 +230,11 @@ module Rubik
|
|
|
175
230
|
nil
|
|
176
231
|
end
|
|
177
232
|
parse_verdict(output)
|
|
178
|
-
rescue StandardError
|
|
233
|
+
rescue StandardError => e
|
|
234
|
+
# The spawn→in-process downgrade is a weaker isolation level (the
|
|
235
|
+
# caller re-executes the same code in this process), so the
|
|
236
|
+
# infrastructure failure must never vanish without a trace.
|
|
237
|
+
warn "[Preflight] subprocess verification failed (#{e.class}: #{e.message}); falling back to in-process"
|
|
179
238
|
kill_child(pid) if defined?(pid) && pid
|
|
180
239
|
:spawn_failed
|
|
181
240
|
ensure
|
|
@@ -194,15 +253,49 @@ module Rubik
|
|
|
194
253
|
end
|
|
195
254
|
|
|
196
255
|
def parse_verdict(output)
|
|
197
|
-
|
|
198
|
-
|
|
256
|
+
verdict = nil
|
|
257
|
+
output.lines.reverse_each do |raw_line|
|
|
258
|
+
line = raw_line.strip
|
|
259
|
+
next unless line.include?('"ok"')
|
|
260
|
+
|
|
261
|
+
# Direct parse for clean lines enclosed in braces
|
|
262
|
+
if line.start_with?("{") && line.end_with?("}")
|
|
263
|
+
begin
|
|
264
|
+
candidate = JSON.parse(line)
|
|
265
|
+
if candidate.is_a?(Hash) && candidate.key?("ok")
|
|
266
|
+
verdict = candidate
|
|
267
|
+
break
|
|
268
|
+
end
|
|
269
|
+
rescue JSON::ParserError
|
|
270
|
+
# Fall through to substring extraction below
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# In-line substring extraction for chatter sharing the line
|
|
275
|
+
start_idx = line.rindex(/\{\s*"ok"\s*:/)
|
|
276
|
+
end_idx = line.rindex("}")
|
|
277
|
+
next unless start_idx && end_idx && end_idx > start_idx
|
|
278
|
+
|
|
279
|
+
begin
|
|
280
|
+
candidate = JSON.parse(line[start_idx..end_idx])
|
|
281
|
+
if candidate.is_a?(Hash) && candidate.key?("ok")
|
|
282
|
+
verdict = candidate
|
|
283
|
+
break
|
|
284
|
+
end
|
|
285
|
+
rescue JSON::ParserError
|
|
286
|
+
next
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
return "subprocess produced no verdict" unless verdict
|
|
199
291
|
|
|
200
|
-
verdict
|
|
201
|
-
|
|
292
|
+
# Strict boolean pin: a forged or malformed verdict like {"ok":"false"}
|
|
293
|
+
# or {"ok":1} is truthy in Ruby and must not read as success. The
|
|
294
|
+
# child only ever emits a real boolean via JSON.dump.
|
|
295
|
+
return nil if verdict["ok"] == true
|
|
202
296
|
|
|
203
|
-
verdict["error"].to_s
|
|
204
|
-
|
|
205
|
-
"subprocess produced unreadable output"
|
|
297
|
+
err = verdict["error"].to_s
|
|
298
|
+
err.empty? ? "subprocess execution failed" : err
|
|
206
299
|
end
|
|
207
300
|
end
|
|
208
301
|
end
|
data/lib/rubik/tools/registry.rb
CHANGED
|
@@ -189,6 +189,31 @@ module Rubik
|
|
|
189
189
|
str = str.scrub("") unless str.valid_encoding?
|
|
190
190
|
prefix ? "#{str}#{notice}" : "#{notice}#{str}"
|
|
191
191
|
end
|
|
192
|
+
|
|
193
|
+
# Canonical short-preview truncation for human/model-readable
|
|
194
|
+
# fragments: keep at most `limit` characters, then append one of the
|
|
195
|
+
# repo's two elision markers. `counted:` selects the spelling —
|
|
196
|
+
# "... [truncated N chars]" (default) or "... [truncated]". These two
|
|
197
|
+
# spellings, plus clip_line below, are the ONLY sanctioned preview
|
|
198
|
+
# markers; inline reimplementations feed downstream string matches
|
|
199
|
+
# that silently miss any other format.
|
|
200
|
+
def self.clip(text, limit, counted: true, separator: "")
|
|
201
|
+
str = text.to_s
|
|
202
|
+
return str if str.length <= limit
|
|
203
|
+
|
|
204
|
+
count = counted ? " #{str.length - limit} chars" : ""
|
|
205
|
+
"#{str[0, limit]}#{separator}... [truncated#{count}]"
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Line-fragment truncation for the search tools (native_search,
|
|
209
|
+
# builtins/grep): the kept window is INCLUSIVE (limit+1 characters)
|
|
210
|
+
# and the marker names the original total — pin both properties.
|
|
211
|
+
def self.clip_line(line, limit)
|
|
212
|
+
str = line.to_s
|
|
213
|
+
return str if str.length <= limit
|
|
214
|
+
|
|
215
|
+
"#{str[0..limit]}... [line truncated, #{str.length} chars total]"
|
|
216
|
+
end
|
|
192
217
|
end
|
|
193
218
|
end
|
|
194
219
|
end
|
|
@@ -229,7 +229,9 @@ module Rubik
|
|
|
229
229
|
def read(uri, ctx:, **_)
|
|
230
230
|
if Rubik::Uris::GOAL_LEDGER.match?(uri)
|
|
231
231
|
ledger = Rubik::Coeffects.get(ctx, Rubik::Coeffects::GOAL_LEDGER)
|
|
232
|
-
|
|
232
|
+
if ledger
|
|
233
|
+
return uri.to_s.downcase.end_with?(".json") ? ledger.to_json : ledger.to_xml
|
|
234
|
+
end
|
|
233
235
|
|
|
234
236
|
return ToolOutput.error("No goal ledger available: no !goal run is active (or goal.ledger.enabled=false). " \
|
|
235
237
|
"The ledger exists only while a goal loop runs; rubik://goal/state may still " \
|
data/lib/rubik/uris.rb
CHANGED
|
@@ -25,7 +25,7 @@ module Rubik
|
|
|
25
25
|
GOAL_STATE = %r{\Arubik://goal(?:/state)?(?:\.xml)?\z}i
|
|
26
26
|
# Yapılandırılmış Σ okuma yüzeyi (goal-ledger planı A): /state regexi
|
|
27
27
|
# /ledger'ı EŞLEMEZ — iki ayrı gramer, tek adapter içinde iç dispatch.
|
|
28
|
-
GOAL_LEDGER = %r{\Arubik://goal/ledger(?:\.xml)?\z}i
|
|
28
|
+
GOAL_LEDGER = %r{\Arubik://goal/ledger(?:\.(?:xml|json))?\z}i
|
|
29
29
|
SUBAGENT_TRANSCRIPT = %r{\Arubik://subagent/([^/]+)/transcript(?:\.jsonl)?(?:#.*)?\z}i
|
|
30
30
|
# Execution-specific retained result (issue #122): capture 1 = unique
|
|
31
31
|
# storage id, capture 2 = run sequence (nil = latest retained run).
|
|
@@ -87,6 +87,10 @@ module Rubik
|
|
|
87
87
|
"#{SCHEME}://#{GOAL}/ledger"
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
+
def goal_ledger_json
|
|
91
|
+
"#{SCHEME}://#{GOAL}/ledger.json"
|
|
92
|
+
end
|
|
93
|
+
|
|
90
94
|
def subagent_transcript(storage_id)
|
|
91
95
|
"#{SCHEME}://#{SUBAGENT}/#{storage_id}/transcript"
|
|
92
96
|
end
|
data/lib/rubik/version.rb
CHANGED
data/lib/rubik.rb
CHANGED
|
@@ -5,6 +5,7 @@ require_relative "rubik/log"
|
|
|
5
5
|
require_relative "rubik/platform"
|
|
6
6
|
require_relative "rubik/concurrency"
|
|
7
7
|
require_relative "rubik/uris"
|
|
8
|
+
require_relative "rubik/events"
|
|
8
9
|
require_relative "rubik/config"
|
|
9
10
|
require_relative "rubik/event_bus"
|
|
10
11
|
require_relative "rubik/repl"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubik
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Özgür Ulukır
|
|
@@ -286,6 +286,7 @@ files:
|
|
|
286
286
|
- lib/rubik/concurrency/process_waiter.rb
|
|
287
287
|
- lib/rubik/concurrency/scheduler.rb
|
|
288
288
|
- lib/rubik/concurrency/timers.rb
|
|
289
|
+
- lib/rubik/concurrency/worker.rb
|
|
289
290
|
- lib/rubik/config.rb
|
|
290
291
|
- lib/rubik/config/deep_ops.rb
|
|
291
292
|
- lib/rubik/config/defaults.rb
|
|
@@ -307,6 +308,7 @@ files:
|
|
|
307
308
|
- lib/rubik/diagnostics/entry.rb
|
|
308
309
|
- lib/rubik/diagnostics/parser.rb
|
|
309
310
|
- lib/rubik/event_bus.rb
|
|
311
|
+
- lib/rubik/events.rb
|
|
310
312
|
- lib/rubik/kernel/dispatcher.rb
|
|
311
313
|
- lib/rubik/kernel/dmesg.rb
|
|
312
314
|
- lib/rubik/kernel/init.rb
|
|
@@ -327,6 +329,7 @@ files:
|
|
|
327
329
|
- lib/rubik/log.rb
|
|
328
330
|
- lib/rubik/lsp.rb
|
|
329
331
|
- lib/rubik/lsp/client.rb
|
|
332
|
+
- lib/rubik/lsp/document_store.rb
|
|
330
333
|
- lib/rubik/lsp/manager.rb
|
|
331
334
|
- lib/rubik/lsp/server_command.rb
|
|
332
335
|
- lib/rubik/mcp.rb
|
|
@@ -343,6 +346,7 @@ files:
|
|
|
343
346
|
- lib/rubik/orchestrator/continuation_manager.rb
|
|
344
347
|
- lib/rubik/orchestrator/finish_message_selector.rb
|
|
345
348
|
- lib/rubik/orchestrator/goal_ledger.rb
|
|
349
|
+
- lib/rubik/orchestrator/goal_ledger/deep_ops.rb
|
|
346
350
|
- lib/rubik/orchestrator/goal_ledger/drift.rb
|
|
347
351
|
- lib/rubik/orchestrator/goal_ledger/ledger.rb
|
|
348
352
|
- lib/rubik/orchestrator/goal_ledger/observation_projection.rb
|
|
@@ -354,6 +358,7 @@ files:
|
|
|
354
358
|
- lib/rubik/orchestrator/goal_ledger/verify_spec.rb
|
|
355
359
|
- lib/rubik/orchestrator/goal_ledger/xml_render.rb
|
|
356
360
|
- lib/rubik/orchestrator/goal_registry.rb
|
|
361
|
+
- lib/rubik/orchestrator/goal_session.rb
|
|
357
362
|
- lib/rubik/orchestrator/goal_state.rb
|
|
358
363
|
- lib/rubik/orchestrator/goal_wait.rb
|
|
359
364
|
- lib/rubik/orchestrator/loop.rb
|
|
@@ -365,6 +370,7 @@ files:
|
|
|
365
370
|
- lib/rubik/orchestrator/step_executor.rb
|
|
366
371
|
- lib/rubik/orchestrator/stream_manager.rb
|
|
367
372
|
- lib/rubik/orchestrator/subagent/activation.rb
|
|
373
|
+
- lib/rubik/orchestrator/subagent/admission_policy.rb
|
|
368
374
|
- lib/rubik/orchestrator/subagent/budget.rb
|
|
369
375
|
- lib/rubik/orchestrator/subagent/builtin_types.rb
|
|
370
376
|
- lib/rubik/orchestrator/subagent/completion.rb
|
|
@@ -484,6 +490,7 @@ files:
|
|
|
484
490
|
- lib/rubik/repl/setup_factories.rb
|
|
485
491
|
- lib/rubik/repl/shell.rb
|
|
486
492
|
- lib/rubik/repl/step_formatter.rb
|
|
493
|
+
- lib/rubik/repl/synthesized_command_context.rb
|
|
487
494
|
- lib/rubik/repl/tee_io.rb
|
|
488
495
|
- lib/rubik/repl/terminal_guard.rb
|
|
489
496
|
- lib/rubik/repl/turn_recorder.rb
|
|
@@ -498,10 +505,14 @@ files:
|
|
|
498
505
|
- lib/rubik/runtime/index_service.rb
|
|
499
506
|
- lib/rubik/runtime/loop_service.rb
|
|
500
507
|
- lib/rubik/runtime/manager.rb
|
|
508
|
+
- lib/rubik/runtime/manifest_store.rb
|
|
501
509
|
- lib/rubik/runtime/overlay_storage.rb
|
|
502
510
|
- lib/rubik/runtime/repair_probe.rb
|
|
511
|
+
- lib/rubik/runtime/sealed_coeffects.rb
|
|
503
512
|
- lib/rubik/runtime/service_definition.rb
|
|
504
513
|
- lib/rubik/runtime/service_registration.rb
|
|
514
|
+
- lib/rubik/runtime/synthesized_command_context.rb
|
|
515
|
+
- lib/rubik/runtime/synthesized_tool_context.rb
|
|
505
516
|
- lib/rubik/runtime/task_manager.rb
|
|
506
517
|
- lib/rubik/sandbox.rb
|
|
507
518
|
- lib/rubik/sandbox/driver.rb
|
|
@@ -513,6 +524,8 @@ files:
|
|
|
513
524
|
- lib/rubik/sandbox/runner.rb
|
|
514
525
|
- lib/rubik/sandbox/shell_resolver.rb
|
|
515
526
|
- lib/rubik/security.rb
|
|
527
|
+
- lib/rubik/security/allowlist.rb
|
|
528
|
+
- lib/rubik/security/audit_log.rb
|
|
516
529
|
- lib/rubik/security/blocked_guidance.rb
|
|
517
530
|
- lib/rubik/security/classifier.rb
|
|
518
531
|
- lib/rubik/security/classifier/classifier.rb
|
|
@@ -522,19 +535,26 @@ files:
|
|
|
522
535
|
- lib/rubik/security/classifier/commands/basename.yaml
|
|
523
536
|
- lib/rubik/security/classifier/commands/bash-classify.yaml
|
|
524
537
|
- lib/rubik/security/classifier/commands/bash.yaml
|
|
538
|
+
- lib/rubik/security/classifier/commands/biome.yaml
|
|
525
539
|
- lib/rubik/security/classifier/commands/black.yaml
|
|
526
540
|
- lib/rubik/security/classifier/commands/brew.yaml
|
|
527
541
|
- lib/rubik/security/classifier/commands/builtin.yaml
|
|
542
|
+
- lib/rubik/security/classifier/commands/bun.yaml
|
|
543
|
+
- lib/rubik/security/classifier/commands/bundle.yaml
|
|
528
544
|
- lib/rubik/security/classifier/commands/cargo.yaml
|
|
529
545
|
- lib/rubik/security/classifier/commands/cat.yaml
|
|
530
546
|
- lib/rubik/security/classifier/commands/chgrp.yaml
|
|
531
547
|
- lib/rubik/security/classifier/commands/chmod.yaml
|
|
532
548
|
- lib/rubik/security/classifier/commands/chown.yaml
|
|
549
|
+
- lib/rubik/security/classifier/commands/clang-format.yaml
|
|
550
|
+
- lib/rubik/security/classifier/commands/clang.yaml
|
|
551
|
+
- lib/rubik/security/classifier/commands/cmake.yaml
|
|
533
552
|
- lib/rubik/security/classifier/commands/column.yaml
|
|
534
553
|
- lib/rubik/security/classifier/commands/comm.yaml
|
|
535
554
|
- lib/rubik/security/classifier/commands/command.yaml
|
|
536
555
|
- lib/rubik/security/classifier/commands/cp.yaml
|
|
537
556
|
- lib/rubik/security/classifier/commands/crystal.yaml
|
|
557
|
+
- lib/rubik/security/classifier/commands/ctest.yaml
|
|
538
558
|
- lib/rubik/security/classifier/commands/curl.yaml
|
|
539
559
|
- lib/rubik/security/classifier/commands/cut.yaml
|
|
540
560
|
- lib/rubik/security/classifier/commands/date.yaml
|
|
@@ -557,12 +577,15 @@ files:
|
|
|
557
577
|
- lib/rubik/security/classifier/commands/fold.yaml
|
|
558
578
|
- lib/rubik/security/classifier/commands/free.yaml
|
|
559
579
|
- lib/rubik/security/classifier/commands/gawk.yaml
|
|
580
|
+
- lib/rubik/security/classifier/commands/gcc.yaml
|
|
560
581
|
- lib/rubik/security/classifier/commands/gcloud.yaml
|
|
582
|
+
- lib/rubik/security/classifier/commands/gem.yaml
|
|
561
583
|
- lib/rubik/security/classifier/commands/gh.yaml
|
|
562
584
|
- lib/rubik/security/classifier/commands/git.yaml
|
|
563
585
|
- lib/rubik/security/classifier/commands/glab-discussion.yaml
|
|
564
586
|
- lib/rubik/security/classifier/commands/glab.yaml
|
|
565
587
|
- lib/rubik/security/classifier/commands/go.yaml
|
|
588
|
+
- lib/rubik/security/classifier/commands/gofmt.yaml
|
|
566
589
|
- lib/rubik/security/classifier/commands/gog.yaml
|
|
567
590
|
- lib/rubik/security/classifier/commands/gradle.yaml
|
|
568
591
|
- lib/rubik/security/classifier/commands/gradlew.yaml
|
|
@@ -625,6 +648,7 @@ files:
|
|
|
625
648
|
- lib/rubik/security/classifier/commands/pytest.yaml
|
|
626
649
|
- lib/rubik/security/classifier/commands/python.yaml
|
|
627
650
|
- lib/rubik/security/classifier/commands/python3.yaml
|
|
651
|
+
- lib/rubik/security/classifier/commands/rake.yaml
|
|
628
652
|
- lib/rubik/security/classifier/commands/read.yaml
|
|
629
653
|
- lib/rubik/security/classifier/commands/readlink.yaml
|
|
630
654
|
- lib/rubik/security/classifier/commands/realpath.yaml
|
|
@@ -632,9 +656,13 @@ files:
|
|
|
632
656
|
- lib/rubik/security/classifier/commands/rev.yaml
|
|
633
657
|
- lib/rubik/security/classifier/commands/rg.yaml
|
|
634
658
|
- lib/rubik/security/classifier/commands/rm.yaml
|
|
659
|
+
- lib/rubik/security/classifier/commands/rspec.yaml
|
|
635
660
|
- lib/rubik/security/classifier/commands/rsync.yaml
|
|
636
661
|
- lib/rubik/security/classifier/commands/rtk.yaml
|
|
662
|
+
- lib/rubik/security/classifier/commands/rubocop.yaml
|
|
663
|
+
- lib/rubik/security/classifier/commands/ruby.yaml
|
|
637
664
|
- lib/rubik/security/classifier/commands/ruff.yaml
|
|
665
|
+
- lib/rubik/security/classifier/commands/rustc.yaml
|
|
638
666
|
- lib/rubik/security/classifier/commands/rustfmt.yaml
|
|
639
667
|
- lib/rubik/security/classifier/commands/scp.yaml
|
|
640
668
|
- lib/rubik/security/classifier/commands/sed.yaml
|
|
@@ -689,6 +717,7 @@ files:
|
|
|
689
717
|
- lib/rubik/security/classifier/commands/yarn.yaml
|
|
690
718
|
- lib/rubik/security/classifier/commands/yes.yaml
|
|
691
719
|
- lib/rubik/security/classifier/commands/yq.yaml
|
|
720
|
+
- lib/rubik/security/classifier/commands/zig.yaml
|
|
692
721
|
- lib/rubik/security/classifier/commands/zip.yaml
|
|
693
722
|
- lib/rubik/security/classifier/commands/zsh.yaml
|
|
694
723
|
- lib/rubik/security/classifier/database.rb
|
|
@@ -702,9 +731,12 @@ files:
|
|
|
702
731
|
- lib/rubik/security/classifier/parsers/bash_extractors.rb
|
|
703
732
|
- lib/rubik/security/classifier/parsers/powershell.rb
|
|
704
733
|
- lib/rubik/security/classifier/pwsh_rules.rb
|
|
734
|
+
- lib/rubik/security/command_gate.rb
|
|
705
735
|
- lib/rubik/security/errors.rb
|
|
706
736
|
- lib/rubik/security/guard.rb
|
|
737
|
+
- lib/rubik/security/path_policy.rb
|
|
707
738
|
- lib/rubik/security/redactor.rb
|
|
739
|
+
- lib/rubik/security/synthesis_gate.rb
|
|
708
740
|
- lib/rubik/session.rb
|
|
709
741
|
- lib/rubik/session/manager.rb
|
|
710
742
|
- lib/rubik/session/recorder.rb
|
|
@@ -719,6 +751,7 @@ files:
|
|
|
719
751
|
- lib/rubik/storage.rb
|
|
720
752
|
- lib/rubik/storage/folding.rb
|
|
721
753
|
- lib/rubik/storage/layout.rb
|
|
754
|
+
- lib/rubik/storage/ranking.rb
|
|
722
755
|
- lib/rubik/storage/render.rb
|
|
723
756
|
- lib/rubik/storage/service.rb
|
|
724
757
|
- lib/rubik/storage/store.rb
|
|
@@ -766,6 +799,7 @@ files:
|
|
|
766
799
|
- lib/rubik/tools/diagnostic_reporter.rb
|
|
767
800
|
- lib/rubik/tools/fuzzy_matcher.rb
|
|
768
801
|
- lib/rubik/tools/index_messages.rb
|
|
802
|
+
- lib/rubik/tools/lifecycle_rollbacks.rb
|
|
769
803
|
- lib/rubik/tools/native_search.rb
|
|
770
804
|
- lib/rubik/tools/output.rb
|
|
771
805
|
- lib/rubik/tools/preflight_runner.rb
|