agnostic-prompt-aps 1.1.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.
Files changed (42) hide show
  1. agnostic_prompt_aps-1.1.1.dist-info/METADATA +57 -0
  2. agnostic_prompt_aps-1.1.1.dist-info/RECORD +42 -0
  3. agnostic_prompt_aps-1.1.1.dist-info/WHEEL +5 -0
  4. agnostic_prompt_aps-1.1.1.dist-info/entry_points.txt +2 -0
  5. agnostic_prompt_aps-1.1.1.dist-info/licenses/LICENSE +190 -0
  6. agnostic_prompt_aps-1.1.1.dist-info/top_level.txt +1 -0
  7. aps_cli/__init__.py +3 -0
  8. aps_cli/cli.py +250 -0
  9. aps_cli/core.py +157 -0
  10. aps_cli/payload/agnostic-prompt-standard/SKILL.md +73 -0
  11. aps_cli/payload/agnostic-prompt-standard/assets/agents/vscode-agent-v1.0.0.agent.md +187 -0
  12. aps_cli/payload/agnostic-prompt-standard/assets/constants/constants-json-block-v1.0.0.example.md +15 -0
  13. aps_cli/payload/agnostic-prompt-standard/assets/constants/constants-text-block-v1.0.0.example.md +15 -0
  14. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-code-changes-full-v1.0.0.example.md +21 -0
  15. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-code-map-v1.0.0.example.md +18 -0
  16. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-error-v1.0.0.example.md +9 -0
  17. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-hierarchical-outline-v1.0.0.example.md +17 -0
  18. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-ideation-list-v1.0.0.example.md +20 -0
  19. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-markdown-table-v1.0.0.example.md +17 -0
  20. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-table-api-coverage-v1.0.0.example.md +13 -0
  21. aps_cli/payload/agnostic-prompt-standard/platforms/README.md +39 -0
  22. aps_cli/payload/agnostic-prompt-standard/platforms/_schemas/platform-manifest.schema.json +84 -0
  23. aps_cli/payload/agnostic-prompt-standard/platforms/_schemas/tools-registry.schema.json +148 -0
  24. aps_cli/payload/agnostic-prompt-standard/platforms/_template/README.md +10 -0
  25. aps_cli/payload/agnostic-prompt-standard/platforms/_template/manifest.json +25 -0
  26. aps_cli/payload/agnostic-prompt-standard/platforms/_template/tools-registry.json +12 -0
  27. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/README.md +100 -0
  28. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/frontmatter/agent-frontmatter.md +24 -0
  29. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/frontmatter/instructions-frontmatter.md +12 -0
  30. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/frontmatter/prompt-frontmatter.md +18 -0
  31. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/frontmatter/skill-frontmatter.md +10 -0
  32. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/manifest.json +40 -0
  33. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/templates/AGENTS.md +7 -0
  34. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/tools-registry.json +509 -0
  35. aps_cli/payload/agnostic-prompt-standard/references/00-structure.md +123 -0
  36. aps_cli/payload/agnostic-prompt-standard/references/01-vocabulary.md +124 -0
  37. aps_cli/payload/agnostic-prompt-standard/references/02-linting-and-formatting.md +122 -0
  38. aps_cli/payload/agnostic-prompt-standard/references/03-agentic-control.md +192 -0
  39. aps_cli/payload/agnostic-prompt-standard/references/04-schemas-and-types.md +137 -0
  40. aps_cli/payload/agnostic-prompt-standard/references/05-grammar.md +99 -0
  41. aps_cli/payload/agnostic-prompt-standard/references/06-logging-and-privacy.md +32 -0
  42. aps_cli/payload/agnostic-prompt-standard/references/07-error-taxonomy.md +62 -0
