stacktrace-cli 0.18.0__py3-none-any.whl → 0.18.1__py3-none-any.whl
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.
- stacktrace/__init__.py +1 -1
- stacktrace/daemon/costs.py +7 -7
- stacktrace/daemon/gateway.py +2 -9
- stacktrace/daemon/gateway_policy.py +9 -9
- stacktrace/daemon/inline_hook.py +5 -9
- stacktrace/daemon/observer.py +6 -9
- stacktrace/daemon/policy_inputs.py +11 -1
- stacktrace/daemon/policy_runtime.py +11 -11
- stacktrace/daemon/runtime.py +2 -2
- stacktrace/daemon/store.py +0 -4
- stacktrace/gateway/analyzer.py +5 -11
- stacktrace/gateway/sink.py +8 -9
- {stacktrace_cli-0.18.0.dist-info → stacktrace_cli-0.18.1.dist-info}/METADATA +2 -2
- {stacktrace_cli-0.18.0.dist-info → stacktrace_cli-0.18.1.dist-info}/RECORD +16 -16
- {stacktrace_cli-0.18.0.dist-info → stacktrace_cli-0.18.1.dist-info}/WHEEL +0 -0
- {stacktrace_cli-0.18.0.dist-info → stacktrace_cli-0.18.1.dist-info}/entry_points.txt +0 -0
stacktrace/__init__.py
CHANGED
stacktrace/daemon/costs.py
CHANGED
|
@@ -526,13 +526,13 @@ class CostPass:
|
|
|
526
526
|
| None = None,
|
|
527
527
|
org_baselines: Callable[[], Mapping[Group, Bars]] = dict,
|
|
528
528
|
repo_name: Callable[[str | None], str | None] | None = None,
|
|
529
|
-
|
|
529
|
+
off: Callable[[], frozenset[str]] | None = None,
|
|
530
530
|
) -> None:
|
|
531
531
|
self.store = store
|
|
532
532
|
self.publish = publish
|
|
533
|
-
#: The rules
|
|
534
|
-
#:
|
|
535
|
-
self.
|
|
533
|
+
#: The rules that are Off; their findings are never recorded, and
|
|
534
|
+
#: never notify again (`PolicyRuntime.off`).
|
|
535
|
+
self._off = off or frozenset
|
|
536
536
|
#: The team's similar sessions, the second of the three groups a run
|
|
537
537
|
#: is compared with, found by its repo's name (cost-notifications
|
|
538
538
|
#: §2.3).
|
|
@@ -647,11 +647,11 @@ class CostPass:
|
|
|
647
647
|
writes.append(self._written[key])
|
|
648
648
|
return min(writes).isoformat() if writes else now.isoformat()
|
|
649
649
|
|
|
650
|
-
|
|
650
|
+
off = self._off()
|
|
651
651
|
for firing in firings:
|
|
652
|
+
if firing.rule_id in off:
|
|
653
|
+
continue
|
|
652
654
|
document = detection_json(to_detection(firing))
|
|
653
|
-
if firing.rule_id in muted:
|
|
654
|
-
document = {**document, "notify": False}
|
|
655
655
|
rang = self._record(firing.session, document, now, started(firing.session))
|
|
656
656
|
if firing.rule_id == RUNAWAY_SESSION and firing.extra is not None:
|
|
657
657
|
self._again(firing.session, document, firing.extra, rang=rang)
|
stacktrace/daemon/gateway.py
CHANGED
|
@@ -112,10 +112,6 @@ def store_finding(
|
|
|
112
112
|
payload["action"] = stamp.action
|
|
113
113
|
payload["decided_by"] = stamp.decided_by
|
|
114
114
|
payload["where"] = stamp.where
|
|
115
|
-
if not stamp.notify:
|
|
116
|
-
# Store-only: never sent to Fleet (`GATEWAY_FIELDS` in
|
|
117
|
-
# `remote/detect_payload.py` does not declare it).
|
|
118
|
-
payload["notify"] = False
|
|
119
115
|
if stamp.principal is not None:
|
|
120
116
|
# The run's account and its card, as a laptop run's sign-in has
|
|
121
117
|
# them, so Fleet names the person with no new field (ADR-0153).
|
|
@@ -124,11 +120,8 @@ def store_finding(
|
|
|
124
120
|
notifications = store.record(session, (payload,), underbuilt=None)
|
|
125
121
|
# As a scan commit does, so the finding leaves before the next drain interval.
|
|
126
122
|
on_commit()
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if stamp.notify:
|
|
130
|
-
for notification in notifications:
|
|
131
|
-
publish(notification)
|
|
123
|
+
for notification in notifications:
|
|
124
|
+
publish(notification)
|
|
132
125
|
|
|
133
126
|
return write
|
|
134
127
|
|
|
@@ -29,6 +29,8 @@ from stacktrace.hooks.claude import policy_message
|
|
|
29
29
|
from stacktrace.policy_display import policy_rows
|
|
30
30
|
from stacktrace.sessions.access import GatewayToolCall
|
|
31
31
|
|
|
32
|
+
from .policy_inputs import off_rules
|
|
33
|
+
|
|
32
34
|
# `Policy` through the runtime, which is this package's one OpenACA policy importer.
|
|
33
35
|
from .policy_runtime import REFRESH_INTERVAL, Policy, PolicyRuntime, Result, Subject, decide
|
|
34
36
|
|
|
@@ -166,10 +168,12 @@ def runtime_entries(
|
|
|
166
168
|
runtime: PolicyRuntime, *, ttl_s: float = POLICY_TTL_S
|
|
167
169
|
) -> Callable[[], EntrySet]:
|
|
168
170
|
"""The rules whose entry blocks at the response check, each with its entry's
|
|
169
|
-
name,
|
|
171
|
+
name, the revision that published them, and the rules that are Off.
|
|
170
172
|
|
|
171
173
|
The same time to live as the policy: a gateway stops trusting both together.
|
|
172
|
-
With no policy, a stale one, or no entry, nothing blocks (ADR-0159).
|
|
174
|
+
With no policy, a stale one, or no entry, nothing blocks (ADR-0159). An Off
|
|
175
|
+
rule is Off whatever the policy's age, as it is for the scan
|
|
176
|
+
(`PolicyRuntime.off`).
|
|
173
177
|
"""
|
|
174
178
|
|
|
175
179
|
def read() -> EntrySet:
|
|
@@ -177,17 +181,13 @@ def runtime_entries(
|
|
|
177
181
|
entries = runtime.cache.state.detection_rules
|
|
178
182
|
revision = runtime.cache.state.desired_revision
|
|
179
183
|
unified = runtime.cache.state.entries
|
|
184
|
+
off = off_rules(unified)
|
|
180
185
|
refreshed = runtime.refreshed_at
|
|
181
186
|
if refreshed is None or runtime.clock() - refreshed > ttl_s:
|
|
182
|
-
return EntrySet()
|
|
187
|
+
return EntrySet(off=off)
|
|
183
188
|
blocking = [
|
|
184
189
|
e for e in entries if e.action == "block" and gateway_blockable(e.rule_id, "response")
|
|
185
190
|
]
|
|
186
|
-
|
|
187
|
-
notify = {e.rule_id: e.notify for e in blocking}
|
|
188
|
-
# The unified policy's `notify` mutes every finding of its rule, not
|
|
189
|
-
# only a block (unified-policy.md, "Notification").
|
|
190
|
-
notify.update({e.rule_id: e.notify for e in unified})
|
|
191
|
-
return EntrySet(names, revision, notify)
|
|
191
|
+
return EntrySet({e.rule_id: e.name for e in blocking}, revision, off)
|
|
192
192
|
|
|
193
193
|
return read
|
stacktrace/daemon/inline_hook.py
CHANGED
|
@@ -170,7 +170,7 @@ def blocked_recorder(
|
|
|
170
170
|
write: Callable[[Detection, Stamp], None],
|
|
171
171
|
remember: Callable[[str, str, str, str], bool],
|
|
172
172
|
forget: Callable[[str, str, str, str], None],
|
|
173
|
-
) -> Callable[[dict[str, object], Detection, DecidedBy
|
|
173
|
+
) -> Callable[[dict[str, object], Detection, DecidedBy], None]:
|
|
174
174
|
"""Store each blocked finding as the gateway stores one: `action: blocked`.
|
|
175
175
|
|
|
176
176
|
`remember` keeps the call's agent kind, session, `tool_use_id` and rule
|
|
@@ -186,19 +186,16 @@ def blocked_recorder(
|
|
|
186
186
|
inserted: a repeated call's marker stands for an earlier, stored finding.
|
|
187
187
|
|
|
188
188
|
`decided_by` keeps the shape Fleet declares today (`rules`, `policy_revision`).
|
|
189
|
-
The entry id joins it when Fleet declares that field.
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
The entry id joins it when Fleet declares that field. A block always
|
|
190
|
+
notifies, whatever its entry's `notify` (unified-policy.md, "Off, Detect and
|
|
191
|
+
Block").
|
|
192
192
|
"""
|
|
193
193
|
|
|
194
|
-
def record(
|
|
195
|
-
action: dict[str, object], detection: Detection, decided: DecidedBy, notify: bool
|
|
196
|
-
) -> None:
|
|
194
|
+
def record(action: dict[str, object], detection: Detection, decided: DecidedBy) -> None:
|
|
197
195
|
stamp = Stamp(
|
|
198
196
|
None,
|
|
199
197
|
"blocked",
|
|
200
198
|
{"rules": __version__, "policy_revision": decided.policy_revision},
|
|
201
|
-
notify=notify,
|
|
202
199
|
where="hook",
|
|
203
200
|
)
|
|
204
201
|
# The judged session's id, not the hook's: for a subagent's call it is
|
|
@@ -266,7 +263,6 @@ def component_denial_recorder(
|
|
|
266
263
|
None,
|
|
267
264
|
"blocked",
|
|
268
265
|
{"rules": __version__, "policy_revision": revision},
|
|
269
|
-
notify=entry.notify,
|
|
270
266
|
where="hook",
|
|
271
267
|
)
|
|
272
268
|
inserted = remember(agent_kind, session_id, call_id, entry.rule_id)
|
stacktrace/daemon/observer.py
CHANGED
|
@@ -182,12 +182,12 @@ class SessionObserver:
|
|
|
182
182
|
composition_generation: Callable[[], int] | None = None,
|
|
183
183
|
pending_kinds: Callable[[], frozenset[str]] | None = None,
|
|
184
184
|
cold_read: Callable[[str], SessionView] | None = None,
|
|
185
|
-
|
|
185
|
+
off: Callable[[], frozenset[str]] | None = None,
|
|
186
186
|
) -> None:
|
|
187
187
|
self.agent_kind = agent_kind
|
|
188
|
-
#: The rules
|
|
189
|
-
#:
|
|
190
|
-
self.
|
|
188
|
+
#: The rules that are Off; their findings are never recorded
|
|
189
|
+
#: (`PolicyRuntime.off`).
|
|
190
|
+
self._off = off or frozenset
|
|
191
191
|
self.store = store
|
|
192
192
|
self.publish = publish
|
|
193
193
|
self.attach_advisories = advisory_attacher(CachingAdvisoryLookup())
|
|
@@ -609,13 +609,10 @@ class SessionObserver:
|
|
|
609
609
|
# stays off. Enabling reasoning starts coverage from that point
|
|
610
610
|
# forward; it does not requeue what was already scanned while it was
|
|
611
611
|
# off.
|
|
612
|
-
|
|
612
|
+
off = self._off()
|
|
613
613
|
notifications = self.store.record(
|
|
614
614
|
collected.session,
|
|
615
|
-
tuple(
|
|
616
|
-
{**finding, "notify": False} if finding.get("rule_id") in muted else finding
|
|
617
|
-
for finding in result.findings
|
|
618
|
-
),
|
|
615
|
+
tuple(finding for finding in result.findings if finding.get("rule_id") not in off),
|
|
619
616
|
unknowns=result.unknowns,
|
|
620
617
|
working_directories=result.working_directories,
|
|
621
618
|
source_visible_at=collected.source_visible_at,
|
|
@@ -13,7 +13,7 @@ import sqlite3
|
|
|
13
13
|
import threading
|
|
14
14
|
import unicodedata
|
|
15
15
|
import uuid
|
|
16
|
-
from collections.abc import Callable, Iterator, Mapping
|
|
16
|
+
from collections.abc import Callable, Iterable, Iterator, Mapping
|
|
17
17
|
from contextlib import contextmanager
|
|
18
18
|
from dataclasses import dataclass, field, replace
|
|
19
19
|
from pathlib import Path
|
|
@@ -208,6 +208,16 @@ class PolicyEntry:
|
|
|
208
208
|
)
|
|
209
209
|
|
|
210
210
|
|
|
211
|
+
def off_rules(entries: Iterable[PolicyEntry]) -> frozenset[str]:
|
|
212
|
+
"""The rules that are Off: an entry with `allow` and `notify: false`
|
|
213
|
+
(unified-policy.md, "Off, Detect and Block"). No point records their findings.
|
|
214
|
+
|
|
215
|
+
A `block` entry is Block whatever its `notify`: a policy saved before Fleet
|
|
216
|
+
refused `notify: false` on a block still blocks, records and notifies.
|
|
217
|
+
"""
|
|
218
|
+
return frozenset(e.rule_id for e in entries if e.action == "allow" and not e.notify)
|
|
219
|
+
|
|
220
|
+
|
|
211
221
|
def _entries_invalid() -> PolicyInputError:
|
|
212
222
|
return PolicyInputError("policy_entries_invalid")
|
|
213
223
|
|
|
@@ -26,6 +26,7 @@ from stacktrace.daemon.policy_inputs import (
|
|
|
26
26
|
PolicyInputs,
|
|
27
27
|
PolicyState,
|
|
28
28
|
Tenant,
|
|
29
|
+
off_rules,
|
|
29
30
|
)
|
|
30
31
|
from stacktrace.detector.rules import ADMISSION_RULES, BLOCKABLE, POSTURE_RULE, VULNERABILITY_RULE
|
|
31
32
|
from stacktrace.policy_display import default_description
|
|
@@ -38,9 +39,9 @@ if TYPE_CHECKING:
|
|
|
38
39
|
#: Judges a hook's pending call for the given rules (ADR-0158). It raises
|
|
39
40
|
#: `ValueError` with a fixed code for a call it cannot read.
|
|
40
41
|
Inspector = Callable[[dict[str, object], frozenset[str]], "tuple[Detection, ...]"]
|
|
41
|
-
#: Stores a blocked finding with the call it blocked
|
|
42
|
-
#:
|
|
43
|
-
OnBlocked = Callable[[dict[str, object], "Detection", "DecidedBy"
|
|
42
|
+
#: Stores a blocked finding with the call it blocked and what decided it. A
|
|
43
|
+
#: block always notifies (unified-policy.md, "Off, Detect and Block").
|
|
44
|
+
OnBlocked = Callable[[dict[str, object], "Detection", "DecidedBy"], None]
|
|
44
45
|
#: Stores a component deny's finding: the call's selector and ids, the entry
|
|
45
46
|
#: that denied it, and the policy revision.
|
|
46
47
|
OnComponentDenied = Callable[[dict[str, object], PolicyEntry, int], None]
|
|
@@ -800,23 +801,22 @@ class PolicyRuntime:
|
|
|
800
801
|
action,
|
|
801
802
|
detection,
|
|
802
803
|
DecidedBy(rule_entry.id, rule_entry.rule_id, revision),
|
|
803
|
-
rule_entry.notify,
|
|
804
804
|
)
|
|
805
805
|
except Exception as error: # noqa: BLE001 - the deny stands; a write retries
|
|
806
806
|
logger.warning("blocked finding not stored: %s", type(error).__name__)
|
|
807
807
|
return Result("deny", "detection_blocked", revision, detail=entry.name, decided_by=decided)
|
|
808
808
|
|
|
809
|
-
def
|
|
810
|
-
"""The rules
|
|
811
|
-
|
|
812
|
-
|
|
809
|
+
def off(self) -> frozenset[str]:
|
|
810
|
+
"""The rules that are Off (unified-policy.md, "Off, Detect and Block").
|
|
811
|
+
No pass records their findings, so none reaches the session, the
|
|
812
|
+
webhook or Fleet.
|
|
813
813
|
|
|
814
|
-
Only the unified policy's `entries`
|
|
815
|
-
`detection_rules`
|
|
814
|
+
Only the unified policy's `entries` turn a rule off. The older
|
|
815
|
+
`detection_rules` have no Off.
|
|
816
816
|
"""
|
|
817
817
|
with self.cache.guard:
|
|
818
818
|
entries = self.cache.state.entries
|
|
819
|
-
return
|
|
819
|
+
return off_rules(entries)
|
|
820
820
|
|
|
821
821
|
def status(self) -> dict[str, object]:
|
|
822
822
|
try:
|
stacktrace/daemon/runtime.py
CHANGED
|
@@ -391,7 +391,7 @@ def run_daemon(
|
|
|
391
391
|
composition_generation=lambda: compositions.generation,
|
|
392
392
|
pending_kinds=compositions.pending_kinds,
|
|
393
393
|
cold_read=lambda kind: collect_sessions([kind], None, paths.claude_root),
|
|
394
|
-
|
|
394
|
+
off=policy.off,
|
|
395
395
|
)
|
|
396
396
|
for kind in kinds
|
|
397
397
|
}
|
|
@@ -634,7 +634,7 @@ def run_daemon(
|
|
|
634
634
|
record_usage=recorder.record,
|
|
635
635
|
org_baselines=OrgBaselines(store),
|
|
636
636
|
repo_name=repo_names,
|
|
637
|
-
|
|
637
|
+
off=policy.off,
|
|
638
638
|
),
|
|
639
639
|
)
|
|
640
640
|
service = DaemonService(
|
stacktrace/daemon/store.py
CHANGED
|
@@ -2573,8 +2573,6 @@ class FindingStore:
|
|
|
2573
2573
|
|
|
2574
2574
|
@staticmethod
|
|
2575
2575
|
def _eligible(finding: dict[str, object]) -> bool:
|
|
2576
|
-
if finding.get("notify") is False:
|
|
2577
|
-
return False
|
|
2578
2576
|
if finding.get("rule_id") in FindingStore._ANY_GRADE:
|
|
2579
2577
|
return True
|
|
2580
2578
|
confidence = finding.get("confidence")
|
|
@@ -2624,8 +2622,6 @@ class FindingStore:
|
|
|
2624
2622
|
self._connection.execute(
|
|
2625
2623
|
"UPDATE cost_notices SET extra = ? WHERE event_id = ?", (extra, event_id)
|
|
2626
2624
|
)
|
|
2627
|
-
if finding.get("notify") is False:
|
|
2628
|
-
return None
|
|
2629
2625
|
return self._notification(session, f"{event_id}:doubled-at-{extra}", payload, again=True)
|
|
2630
2626
|
|
|
2631
2627
|
@staticmethod
|
stacktrace/gateway/analyzer.py
CHANGED
|
@@ -29,7 +29,6 @@ import threading
|
|
|
29
29
|
from collections.abc import Callable, Mapping
|
|
30
30
|
from dataclasses import dataclass, field
|
|
31
31
|
from pathlib import Path
|
|
32
|
-
from types import MappingProxyType
|
|
33
32
|
from typing import Literal, Protocol, cast
|
|
34
33
|
|
|
35
34
|
import httpx
|
|
@@ -175,10 +174,6 @@ class PolicyVerdict:
|
|
|
175
174
|
PolicyCheck = Callable[[tuple[GatewayToolCall, ...], str | None], PolicyVerdict]
|
|
176
175
|
|
|
177
176
|
|
|
178
|
-
#: No entry turns notification off.
|
|
179
|
-
_NO_NOTIFY: Mapping[str, bool] = MappingProxyType({})
|
|
180
|
-
|
|
181
|
-
|
|
182
177
|
@dataclass(frozen=True)
|
|
183
178
|
class EntrySet:
|
|
184
179
|
"""The rules whose Fleet entry says `block` now, each with its entry's name
|
|
@@ -187,10 +182,9 @@ class EntrySet:
|
|
|
187
182
|
|
|
188
183
|
names: Mapping[str, str] = field(default_factory=lambda: NO_ENTRIES)
|
|
189
184
|
revision: int | None = None
|
|
190
|
-
#:
|
|
191
|
-
#:
|
|
192
|
-
|
|
193
|
-
notify: Mapping[str, bool] = field(default_factory=lambda: _NO_NOTIFY)
|
|
185
|
+
#: The rules that are Off: none of their findings is recorded
|
|
186
|
+
#: (unified-policy.md, "Off, Detect and Block").
|
|
187
|
+
off: frozenset[str] = frozenset()
|
|
194
188
|
|
|
195
189
|
|
|
196
190
|
Entries = Callable[[], EntrySet]
|
|
@@ -352,7 +346,7 @@ class LocalAnalyzer(FailOpen):
|
|
|
352
346
|
action=recorded,
|
|
353
347
|
principal=turn.principal,
|
|
354
348
|
decided_by=decided,
|
|
355
|
-
|
|
349
|
+
off=entries.off,
|
|
356
350
|
)
|
|
357
351
|
self.recorder.try_record_verdict(
|
|
358
352
|
verdict.session_id,
|
|
@@ -415,7 +409,7 @@ class LocalAnalyzer(FailOpen):
|
|
|
415
409
|
source="ingest",
|
|
416
410
|
principal=turn.principal,
|
|
417
411
|
decided_by=decided_by(None),
|
|
418
|
-
|
|
412
|
+
off=self.blocking_rules().off,
|
|
419
413
|
)
|
|
420
414
|
return findings, None if ok else "record_failed"
|
|
421
415
|
|
stacktrace/gateway/sink.py
CHANGED
|
@@ -20,7 +20,7 @@ import re
|
|
|
20
20
|
import sys
|
|
21
21
|
import threading
|
|
22
22
|
import time
|
|
23
|
-
from collections.abc import Callable,
|
|
23
|
+
from collections.abc import Callable, Collection, Iterable
|
|
24
24
|
from dataclasses import dataclass
|
|
25
25
|
from pathlib import Path
|
|
26
26
|
from typing import Literal, Protocol
|
|
@@ -106,8 +106,6 @@ class Stamp:
|
|
|
106
106
|
principal: Principal | None
|
|
107
107
|
action: Stored
|
|
108
108
|
decided_by: dict[str, object] | None
|
|
109
|
-
#: Whether the entry that caused this finding asked to notify (ADR-0159).
|
|
110
|
-
notify: bool = True
|
|
111
109
|
where: Where = "gateway"
|
|
112
110
|
|
|
113
111
|
@property
|
|
@@ -155,19 +153,20 @@ class Recorder:
|
|
|
155
153
|
action: str | None = None,
|
|
156
154
|
principal: Principal | None = None,
|
|
157
155
|
decided_by: dict[str, object] | None = None,
|
|
158
|
-
|
|
156
|
+
off: Collection[str] = (),
|
|
159
157
|
) -> list[dict[str, object]]:
|
|
158
|
+
"""Record each new finding; a rule in `off` records none
|
|
159
|
+
(unified-policy.md, "Off, Detect and Block")."""
|
|
160
160
|
fresh: list[dict[str, object]] = []
|
|
161
161
|
stamp_action = stored_action(source, action)
|
|
162
162
|
with self._lock:
|
|
163
163
|
for d in detections:
|
|
164
164
|
key = self._key(d, principal)
|
|
165
|
-
if key in self._seen:
|
|
165
|
+
if d.rule_id in off or key in self._seen:
|
|
166
166
|
continue
|
|
167
167
|
record = finding_record(d, source=source, action=action)
|
|
168
168
|
if self._on_finding is not None:
|
|
169
|
-
|
|
170
|
-
self._on_finding(d, Stamp(principal, stamp_action, decided_by, wants_notify))
|
|
169
|
+
self._on_finding(d, Stamp(principal, stamp_action, decided_by))
|
|
171
170
|
for sink in self._sinks:
|
|
172
171
|
sink.write(record)
|
|
173
172
|
# Seen only once written: a write that raised leaves the
|
|
@@ -185,7 +184,7 @@ class Recorder:
|
|
|
185
184
|
action: str | None = None,
|
|
186
185
|
principal: Principal | None = None,
|
|
187
186
|
decided_by: dict[str, object] | None = None,
|
|
188
|
-
|
|
187
|
+
off: Collection[str] = (),
|
|
189
188
|
) -> tuple[list[dict[str, object]], bool]:
|
|
190
189
|
"""Record findings; a sink that fails is logged, never raised.
|
|
191
190
|
|
|
@@ -203,7 +202,7 @@ class Recorder:
|
|
|
203
202
|
action=action,
|
|
204
203
|
principal=principal,
|
|
205
204
|
decided_by=decided_by,
|
|
206
|
-
|
|
205
|
+
off=off,
|
|
207
206
|
),
|
|
208
207
|
True,
|
|
209
208
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: stacktrace-cli
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.1
|
|
4
4
|
Summary: CLI for Stacktrace — Detection and Response platform for AI Agents.
|
|
5
5
|
Project-URL: Homepage, https://stacktrace.ai
|
|
6
6
|
Author-email: "Stacktrace AI, Inc" <founders@stacktrace.ai>
|
|
@@ -52,7 +52,7 @@ Requires Python 3.11 or newer.
|
|
|
52
52
|
|
|
53
53
|
```console
|
|
54
54
|
$ stacktrace --version
|
|
55
|
-
stacktrace 0.18.
|
|
55
|
+
stacktrace 0.18.1
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
## Python package namespace
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
stacktrace/__init__.py,sha256=
|
|
1
|
+
stacktrace/__init__.py,sha256=kHtBVjFhNQ9Mpa7qQ-dpJtG0BQ0B-k2BTTE5KwI9UNk,485
|
|
2
2
|
stacktrace/__main__.py,sha256=sb5puf0HWE4CNhPcUSK-C4eTcD8BEm3G_7h9qhQ_upo,310
|
|
3
3
|
stacktrace/analysis.py,sha256=cZK5h9nPfdMMlJjZo7G707s_D038uKFCAsbziJlvz9Q,27513
|
|
4
4
|
stacktrace/build.py,sha256=lXMXBMoQtXC5qVMAWBsJavcVfXPmJiAZgV3cRBqUvyk,4846
|
|
@@ -55,27 +55,27 @@ stacktrace/daemon/cli.py,sha256=zC8CvaWSgDvFNTcrmdKWE9xHkAm02o5qaAVuBIIPBK0,3053
|
|
|
55
55
|
stacktrace/daemon/client.py,sha256=is6vbu13ERWe6ao1xjbjIxBOZXzwO4dVEz7iMjsnEcE,16001
|
|
56
56
|
stacktrace/daemon/composition.py,sha256=g-13NR1sBegECoyDFqbQFHivnqqVsPDAuo2jYBT1K8c,12219
|
|
57
57
|
stacktrace/daemon/config.py,sha256=yNJFxsU8pimi00aBtTdNCsWGykOJaQNUagMvD_aDpBg,13971
|
|
58
|
-
stacktrace/daemon/costs.py,sha256=
|
|
58
|
+
stacktrace/daemon/costs.py,sha256=ECzHzufv5ViFBKKPxd-za4lt_bUpkeEXiWWG6v17_04,33952
|
|
59
59
|
stacktrace/daemon/db.py,sha256=gRc-1udW6gF6cKPh-MtSAQ-Jo0YCKo4TCGnPH-_l0xo,54676
|
|
60
60
|
stacktrace/daemon/fleet.py,sha256=uDqTddy3i2ICmT_FFgpjb0BpIlFf8t0RbJFd4SnYvaA,33853
|
|
61
|
-
stacktrace/daemon/gateway.py,sha256=
|
|
62
|
-
stacktrace/daemon/gateway_policy.py,sha256=
|
|
61
|
+
stacktrace/daemon/gateway.py,sha256=TMjrz4NaLeab_bmJnuYs4HgLAgxQjLnw4uXZpfLvr2M,6853
|
|
62
|
+
stacktrace/daemon/gateway_policy.py,sha256=RNBK91urfJ0qHobfRcWJRGtpgiVL05f60YBR_-bbxRc,8251
|
|
63
63
|
stacktrace/daemon/identity.py,sha256=QIgmcRxT3qNikTIiotla6BvUMd_QJ35Ai5rF0jvsKPI,4484
|
|
64
|
-
stacktrace/daemon/inline_hook.py,sha256=
|
|
64
|
+
stacktrace/daemon/inline_hook.py,sha256=O6e_v_IRMSPunK2IrfBM1vAwaT8BgO6xR_At_xHr7dU,12009
|
|
65
65
|
stacktrace/daemon/jobs.py,sha256=4inKEM5-Zn_3DBJLLvjJIGc7s9UUMjw54EHhlBW72CE,15007
|
|
66
66
|
stacktrace/daemon/lifecycle.py,sha256=2FPewlnJyJoqLeBK1H4IP5mlYFgl8W_DEU6q6AcNYzc,5600
|
|
67
|
-
stacktrace/daemon/observer.py,sha256
|
|
67
|
+
stacktrace/daemon/observer.py,sha256=-iJ4QwJqYPdly18Ks94OaYtu1Z8RRiwhb3S-5-Ez4tM,37960
|
|
68
68
|
stacktrace/daemon/paths.py,sha256=fb5msjvI0-HuZNk1jAtF3v57vpugUmqW0j1Fyr439BQ,1570
|
|
69
69
|
stacktrace/daemon/policy_collect.py,sha256=bIVoEr92tJNXpXC99oUSx90UmESbvSWygqsKT2og6wI,20212
|
|
70
|
-
stacktrace/daemon/policy_inputs.py,sha256=
|
|
71
|
-
stacktrace/daemon/policy_runtime.py,sha256=
|
|
70
|
+
stacktrace/daemon/policy_inputs.py,sha256=bnxaoySsixCjzHcaGLO90F-un_N4sGRmId1OkoaoY_o,30913
|
|
71
|
+
stacktrace/daemon/policy_runtime.py,sha256=uk-ZsY--BOZ-Fd3Wcz41fxl_2g-UExL50JvjeOBXpIc,38613
|
|
72
72
|
stacktrace/daemon/presentation.py,sha256=IUudW7s56ZkhGxuOzXY1Sgm4jvTLqADVaKboXq3Q8lQ,10393
|
|
73
73
|
stacktrace/daemon/protocol.py,sha256=tDIpOe_JKbC2C2m7krA3ZdDN9CyRcYAeCL2lJG10qAg,7282
|
|
74
|
-
stacktrace/daemon/runtime.py,sha256=
|
|
74
|
+
stacktrace/daemon/runtime.py,sha256=nPaMzFH3ex0FErgVtLnZQqY_6psDcCou4rqWBy8ZQNA,48224
|
|
75
75
|
stacktrace/daemon/scan.py,sha256=IJd7hJcNtkyiw_s3m9ocPXS15yh4aIy8WQ_dWW0gDqk,15027
|
|
76
76
|
stacktrace/daemon/server.py,sha256=njYmI5AhKV7LICL8yXLHyhUKtuHyzH4DZe_qsnoiD2s,16589
|
|
77
77
|
stacktrace/daemon/service.py,sha256=CR3FwJUuLc8dBLyYiQzALBWnbyvtwQMi-wmvtjotURY,5296
|
|
78
|
-
stacktrace/daemon/store.py,sha256=
|
|
78
|
+
stacktrace/daemon/store.py,sha256=JyM3cRWffscG2dInVpPW4FTewNQ2EojDjGMhWnfWXb0,124820
|
|
79
79
|
stacktrace/daemon/usage.py,sha256=Yz-6Dq2wyBDJ6mQgLjsyubuwdyzacOdPymmn2PZ4Iwg,52686
|
|
80
80
|
stacktrace/daemon/webhook.py,sha256=QHFbsGR-lNm9TDLHSrnaxKN7-68f_GY39owFqSrki3I,32388
|
|
81
81
|
stacktrace/detector/__init__.py,sha256=uUwte-wGAjsXDlTgYClDtYtmZSj3-X52U_bRHIZzICw,69
|
|
@@ -107,14 +107,14 @@ stacktrace/detector/prompts/v1/exclusions.md,sha256=0SwIsf-iCsPLIabWfuqQKHNmiMot
|
|
|
107
107
|
stacktrace/detector/prompts/v1/framing.md,sha256=aR8s1_ow-S45TSkMfUsThPIJ2B_7HJe2swIQfEsBVvA,1185
|
|
108
108
|
stacktrace/detector/prompts/v1/stacktrace-deceptive-completion.md,sha256=O8IPI3JD_9Adr2cPRxRnBKgj5OOnWrdkX0mKQuHImyY,493
|
|
109
109
|
stacktrace/gateway/__init__.py,sha256=7KlYPsdKI8G14EhOii3r9sE99xd-ZkltYmIkqf2Z24Y,76
|
|
110
|
-
stacktrace/gateway/analyzer.py,sha256=
|
|
110
|
+
stacktrace/gateway/analyzer.py,sha256=Md5xEcBCCI02KgEobF-f2lhOfwUW-sm_1cGwp44E6iw,24058
|
|
111
111
|
stacktrace/gateway/check.py,sha256=swrmY8tDdKMEExFv1TsI8uOzOMwAhJWeOX3prNGfsRs,5588
|
|
112
112
|
stacktrace/gateway/cli.py,sha256=hpmLvmwyy2pGJuAqD2mZyytxYpnkOVgMGJEl8z61Y-8,2187
|
|
113
113
|
stacktrace/gateway/exchange.py,sha256=Hc4beaO8HD5gSPoA9SS5u1aWkwEXzUtTCkNXYbTkpsw,2647
|
|
114
114
|
stacktrace/gateway/principal.py,sha256=_9kuJ79JpHM3r2VfKfce2c32UDL7ESZTKal0ahwWMH4,3507
|
|
115
115
|
stacktrace/gateway/service.py,sha256=bVvx1COdFHPzIO1lELQc_c6Hq5KGeJ4bSQAe52u0W8I,7678
|
|
116
116
|
stacktrace/gateway/session.py,sha256=N-4v6IsBTakdkp7FZc6jpbPqHkG3lz28-xhKlZRn6G8,12841
|
|
117
|
-
stacktrace/gateway/sink.py,sha256=
|
|
117
|
+
stacktrace/gateway/sink.py,sha256=9l0fiintud_ErYrRfzgQ6L1Wi1tAqUoZ5KvbPUcP7r4,10852
|
|
118
118
|
stacktrace/gateway/formats/__init__.py,sha256=Ax_cBcqxWc-hfIJBRY8jsNFuvQCRaeOI69HNiasyWGM,7167
|
|
119
119
|
stacktrace/gateway/formats/_json.py,sha256=tV4RTFiW9JolwtyGNd5CvKIy8b2bHmGki6k15ny6TKM,6603
|
|
120
120
|
stacktrace/gateway/formats/anthropic.py,sha256=auOTzxbh5q0sfj9D1qiBH_l6DVMfB_u4C_vWTqeQ0Fs,6236
|
|
@@ -190,7 +190,7 @@ stacktrace/telemetry/state.py,sha256=xR8CoN9YX5uA3TBYgJy9lqXLctXoHjLS3kcImMwY7B8
|
|
|
190
190
|
stacktrace/webhook/__init__.py,sha256=6knjTNQA1ErM-AO6fQ60_TZqZzbVjQeDMU1XIPPCpo0,35
|
|
191
191
|
stacktrace/webhook/cli.py,sha256=0wJ1_TfSNxrgNjFKOw9sticuJ0ucMMxdJNv8X2a9SZk,7467
|
|
192
192
|
stacktrace/webhook/config.py,sha256=yOgW-zCy_4-MkqgcEqaDDUIGx3xI7BqniNr6meZI90E,8651
|
|
193
|
-
stacktrace_cli-0.18.
|
|
194
|
-
stacktrace_cli-0.18.
|
|
195
|
-
stacktrace_cli-0.18.
|
|
196
|
-
stacktrace_cli-0.18.
|
|
193
|
+
stacktrace_cli-0.18.1.dist-info/METADATA,sha256=lgTZ5udjhurbxUgtSfx_Pi0Kjsy-LLsYdHG0e4lj8PM,12790
|
|
194
|
+
stacktrace_cli-0.18.1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
195
|
+
stacktrace_cli-0.18.1.dist-info/entry_points.txt,sha256=UmjeMBiOdmGfbMZCVfJWT7r0onKRYqPnCZJ1Xhz1UPY,103
|
|
196
|
+
stacktrace_cli-0.18.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|