textus 0.52.0 → 0.53.0
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/CHANGELOG.md +25 -0
- data/README.md +62 -54
- data/SPEC.md +62 -187
- data/docs/architecture/README.md +88 -77
- data/exe/textus +1 -1
- data/lib/textus/action/accept.rb +53 -0
- data/lib/textus/action/audit.rb +133 -0
- data/lib/textus/action/base.rb +42 -0
- data/lib/textus/{read → action}/blame.rb +30 -22
- data/lib/textus/action/boot.rb +26 -0
- data/lib/textus/action/data_mv.rb +71 -0
- data/lib/textus/action/deps.rb +48 -0
- data/lib/textus/action/doctor.rb +26 -0
- data/lib/textus/action/drain.rb +41 -0
- data/lib/textus/action/enqueue.rb +55 -0
- data/lib/textus/action/get.rb +80 -0
- data/lib/textus/action/jobs.rb +38 -0
- data/lib/textus/action/key_delete.rb +46 -0
- data/lib/textus/action/key_delete_prefix.rb +46 -0
- data/lib/textus/action/key_mv.rb +143 -0
- data/lib/textus/action/key_mv_prefix.rb +59 -0
- data/lib/textus/action/list.rb +44 -0
- data/lib/textus/action/propose.rb +54 -0
- data/lib/textus/action/published.rb +26 -0
- data/lib/textus/action/pulse/scanner.rb +118 -0
- data/lib/textus/action/pulse.rb +87 -0
- data/lib/textus/action/put.rb +63 -0
- data/lib/textus/action/rdeps.rb +49 -0
- data/lib/textus/action/reject.rb +49 -0
- data/lib/textus/action/rule_explain.rb +95 -0
- data/lib/textus/action/rule_lint.rb +70 -0
- data/lib/textus/action/rule_list.rb +46 -0
- data/lib/textus/action/schema_envelope.rb +31 -0
- data/lib/textus/action/uid.rb +35 -0
- data/lib/textus/action/where.rb +38 -0
- data/lib/textus/action/write_verb.rb +58 -0
- data/lib/textus/background/job/base.rb +27 -0
- data/lib/textus/background/job/materialize.rb +31 -0
- data/lib/textus/background/job/refresh.rb +22 -0
- data/lib/textus/background/job/sweep.rb +31 -0
- data/lib/textus/background/job.rb +19 -0
- data/lib/textus/background/plan.rb +9 -0
- data/lib/textus/background/planner/plan.rb +113 -0
- data/lib/textus/{maintenance → background}/retention/apply.rb +7 -9
- data/lib/textus/background/worker.rb +67 -0
- data/lib/textus/boot.rb +53 -45
- data/lib/textus/command.rb +36 -0
- data/lib/textus/container.rb +1 -1
- data/lib/textus/{domain → core}/duration.rb +1 -1
- data/lib/textus/{domain → core}/freshness/evaluator.rb +11 -11
- data/lib/textus/{domain → core}/freshness/verdict.rb +2 -2
- data/lib/textus/{domain → core}/freshness.rb +2 -2
- data/lib/textus/{domain → core}/retention/sweep.rb +7 -7
- data/lib/textus/{domain → core}/retention.rb +2 -2
- data/lib/textus/{domain → core}/sentinel.rb +1 -1
- data/lib/textus/doctor/check/generator_drift.rb +1 -1
- data/lib/textus/doctor/check/handler_permit.rb +34 -0
- data/lib/textus/doctor/check/hooks.rb +11 -18
- data/lib/textus/doctor/check/illegal_keys.rb +1 -1
- data/lib/textus/doctor/check/intake_registration.rb +5 -5
- data/lib/textus/doctor/check/proposal_targets.rb +3 -3
- data/lib/textus/doctor/check/rule_ambiguity.rb +2 -2
- data/lib/textus/doctor/check/schema_violations.rb +8 -2
- data/lib/textus/doctor/check.rb +12 -9
- data/lib/textus/{read → doctor}/validator.rb +22 -13
- data/lib/textus/doctor.rb +6 -6
- data/lib/textus/envelope/io/writer.rb +65 -36
- data/lib/textus/envelope.rb +5 -3
- data/lib/textus/errors.rb +17 -9
- data/lib/textus/events.rb +21 -0
- data/lib/textus/gate/auth.rb +181 -0
- data/lib/textus/gate.rb +114 -0
- data/lib/textus/init/templates/machine_intake.rb +39 -35
- data/lib/textus/init/templates/orientation_reducer.rb +15 -11
- data/lib/textus/init.rb +90 -73
- data/lib/textus/key/path.rb +9 -2
- data/lib/textus/layout.rb +13 -0
- data/lib/textus/manifest/data.rb +14 -14
- data/lib/textus/manifest/entry/base.rb +15 -11
- data/lib/textus/manifest/entry/parser.rb +6 -6
- data/lib/textus/manifest/entry/produced.rb +3 -2
- data/lib/textus/manifest/entry/publish/mode.rb +1 -1
- data/lib/textus/manifest/entry/publish/to_paths.rb +2 -1
- data/lib/textus/manifest/entry/validators/events.rb +1 -1
- data/lib/textus/{domain/policy/handler_allowlist.rb → manifest/policy/handler_permit.rb} +4 -4
- data/lib/textus/{domain → manifest}/policy/matcher.rb +2 -2
- data/lib/textus/{domain → manifest}/policy/publish_target.rb +2 -2
- data/lib/textus/manifest/policy/react.rb +30 -0
- data/lib/textus/{domain → manifest}/policy/retention.rb +3 -3
- data/lib/textus/{domain → manifest}/policy/source.rb +24 -19
- data/lib/textus/manifest/policy.rb +36 -48
- data/lib/textus/manifest/resolver.rb +3 -2
- data/lib/textus/manifest/rules.rb +4 -4
- data/lib/textus/manifest/schema/keys.rb +17 -11
- data/lib/textus/manifest/schema/validator.rb +24 -22
- data/lib/textus/manifest/schema/vocabulary.rb +1 -1
- data/lib/textus/manifest/schema.rb +2 -2
- data/lib/textus/manifest.rb +2 -2
- data/lib/textus/{produce → pipeline}/acquire/handler.rb +2 -2
- data/lib/textus/{produce → pipeline}/acquire/intake.rb +22 -20
- data/lib/textus/{produce → pipeline}/acquire/projection.rb +13 -11
- data/lib/textus/{produce → pipeline}/acquire/serializer/json.rb +2 -2
- data/lib/textus/{produce → pipeline}/acquire/serializer/text.rb +1 -1
- data/lib/textus/{produce → pipeline}/acquire/serializer/yaml.rb +2 -2
- data/lib/textus/{produce → pipeline}/acquire/serializer.rb +1 -1
- data/lib/textus/{produce → pipeline}/engine.rb +7 -5
- data/lib/textus/{produce → pipeline}/render.rb +3 -1
- data/lib/textus/ports/audit_log.rb +31 -5
- data/lib/textus/ports/audit_subscriber.rb +4 -4
- data/lib/textus/{domain/jobs → ports/queue}/job.rb +19 -12
- data/lib/textus/ports/queue.rb +1 -1
- data/lib/textus/ports/sentinel_store.rb +2 -2
- data/lib/textus/ports/watcher_lock.rb +48 -0
- data/lib/textus/projection.rb +8 -8
- data/lib/textus/schema/tools.rb +4 -3
- data/lib/textus/session.rb +6 -3
- data/lib/textus/step/base.rb +35 -0
- data/lib/textus/step/builtin/csv_fetch.rb +19 -0
- data/lib/textus/step/builtin/ical_events_fetch.rb +30 -0
- data/lib/textus/step/builtin/json_fetch.rb +18 -0
- data/lib/textus/step/builtin/markdown_links_fetch.rb +20 -0
- data/lib/textus/step/builtin/rss_fetch.rb +26 -0
- data/lib/textus/step/builtin.rb +22 -0
- data/lib/textus/{hooks → step}/catalog.rb +3 -3
- data/lib/textus/{hooks → step}/context.rb +15 -13
- data/lib/textus/step/discovery.rb +24 -0
- data/lib/textus/{hooks → step}/error_log.rb +1 -1
- data/lib/textus/{hooks → step}/event_bus.rb +15 -16
- data/lib/textus/step/fetch.rb +13 -0
- data/lib/textus/{hooks → step}/fire_report.rb +1 -1
- data/lib/textus/step/loader.rb +108 -0
- data/lib/textus/step/observe.rb +31 -0
- data/lib/textus/step/registry_store.rb +66 -0
- data/lib/textus/{hooks → step}/signature.rb +1 -1
- data/lib/textus/step/transform.rb +12 -0
- data/lib/textus/step/validate.rb +11 -0
- data/lib/textus/step.rb +10 -0
- data/lib/textus/store.rb +17 -15
- data/lib/textus/surfaces/cli/group/data.rb +11 -0
- data/lib/textus/surfaces/cli/group/key.rb +11 -0
- data/lib/textus/surfaces/cli/group/mcp.rb +11 -0
- data/lib/textus/surfaces/cli/group/rule.rb +11 -0
- data/lib/textus/surfaces/cli/group/schema.rb +11 -0
- data/lib/textus/surfaces/cli/group.rb +50 -0
- data/lib/textus/surfaces/cli/runner.rb +236 -0
- data/lib/textus/surfaces/cli/verb/doctor.rb +21 -0
- data/lib/textus/surfaces/cli/verb/get.rb +21 -0
- data/lib/textus/surfaces/cli/verb/init.rb +20 -0
- data/lib/textus/surfaces/cli/verb/mcp_serve.rb +24 -0
- data/lib/textus/surfaces/cli/verb/put.rb +30 -0
- data/lib/textus/surfaces/cli/verb/schema_diff.rb +17 -0
- data/lib/textus/surfaces/cli/verb/schema_init.rb +21 -0
- data/lib/textus/surfaces/cli/verb/schema_migrate.rb +21 -0
- data/lib/textus/surfaces/cli/verb/watch.rb +19 -0
- data/lib/textus/surfaces/cli/verb.rb +111 -0
- data/lib/textus/surfaces/cli.rb +148 -0
- data/lib/textus/surfaces/mcp/catalog.rb +99 -0
- data/lib/textus/surfaces/mcp/errors.rb +34 -0
- data/lib/textus/surfaces/mcp/server.rb +145 -0
- data/lib/textus/surfaces/mcp/session.rb +9 -0
- data/lib/textus/surfaces/mcp/tool_schemas.rb +17 -0
- data/lib/textus/surfaces/mcp.rb +8 -0
- data/lib/textus/surfaces/role_scope.rb +38 -0
- data/lib/textus/surfaces/watcher.rb +38 -0
- data/lib/textus/version.rb +1 -1
- data/lib/textus.rb +64 -22
- metadata +132 -118
- data/lib/textus/cli/group/hook.rb +0 -9
- data/lib/textus/cli/group/key.rb +0 -9
- data/lib/textus/cli/group/mcp.rb +0 -9
- data/lib/textus/cli/group/rule.rb +0 -9
- data/lib/textus/cli/group/schema.rb +0 -9
- data/lib/textus/cli/group/zone.rb +0 -9
- data/lib/textus/cli/group.rb +0 -48
- data/lib/textus/cli/runner.rb +0 -193
- data/lib/textus/cli/verb/doctor.rb +0 -17
- data/lib/textus/cli/verb/get.rb +0 -18
- data/lib/textus/cli/verb/hook_run.rb +0 -48
- data/lib/textus/cli/verb/hooks.rb +0 -50
- data/lib/textus/cli/verb/init.rb +0 -18
- data/lib/textus/cli/verb/mcp_serve.rb +0 -22
- data/lib/textus/cli/verb/put.rb +0 -30
- data/lib/textus/cli/verb/schema_diff.rb +0 -15
- data/lib/textus/cli/verb/schema_init.rb +0 -19
- data/lib/textus/cli/verb/schema_migrate.rb +0 -19
- data/lib/textus/cli/verb/serve.rb +0 -19
- data/lib/textus/cli/verb.rb +0 -116
- data/lib/textus/cli.rb +0 -138
- data/lib/textus/dispatcher.rb +0 -54
- data/lib/textus/doctor/check/handler_allowlist.rb +0 -34
- data/lib/textus/domain/action.rb +0 -9
- data/lib/textus/domain/jobs/registry.rb +0 -37
- data/lib/textus/domain/permission.rb +0 -7
- data/lib/textus/domain/policy/base_guards.rb +0 -25
- data/lib/textus/domain/policy/evaluation.rb +0 -15
- data/lib/textus/domain/policy/guard.rb +0 -35
- data/lib/textus/domain/policy/guard_factory.rb +0 -40
- data/lib/textus/domain/policy/predicates/author_held.rb +0 -33
- data/lib/textus/domain/policy/predicates/etag_match.rb +0 -32
- data/lib/textus/domain/policy/predicates/fresh_within.rb +0 -59
- data/lib/textus/domain/policy/predicates/registry.rb +0 -39
- data/lib/textus/domain/policy/predicates/schema_valid.rb +0 -61
- data/lib/textus/domain/policy/predicates/target_is_canon.rb +0 -33
- data/lib/textus/domain/policy/predicates/zone_writable_by.rb +0 -39
- data/lib/textus/hooks/builtin.rb +0 -70
- data/lib/textus/hooks/loader.rb +0 -54
- data/lib/textus/hooks/rpc_registry.rb +0 -43
- data/lib/textus/jobs/handlers.rb +0 -62
- data/lib/textus/jobs/scheduler.rb +0 -36
- data/lib/textus/jobs/seeder.rb +0 -57
- data/lib/textus/maintenance/drain.rb +0 -42
- data/lib/textus/maintenance/key_delete_prefix.rb +0 -48
- data/lib/textus/maintenance/key_mv_prefix.rb +0 -68
- data/lib/textus/maintenance/rule_lint.rb +0 -66
- data/lib/textus/maintenance/serve.rb +0 -30
- data/lib/textus/maintenance/worker.rb +0 -74
- data/lib/textus/maintenance/zone_mv.rb +0 -64
- data/lib/textus/maintenance.rb +0 -15
- data/lib/textus/mcp/catalog.rb +0 -70
- data/lib/textus/mcp/errors.rb +0 -32
- data/lib/textus/mcp/server.rb +0 -138
- data/lib/textus/mcp/session.rb +0 -7
- data/lib/textus/mcp/tool_schemas.rb +0 -15
- data/lib/textus/mcp.rb +0 -6
- data/lib/textus/mustache.rb +0 -117
- data/lib/textus/ports/produce_on_write_subscriber.rb +0 -73
- data/lib/textus/produce/events.rb +0 -36
- data/lib/textus/read/audit.rb +0 -130
- data/lib/textus/read/boot.rb +0 -26
- data/lib/textus/read/capabilities.rb +0 -70
- data/lib/textus/read/deps.rb +0 -38
- data/lib/textus/read/doctor.rb +0 -27
- data/lib/textus/read/freshness.rb +0 -152
- data/lib/textus/read/get.rb +0 -73
- data/lib/textus/read/jobs.rb +0 -31
- data/lib/textus/read/list.rb +0 -24
- data/lib/textus/read/published.rb +0 -22
- data/lib/textus/read/pulse.rb +0 -98
- data/lib/textus/read/rdeps.rb +0 -39
- data/lib/textus/read/rule_explain.rb +0 -96
- data/lib/textus/read/rule_list.rb +0 -54
- data/lib/textus/read/schema_envelope.rb +0 -25
- data/lib/textus/read/uid.rb +0 -29
- data/lib/textus/read/validate_all.rb +0 -36
- data/lib/textus/read/where.rb +0 -24
- data/lib/textus/role_scope.rb +0 -78
- data/lib/textus/write/accept.rb +0 -58
- data/lib/textus/write/enqueue.rb +0 -50
- data/lib/textus/write/key_delete.rb +0 -65
- data/lib/textus/write/key_mv.rb +0 -141
- data/lib/textus/write/propose.rb +0 -54
- data/lib/textus/write/put.rb +0 -74
- data/lib/textus/write/reject.rb +0 -68
data/lib/textus/cli.rb
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
require "optparse"
|
|
3
|
-
|
|
4
|
-
module Textus
|
|
5
|
-
class CLI
|
|
6
|
-
# Auto-derived verb table. Every CLI::Verb (or Group) subclass that
|
|
7
|
-
# declares `command_name "X"` and has no `parent_group` is a top-level
|
|
8
|
-
# verb. Sorted alphabetically for stable help output. Adding a new
|
|
9
|
-
# verb requires only a new file declaring its `command_name`.
|
|
10
|
-
#
|
|
11
|
-
# `k.name` gates out anonymous (Class.new) subclasses: real verbs are always
|
|
12
|
-
# named constants (generated Gen* or hand-authored classes), so this is a
|
|
13
|
-
# no-op in production but keeps throwaway test fixtures from leaking into the
|
|
14
|
-
# registry (and tripping the reconciliation guards order-dependently).
|
|
15
|
-
def self.verbs
|
|
16
|
-
Runner.install!
|
|
17
|
-
Verb.descendants
|
|
18
|
-
.select { |k| k.name && k.command_name && k.parent_group.nil? }
|
|
19
|
-
.sort_by(&:command_name)
|
|
20
|
-
.to_h { |k| [k.command_name, k] }
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def self.run(argv, stdin: $stdin, stdout: $stdout, stderr: $stderr, cwd: Dir.pwd)
|
|
24
|
-
new(stdin: stdin, stdout: stdout, stderr: stderr, cwd: cwd).run(argv)
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def initialize(stdin:, stdout:, stderr:, cwd:)
|
|
28
|
-
@stdin = stdin
|
|
29
|
-
@stdout = stdout
|
|
30
|
-
@stderr = stderr
|
|
31
|
-
@cwd = cwd
|
|
32
|
-
@root_arg = nil
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def run(argv)
|
|
36
|
-
# `--root` is a global, position-agnostic option: pull it out of argv
|
|
37
|
-
# wherever it appears so it works uniformly before OR after any verb or
|
|
38
|
-
# group (e.g. both `textus --root=X hook list` and
|
|
39
|
-
# `textus hook list --root=X`). Without this, `order!` below only sees
|
|
40
|
-
# options before the first verb token, so a trailing `--root` reached the
|
|
41
|
-
# verb's own parser and raised InvalidOption (#161 F5). TEXTUS_ROOT already
|
|
42
|
-
# works everywhere via Store.discover, so this brings the flag to parity.
|
|
43
|
-
@root_arg = extract_root!(argv)
|
|
44
|
-
|
|
45
|
-
# Define --version/--help ourselves so OptionParser doesn't intercept them
|
|
46
|
-
# with its built-in handlers (which print "version unknown" and a bare usage
|
|
47
|
-
# line, then exit before we ever reach the verb dispatch below).
|
|
48
|
-
show_version = false
|
|
49
|
-
show_help = false
|
|
50
|
-
OptionParser.new do |o|
|
|
51
|
-
o.on("--version", "-v") { show_version = true }
|
|
52
|
-
o.on("--help", "-h") { show_help = true }
|
|
53
|
-
end.order!(argv)
|
|
54
|
-
|
|
55
|
-
return @stdout.puts(VERSION) || 0 if show_version
|
|
56
|
-
return print_help || 0 if show_help
|
|
57
|
-
|
|
58
|
-
verb = argv.shift
|
|
59
|
-
raise UsageError.new("missing verb") if verb.nil?
|
|
60
|
-
|
|
61
|
-
klass = self.class.verbs[verb] or raise UsageError.new("unknown verb: #{verb}")
|
|
62
|
-
coerce_exit_code(dispatch(klass, argv))
|
|
63
|
-
rescue Textus::Error => e
|
|
64
|
-
emit_error(e)
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
private
|
|
68
|
-
|
|
69
|
-
# Remove the first `--root=PATH` or `--root PATH` token from argv (anywhere)
|
|
70
|
-
# and return its value, or nil if absent. Mutates argv in place.
|
|
71
|
-
def extract_root!(argv)
|
|
72
|
-
i = argv.index { |a| a == "--root" || a.start_with?("--root=") }
|
|
73
|
-
return nil unless i
|
|
74
|
-
|
|
75
|
-
tok = argv[i]
|
|
76
|
-
if tok.start_with?("--root=")
|
|
77
|
-
argv.delete_at(i)
|
|
78
|
-
tok.delete_prefix("--root=")
|
|
79
|
-
else
|
|
80
|
-
val = argv[i + 1]
|
|
81
|
-
raise UsageError.new("--root requires a PATH") if val.nil? || val.start_with?("-")
|
|
82
|
-
|
|
83
|
-
argv.delete_at(i + 1)
|
|
84
|
-
argv.delete_at(i)
|
|
85
|
-
val
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
def coerce_exit_code(value)
|
|
90
|
-
case value
|
|
91
|
-
when Integer then value
|
|
92
|
-
when true, nil then 0
|
|
93
|
-
when false then 1
|
|
94
|
-
else
|
|
95
|
-
@stderr.puts("warning: verb returned non-Integer #{value.class}; treating as 0")
|
|
96
|
-
0
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
def store
|
|
101
|
-
@store ||= Store.discover(@cwd, root: @root_arg)
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
def dispatch(klass, argv)
|
|
105
|
-
v = klass.new(stdin: @stdin, stdout: @stdout, stderr: @stderr, cwd: @cwd)
|
|
106
|
-
v.parse(argv)
|
|
107
|
-
v.call(klass.needs_store? ? store : nil)
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
def emit_error(err)
|
|
111
|
-
@stdout.puts(JSON.generate(err.to_envelope))
|
|
112
|
-
@stderr.puts("#{err.code}: #{err.message}")
|
|
113
|
-
@stderr.puts(" → #{err.hint}") if err.hint
|
|
114
|
-
err.exit_code
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
def print_help
|
|
118
|
-
@stdout.puts <<~HELP
|
|
119
|
-
textus #{VERSION} — reference implementation of #{PROTOCOL}
|
|
120
|
-
|
|
121
|
-
Usage (json output is the default):
|
|
122
|
-
textus list [--prefix=KEY] [--zone=Z]
|
|
123
|
-
textus where KEY
|
|
124
|
-
textus get KEY
|
|
125
|
-
textus put KEY --stdin --as=ROLE
|
|
126
|
-
textus audit [--key=K] [--zone=Z] [--role=R] [--verb=V] [--since=X] [--correlation-id=ID] [--limit=N]
|
|
127
|
-
textus blame KEY [--limit=N]
|
|
128
|
-
textus doctor
|
|
129
|
-
textus boot
|
|
130
|
-
|
|
131
|
-
textus key {delete,mv,uid}
|
|
132
|
-
textus rule {explain,lint,list}
|
|
133
|
-
textus schema {diff,init,migrate,show}
|
|
134
|
-
textus hook {list,run}
|
|
135
|
-
HELP
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
end
|
data/lib/textus/dispatcher.rb
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
module Textus
|
|
2
|
-
# Static verb → use-case map. Canonical lookup as of 0.27.0; replaces the
|
|
3
|
-
# Application::UseCase registry whose entries were populated by file-load
|
|
4
|
-
# side effects in 0.26.x.
|
|
5
|
-
module Dispatcher
|
|
6
|
-
VERBS = {
|
|
7
|
-
# Write
|
|
8
|
-
put: Textus::Write::Put,
|
|
9
|
-
propose: Textus::Write::Propose,
|
|
10
|
-
key_delete: Textus::Write::KeyDelete,
|
|
11
|
-
key_mv: Textus::Write::KeyMv,
|
|
12
|
-
accept: Textus::Write::Accept,
|
|
13
|
-
reject: Textus::Write::Reject,
|
|
14
|
-
enqueue: Textus::Write::Enqueue,
|
|
15
|
-
# Read
|
|
16
|
-
get: Textus::Read::Get,
|
|
17
|
-
list: Textus::Read::List,
|
|
18
|
-
where: Textus::Read::Where,
|
|
19
|
-
uid: Textus::Read::Uid,
|
|
20
|
-
blame: Textus::Read::Blame,
|
|
21
|
-
audit: Textus::Read::Audit,
|
|
22
|
-
freshness: Textus::Read::Freshness,
|
|
23
|
-
deps: Textus::Read::Deps,
|
|
24
|
-
rdeps: Textus::Read::Rdeps,
|
|
25
|
-
pulse: Textus::Read::Pulse,
|
|
26
|
-
rule_explain: Textus::Read::RuleExplain,
|
|
27
|
-
rule_list: Textus::Read::RuleList,
|
|
28
|
-
published: Textus::Read::Published,
|
|
29
|
-
schema_show: Textus::Read::SchemaEnvelope,
|
|
30
|
-
validate_all: Textus::Read::ValidateAll,
|
|
31
|
-
doctor: Textus::Read::Doctor,
|
|
32
|
-
boot: Textus::Read::Boot,
|
|
33
|
-
capabilities: Textus::Read::Capabilities,
|
|
34
|
-
jobs: Textus::Read::Jobs,
|
|
35
|
-
|
|
36
|
-
# Maintenance
|
|
37
|
-
zone_mv: Textus::Maintenance::ZoneMv,
|
|
38
|
-
key_mv_prefix: Textus::Maintenance::KeyMvPrefix,
|
|
39
|
-
key_delete_prefix: Textus::Maintenance::KeyDeletePrefix,
|
|
40
|
-
drain: Textus::Maintenance::Drain,
|
|
41
|
-
rule_lint: Textus::Maintenance::RuleLint,
|
|
42
|
-
}.freeze
|
|
43
|
-
|
|
44
|
-
def self.fetch(verb)
|
|
45
|
-
VERBS.fetch(verb.to_sym) { raise UsageError.new("unknown verb: #{verb.inspect}") }
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# Single home for the uniform use-case invocation protocol (ADR 0023):
|
|
49
|
-
# look up the verb, construct on (container:, call:), and invoke #call.
|
|
50
|
-
def self.invoke(verb, container:, call:, args: [], kwargs: {})
|
|
51
|
-
fetch(verb).new(container: container, call: call).call(*args, **kwargs)
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module Textus
|
|
2
|
-
module Doctor
|
|
3
|
-
class Check
|
|
4
|
-
# For every entry with an `intake.handler`, look up its handler_allowlist
|
|
5
|
-
# policy (if any) and verify the declared handler is allowed. Emits a
|
|
6
|
-
# failure when the handler is rejected by policy.
|
|
7
|
-
class HandlerAllowlist < Check
|
|
8
|
-
def call
|
|
9
|
-
out = []
|
|
10
|
-
manifest.data.entries.each do |mentry|
|
|
11
|
-
next unless mentry.intake?
|
|
12
|
-
|
|
13
|
-
handler = mentry.handler
|
|
14
|
-
|
|
15
|
-
allow = manifest.rules.for(mentry.key).handler_allowlist
|
|
16
|
-
next if allow.nil?
|
|
17
|
-
next if allow.allows?(handler)
|
|
18
|
-
|
|
19
|
-
out << {
|
|
20
|
-
"code" => "policy.handler_not_allowed",
|
|
21
|
-
"level" => "error",
|
|
22
|
-
"subject" => mentry.key,
|
|
23
|
-
"message" => "entry '#{mentry.key}' declares intake.handler='#{handler}' but the " \
|
|
24
|
-
"handler_allowlist policy permits only: #{allow.handlers.join(", ")}",
|
|
25
|
-
"fix" => "either change intake.handler to one of [#{allow.handlers.join(", ")}], " \
|
|
26
|
-
"or extend the handler_allowlist policy in .textus/manifest.yaml",
|
|
27
|
-
}
|
|
28
|
-
end
|
|
29
|
-
out
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
data/lib/textus/domain/action.rb
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
module Textus
|
|
2
|
-
module Domain
|
|
3
|
-
module Jobs
|
|
4
|
-
# Closed allow-list of runnable job types. The general `enqueue` surface
|
|
5
|
-
# (a later phase) can only push types registered here — that is the safety
|
|
6
|
-
# boundary that stops the "general runner" from running arbitrary code.
|
|
7
|
-
class Registry
|
|
8
|
-
Entry = Struct.new(:handler, :max_attempts, :required_role, keyword_init: true)
|
|
9
|
-
|
|
10
|
-
def initialize
|
|
11
|
-
@entries = {}
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# required_role: a role the caller must hold to enqueue this type via the
|
|
15
|
-
# general `enqueue` surface (nil = any caller). The closed allow-list is
|
|
16
|
-
# the primary safety boundary; this is defence-in-depth for destructive
|
|
17
|
-
# types.
|
|
18
|
-
def register(type, handler:, max_attempts: 3, required_role: nil)
|
|
19
|
-
@entries[type.to_s] = Entry.new(handler: handler, max_attempts: max_attempts, required_role: required_role)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def registered?(type)
|
|
23
|
-
@entries.key?(type.to_s)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def lookup(type)
|
|
27
|
-
@entries.fetch(type.to_s) do
|
|
28
|
-
raise Textus::UsageError.new(
|
|
29
|
-
"unregistered job type '#{type}'",
|
|
30
|
-
hint: "register the type in Domain::Jobs::Registry before enqueueing it",
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
# The CLOSED floor (ADR 0031 §4): predicate names every transition
|
|
7
|
-
# evaluates regardless of rules:. rules[].guard only ADDS to these.
|
|
8
|
-
module BaseGuards
|
|
9
|
-
# The minimal floor — only what the verb is meaningless without.
|
|
10
|
-
# schema_valid / etag_match / fresh_within are NOT here: they are
|
|
11
|
-
# composable-only, added per-key via rules[].guard (ADR 0031).
|
|
12
|
-
BASE = {
|
|
13
|
-
put: %w[zone_writable_by],
|
|
14
|
-
key_delete: %w[zone_writable_by],
|
|
15
|
-
key_mv: %w[zone_writable_by],
|
|
16
|
-
accept: %w[author_held target_is_canon],
|
|
17
|
-
reject: %w[author_held],
|
|
18
|
-
converge: %w[zone_writable_by],
|
|
19
|
-
}.freeze
|
|
20
|
-
|
|
21
|
-
def self.for(transition) = BASE.fetch(transition, [])
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
# Immutable context handed to every predicate. `manifest` is the
|
|
7
|
-
# manifest (pure, no I/O); `envelope` is the entry under evaluation
|
|
8
|
-
# (nil when no bytes exist yet, e.g. a fresh put). `origin`/`target`
|
|
9
|
-
# are dotted keys; `transition` is the verb symbol.
|
|
10
|
-
Evaluation = Data.define(
|
|
11
|
-
:actor, :transition, :origin, :target, :envelope, :manifest
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
# An ordered list of pure predicates over one Evaluation (ADR 0031).
|
|
7
|
-
# check! short-circuits on the first failing predicate that defines a
|
|
8
|
-
# bespoke #error (only zone_writable_by → WriteForbidden, the product's
|
|
9
|
-
# legible topology refusal); every other failure accumulates into
|
|
10
|
-
# GuardFailed naming the unmet predicate(s).
|
|
11
|
-
class Guard
|
|
12
|
-
attr_reader :predicates
|
|
13
|
-
|
|
14
|
-
def initialize(predicates)
|
|
15
|
-
@predicates = predicates
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def check!(eval)
|
|
19
|
-
accumulated = []
|
|
20
|
-
@predicates.each do |pred|
|
|
21
|
-
next if pred.call(eval)
|
|
22
|
-
raise pred.error(eval) if pred.respond_to?(:error)
|
|
23
|
-
|
|
24
|
-
accumulated << [pred.name, pred.reason]
|
|
25
|
-
end
|
|
26
|
-
raise Textus::GuardFailed.new(accumulated) unless accumulated.empty?
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
def explain(eval)
|
|
30
|
-
@predicates.map { |p| [p.name, p.call(eval), p.reason] }
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
# Builds the effective Guard for (transition, key): base floor ++
|
|
7
|
-
# the predicates declared under rules[].guard[transition]. The single
|
|
8
|
-
# place the closed floor and the open ceiling are composed.
|
|
9
|
-
class GuardFactory
|
|
10
|
-
def initialize(manifest:, schemas:, extra: {})
|
|
11
|
-
@manifest = manifest
|
|
12
|
-
@schemas = schemas
|
|
13
|
-
@extra = extra # transient per-call params, e.g. { if_etag: "..." }
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def for(transition, key)
|
|
17
|
-
specs = BaseGuards.for(transition) + composed(transition, key)
|
|
18
|
-
predicates = specs.map { |spec| build(spec) }.uniq(&:name)
|
|
19
|
-
Guard.new(predicates)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
private
|
|
23
|
-
|
|
24
|
-
def composed(transition, key)
|
|
25
|
-
guard_map = @manifest.rules.for(key).guard
|
|
26
|
-
return [] if guard_map.nil?
|
|
27
|
-
|
|
28
|
-
Array(guard_map[transition.to_s])
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
def build(spec)
|
|
32
|
-
# etag_match takes a per-call param rather than a manifest one.
|
|
33
|
-
return Predicates::EtagMatch.new(if_etag: @extra[:if_etag]) if spec == "etag_match"
|
|
34
|
-
|
|
35
|
-
Predicates::Registry.build(spec, schemas: @schemas)
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
module Predicates
|
|
7
|
-
# Predicate: the acting role must hold the 'author' capability in the
|
|
8
|
-
# active manifest (ADR 0030 capability roles). Folds in the old
|
|
9
|
-
# Write::AuthorityGate so accept/reject and rules[].guard share one
|
|
10
|
-
# implementation. No bespoke #error — failures accumulate into
|
|
11
|
-
# GuardFailed (ADR 0031).
|
|
12
|
-
class AuthorHeld
|
|
13
|
-
attr_reader :reason
|
|
14
|
-
|
|
15
|
-
def name = "author_held"
|
|
16
|
-
|
|
17
|
-
def call(eval)
|
|
18
|
-
holders = eval.manifest.policy.roles_with_capability("author")
|
|
19
|
-
return true if holders.include?(eval.actor.to_s)
|
|
20
|
-
|
|
21
|
-
@reason =
|
|
22
|
-
if holders.empty?
|
|
23
|
-
"no role holds the 'author' capability; #{eval.transition} is disabled"
|
|
24
|
-
else
|
|
25
|
-
"role '#{eval.actor}' lacks the 'author' capability (held by: #{holders.join(", ")})"
|
|
26
|
-
end
|
|
27
|
-
false
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
module Predicates
|
|
7
|
-
# Advisory pre-flight etag check for policy explain. The
|
|
8
|
-
# authoritative compare-and-write stays in Envelope::IO::Writer
|
|
9
|
-
# (atomic write-then-audit, ADR 0017). Passes when no if_etag is
|
|
10
|
-
# supplied (params[:if_etag] nil) — guard does not require it.
|
|
11
|
-
class EtagMatch
|
|
12
|
-
attr_reader :reason
|
|
13
|
-
|
|
14
|
-
def initialize(if_etag: nil)
|
|
15
|
-
@if_etag = if_etag
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def name = "etag_match"
|
|
19
|
-
|
|
20
|
-
def call(eval)
|
|
21
|
-
return true if @if_etag.nil?
|
|
22
|
-
return true if eval.envelope.nil? # creating; Writer handles race
|
|
23
|
-
return true if eval.envelope.etag == @if_etag
|
|
24
|
-
|
|
25
|
-
@reason = "etag mismatch: wanted #{@if_etag}, have #{eval.envelope.etag}"
|
|
26
|
-
false
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "time"
|
|
4
|
-
|
|
5
|
-
module Textus
|
|
6
|
-
module Domain
|
|
7
|
-
module Policy
|
|
8
|
-
module Predicates
|
|
9
|
-
# Parameterized predicate: the entry must have been written within
|
|
10
|
-
# `duration` of now. Duration strings ("1h", "30m", "7d") parse via
|
|
11
|
-
# Domain::Duration.seconds. Passes when no envelope exists yet.
|
|
12
|
-
class FreshWithin
|
|
13
|
-
attr_reader :reason
|
|
14
|
-
|
|
15
|
-
def initialize(duration:, now: nil)
|
|
16
|
-
@seconds = Textus::Domain::Duration.seconds(duration)
|
|
17
|
-
@now = now
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def name = "fresh_within"
|
|
21
|
-
|
|
22
|
-
def call(eval)
|
|
23
|
-
return true if eval.envelope.nil? || @seconds.nil?
|
|
24
|
-
|
|
25
|
-
written = written_at(eval.envelope)
|
|
26
|
-
return true if written.nil?
|
|
27
|
-
|
|
28
|
-
now = @now || Textus::Ports::Clock.new.now
|
|
29
|
-
return true if now - written <= @seconds
|
|
30
|
-
|
|
31
|
-
@reason = "entry older than #{@seconds}s (written #{written.iso8601})"
|
|
32
|
-
false
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
private
|
|
36
|
-
|
|
37
|
-
# Domain-pure: reads the stored write timestamp from the envelope's
|
|
38
|
-
# freshness (checked_at) or meta (last_fetched_at) and parses the
|
|
39
|
-
# stored ISO-8601 string. Parsing a stored string is not I/O (allowed
|
|
40
|
-
# in domain, ADR 0024). `generated_at` is intentionally NOT consulted:
|
|
41
|
-
# build-generation time is no longer carried in the artifact (ADR
|
|
42
|
-
# 0070), and fetch-freshness is a fetch concept, not a build one.
|
|
43
|
-
def written_at(envelope)
|
|
44
|
-
raw = envelope.freshness&.checked_at ||
|
|
45
|
-
envelope.meta&.dig("last_fetched_at")
|
|
46
|
-
return raw if raw.is_a?(Time)
|
|
47
|
-
return nil if raw.nil?
|
|
48
|
-
|
|
49
|
-
begin
|
|
50
|
-
Time.parse(raw.to_s)
|
|
51
|
-
rescue StandardError
|
|
52
|
-
nil
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
module Predicates
|
|
7
|
-
# The single source of truth for the predicate vocabulary
|
|
8
|
-
# (ADR 0031 §3). Replaces both Promote::KNOWN and Promotion::REGISTRY.
|
|
9
|
-
# Each entry is name => ->(params:, schemas:) { predicate }.
|
|
10
|
-
module Registry
|
|
11
|
-
ENTRIES = {
|
|
12
|
-
"zone_writable_by" => ->(**) { ZoneWritableBy.new },
|
|
13
|
-
"author_held" => ->(**) { AuthorHeld.new },
|
|
14
|
-
"target_is_canon" => ->(**) { TargetIsCanon.new },
|
|
15
|
-
"schema_valid" => ->(schemas:, **) { SchemaValid.new(schemas: schemas) },
|
|
16
|
-
"etag_match" => ->(params:, **) { EtagMatch.new(if_etag: params) },
|
|
17
|
-
"fresh_within" => ->(params:, **) { FreshWithin.new(duration: params) },
|
|
18
|
-
}.freeze
|
|
19
|
-
|
|
20
|
-
# Accepts either "name" or { "name" => params }.
|
|
21
|
-
def self.build(spec, schemas:)
|
|
22
|
-
name, params =
|
|
23
|
-
if spec.is_a?(Hash)
|
|
24
|
-
spec.first
|
|
25
|
-
else
|
|
26
|
-
[spec.to_s, nil]
|
|
27
|
-
end
|
|
28
|
-
ctor = ENTRIES[name.to_s] or raise Textus::UsageError.new(
|
|
29
|
-
"unknown guard predicate: '#{name}' (known: #{ENTRIES.keys.join(", ")})",
|
|
30
|
-
)
|
|
31
|
-
ctor.call(params: params, schemas: schemas)
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
def self.known = ENTRIES.keys
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
module Predicates
|
|
7
|
-
# Predicate: the entry's effective frontmatter satisfies the schema
|
|
8
|
-
# bound to the target key. For accept, the frontmatter lives under
|
|
9
|
-
# envelope.meta["frontmatter"]; for a direct put it is envelope.meta.
|
|
10
|
-
class SchemaValid
|
|
11
|
-
attr_reader :reason
|
|
12
|
-
|
|
13
|
-
def initialize(schemas:)
|
|
14
|
-
@schemas = schemas
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def name = "schema_valid"
|
|
18
|
-
|
|
19
|
-
def call(eval)
|
|
20
|
-
manifest = eval.manifest
|
|
21
|
-
return true if eval.envelope.nil? || manifest.nil? || @schemas.nil?
|
|
22
|
-
|
|
23
|
-
target_key = eval.target
|
|
24
|
-
return true unless target_key
|
|
25
|
-
|
|
26
|
-
mentry = manifest.resolver.resolve(target_key).entry
|
|
27
|
-
schema_ref = mentry&.schema
|
|
28
|
-
return true unless schema_ref
|
|
29
|
-
|
|
30
|
-
schema = @schemas.fetch_or_nil(schema_ref)
|
|
31
|
-
return true unless schema
|
|
32
|
-
|
|
33
|
-
frontmatter =
|
|
34
|
-
eval.envelope.meta&.dig("frontmatter") || eval.envelope.meta || {}
|
|
35
|
-
begin
|
|
36
|
-
schema.validate!(frontmatter)
|
|
37
|
-
true
|
|
38
|
-
rescue Textus::SchemaViolation => e
|
|
39
|
-
@reason = humanize(e)
|
|
40
|
-
false
|
|
41
|
-
end
|
|
42
|
-
rescue StandardError => e
|
|
43
|
-
@reason = "schema validation error: #{e.message}"
|
|
44
|
-
false
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
private
|
|
48
|
-
|
|
49
|
-
def humanize(err)
|
|
50
|
-
d = err.details
|
|
51
|
-
return err.message.dup unless d.is_a?(Hash)
|
|
52
|
-
return "missing required fields: #{Array(d["missing"]).join(", ")}" if d["missing"]
|
|
53
|
-
return "field '#{d["field"]}': #{d["reason"]}" if d["field"]
|
|
54
|
-
|
|
55
|
-
err.message.dup
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Textus
|
|
4
|
-
module Domain
|
|
5
|
-
module Policy
|
|
6
|
-
module Predicates
|
|
7
|
-
# Predicate: a proposal may only target a `canon` zone (ADR 0035). Runs
|
|
8
|
-
# on the `accept` floor, where Evaluation#target is the proposal's
|
|
9
|
-
# resolved target_key. Refuses promotion into workspace/derived/
|
|
10
|
-
# quarantine/queue — the queue→canon path is the only coherent one.
|
|
11
|
-
# No bespoke #error; failures accumulate into GuardFailed (ADR 0031).
|
|
12
|
-
class TargetIsCanon
|
|
13
|
-
attr_reader :reason
|
|
14
|
-
|
|
15
|
-
def name = "target_is_canon"
|
|
16
|
-
|
|
17
|
-
def call(eval)
|
|
18
|
-
zone = eval.manifest.resolver.resolve(eval.target).entry.zone
|
|
19
|
-
kind = eval.manifest.policy.declared_kind(zone.to_s)
|
|
20
|
-
return true if kind == :canon
|
|
21
|
-
|
|
22
|
-
@reason = "proposal target '#{eval.target}' is in zone '#{zone}' " \
|
|
23
|
-
"(kind: #{kind || "none"}); proposals may only target a canon zone"
|
|
24
|
-
false
|
|
25
|
-
rescue Textus::UnknownKey
|
|
26
|
-
@reason = "proposal target '#{eval.target}' resolves to no declared entry"
|
|
27
|
-
false
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
end
|