@@ -0,0 +1,32 @@
1
+ # 06 Logging and privacy
2
+
3
+ This document defines the normative logging and redaction requirements for APS executors.
4
+
5
+ ## Logging
6
+
7
+ ```yaml
8
+ logging:
9
+ capture_points: [RUN, USE, CAPTURE, SET, UNSET, ASSERT, RETURN, PAR, JOIN, TELL, SNAP]
10
+ include:
11
+ - timestamp
12
+ - process_id
13
+ - step_index
14
+ - action
15
+ - inputs
16
+ - outputs
17
+ - artifacts
18
+ - prior_hash
19
+ - new_hash
20
+ - origin
21
+ - policy_hash
22
+ ```
23
+
24
+ ## Redaction
25
+
26
+ Engines MUST enforce:
27
+
28
+ - Secrets/PII MUST be redacted as `[REDACTED]` (`AG-032`).
29
+ - For `SNAP` with `redact=[SYMS]`, engines MUST zeroize the listed symbols in `prior_state`,
30
+ `new_state`, and `artifacts`.
31
+ - If `TELL` uses `why:SYMBOL` and `SYMBOL` is redacted, only the symbol name may appear; its
32
+ content MUST NOT.
@@ -0,0 +1,62 @@
1
+ # 07 Error taxonomy
2
+
3
+ This document defines the normative error and warning codes.
4
+
5
+ ## Errors
6
+
7
+ ```yaml
8
+ errors:
9
+ hard:
10
+ - { code: AG-001, name: UndefinedSymbol, desc: Symbol not defined in <constants> or <runtime>. }
11
+ - { code: AG-002, name: ReservedTokenMisuse, desc: Reserved word used as ID/Key/Symbol. }
12
+ - { code: AG-003, name: InvalidId, desc: Process/tool/key not matching naming regex. }
13
+ - { code: AG-004, name: ProcessIdMismatch, desc: RUN references missing <process id="…">. }
14
+ - { code: AG-006, name: UnresolvedPlaceholder, desc: Placeholder could not be resolved. }
15
+ - { code: AG-007, name: BadJSON, desc: Invalid JSON value or pair. }
16
+ - { code: AG-008, name: CaptureMissing, desc: CAPTURE references unknown/never-executed tool. }
17
+ - { code: AG-009, name: TagMismatch, desc: Unbalanced or wrong closing tag. }
18
+ - { code: AG-010, name: CommentDetected, desc: Comment present in executable blocks. }
19
+ - { code: AG-011, name: TabDetected, desc: Tab characters present. }
20
+ - { code: AG-012, name: KeyOrder, desc: Keys in where: not lexicographic. }
21
+ - { code: AG-013, name: DuplicateSymbol, desc: Symbol redefined with incompatible type/origin. }
22
+ - { code: AG-014, name: TimeFormat, desc: Non-ISO 8601 time/offset where required. }
23
+ - { code: AG-015, name: CasePolicy, desc: Non-lowercase booleans or non-double-quoted strings. }
24
+ - { code: AG-016, name: ProcessNameAttrMismatch, desc: <process> Name attr missing/malformed. }
25
+ - { code: AG-017, name: ToolPolicy, desc: Tools used in <triggers>. }
26
+ - { code: AG-018, name: ConcurrencyPolicy, desc: PAR/JOIN misuse or nondeterministic ordering. }
27
+ - { code: AG-019, name: ForbiddenSymbolOrigin, desc: SET origin missing/invalid. }
28
+ - { code: AG-021, name: STEValidationFailed, desc: ste=true text failed STE lints. }
29
+ - { code: AG-022, name: RandomnessPolicy, desc: Randomness used without seed where policy forbids. }
30
+ - { code: AG-023, name: WithScopeError, desc: WITH defaults malformed or leaked across scope boundary. }
31
+ - { code: AG-024, name: AliasMapError, desc: ALIAS mapping invalid or collides with symbol names. }
32
+ - { code: AG-027, name: TimeoutRetryPolicy, desc: timeout_ms/retry invalid type/range. }
33
+ - { code: AG-028, name: CapturePathError, desc: CAPTURE map path invalid or type coercion failed. }
34
+ - { code: AG-029, name: AssertInvalid, desc: ASSERT expression invalid or unsafely side-effecting. }
35
+ - { code: AG-030, name: SemicolonDetected, desc: Semicolon ';' used where newline termination is required. }
36
+ - { code: AG-031, name: PaddingWhitespace, desc: Excess inter-token spaces detected; exactly one ASCII space required in compiled form. }
37
+ - { code: AG-032, name: SensitiveInLog, desc: Secrets/PII leaked in logs or errors. }
38
+ - { code: AG-033, name: InstructionsLinePolicy, desc: Multiple sentences per line, blank lines, or non-directive lines present in <instructions>. }
39
+ - { code: AG-034, name: PredefinedToolCollision, desc: Conflicting tool signatures across host and predefinedTools.json. }
40
+ - { code: AG-035, name: InPromptConfigOrImports, desc: Presence of <config> or <import> tags in prompt. }
41
+ - { code: AG-036, name: FormatContractViolation, desc: Output does not match the referenced <format id="…"> template (missing headers/columns/markers/placeholders not resolved). }
42
+ - { code: AG-037, name: DictReferenceForbidden, desc: DICT-style reference @"…" used; constants must be defined in <constants>. }
43
+ - { code: AG-038, name: DictInConfigForbidden, desc: config.json contains a DICT key; migrate constants to <constants>. }
44
+ - { code: AG-039, name: FormatUndefined, desc: A step references a format id that is not defined in <formats>. }
45
+ - { code: AG-040, name: FormatFenceError, desc: Missing or malformed ```format:<ID> fenced block; multiple format blocks or surrounding prose where a single block is required. }
46
+ - { code: AG-041, name: FormatWhereMissing, desc: WHERE: section missing or not uppercase when placeholders are present (or required by policy). }
47
+ - { code: AG-042, name: PlaceholderMismatch, desc: Placeholder appears in body but not in WHERE, or defined in WHERE but not present in body. }
48
+ - { code: AG-043, name: PlaceholderStyleError, desc: Placeholder not in <UPPER_SNAKE> form or not wrapped in angle brackets. }
49
+ - { code: AG-044, name: ProcessArgsMismatch, desc: RUN statement arguments do not match the target process signature (missing, extra, or type-incompatible arguments). }
50
+ - { code: AG-045, name: BlockConstantUnterminated, desc: Block constant missing closing delimiter line >>. }
51
+ - { code: AG-046, name: BlockConstantTypeUnknown, desc: Block constant uses unknown <BLOCK_TYPE>; expected JSON or TEXT. }
52
+
53
+ warnings:
54
+ - { code: AG-W01, name: SymbolNotUsed, desc: Defined but never used. }
55
+ - { code: AG-W02, name: LaxTime, desc: Step without explicit time where policy requires. }
56
+ - { code: AG-W03, name: HeuristicInference, desc: Placeholder resolved by Agent Inference under strict policy. }
57
+ ```
58
+
59
+ ## Required behaviors
60
+
61
+ - Engines MUST treat all `errors.hard` codes as fatal for the current compile/run.
62
+ - Engines MAY continue on `warnings`, but MUST surface them to the caller.