Internet-Draft | evp-spec | October 2025 |
Hopkins & Turner | Expires 16 April 2026 | [Page] |
Taking evidence is a key part of any robust software testing process. This specification defines a format which collects evidence together and stores metadata and annotations in an organised fashion from both manual and automated testing sources.¶
This work is not a standard and does not enjoy community consensus.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 16 April 2026.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
The purpose of this specification is to define a format for storage of evidence produced as the result of software testing that:¶
The format does not attempt to:¶
This specification is intended for those who might wish to write their own implementation of the evidence package format. There are a number of situations where writing an implementation may be desirable:¶
This document forms the original accepted specification.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
An evidence package is a structured ZIP archive [zip]. It MUST contain the file "manifest.json", and the directories "media" and "test_cases" internally within the ZIP archive. This structure does not need to be represented outside of the ZIP archive and as such the internal structure does not need to be understood by an end-user of any tool that works with evidence packages.¶
See Appendix A for an example of the file's internal structure.¶
The manifest.json file defines metadata relating to the entire package of evidence. It MUST be a UTF-8 encoded, LF line ended, JSON [RFC8259] file with the following elements:¶
Element | Condition | Type | Section | Description |
---|---|---|---|---|
$schema | Optional | String | Section 3.1.1 | The $schema element MAY point to a copy of the schema for the manifest. |
metadata | Mandatory | Object | Section 3.1.2 | The metadata element stores package metadata. |
custom_metadata | Mandatory | Object | Section 3.1.3 | Custom metadata fields for test cases in this package. |
media | Mandatory | Array | Section 3.1.4 | The media element stores a list of media files that are stored in this evidence package. |
test_cases | Mandatory | Array | Section 3.1.5 | The test_cases element stores a list of test cases. |
See an example manifest.json file in Appendix B.¶
This element MAY optionally be provided to point to a JSON schema describing the structure of the file. This is typically most useful for validation, however it MUST be acceptable for it to be missing, and this specification should be seen as the primary definition of structure over anything defined in the linked schema.¶
The JSON schema provided at by this element may give details about any additional fields used that are not defined in this specficiation.¶
Element | Condition | Type | Section | Description |
---|---|---|---|---|
title | Mandatory | String | The name of the evidence package. | |
authors | Mandatory | Array | Section 3.1.2.1 | The authors attributed to this evidence package. |
Elements within this object will become custom metadata properties for test cases in this package. Each object MUST have the following fields:¶
Element | Condition | Type | Section | Description |
---|---|---|---|---|
name | Mandatory | String | The name of this custom metadata field. | |
description | Mandatory | String | Section 3.1.2.1 | The description of this custom metadata field. |
primary | Mandatory | Boolean | Section 3.1.3.1 | Is this custom field primary? |
The "primary" value of custom metadata fields MAY be false for all fields, or MAY be true for exactly one field. It MUST NOT be true for more than one field.¶
The purpose of primary is not enforced as part of this specification, however it should be seen as suggesting that one custom metadata field is more useful than others, and as such may be used to influence the information displayed to users, for example an implementor might choose to show the primary custom metadata value for each test case alongside it.¶
Element | Condition | Type | Description |
---|---|---|---|
sha256_checksum | Mandatory | String | The SHA256 checksum of the associated media file. |
mime_type | Mandatory | String | The Internet Media Type [RFC2046] of the associated media file. |
Element | Condition | Type | Section | Description |
---|---|---|---|---|
id | Mandatory | String | The UUID of the test case. If present here, there MUST be an associated test case file in the "test_cases" directory of the package with the name "<UUID>.json". | |
sha256_checksum | Mandatory | String | The SHA256 checksum of the corresponding JSON file, "<UUID>.json". | |
attestations | Mandatory | Array of Strings | Section 3.1.5.1 | An array of attestations over this test case. |
The elements within the "attestations" array MUST be base64 encoded strings of OpenPGP [RFC9580] signatures. The signatures should be signing a copy of this manifest entry, excluding "attestations" itself, having been processed into JSON canonical format as defined in [RFC8785].¶
As a worked example, a manifest test_cases entry may start off like this:¶
{ "id": "7928de11-8de8-4bfe-b5b7-cbf07c7066d9", "sha256_checksum": "a2394af8d2b4e0c9ba66e797fd6060f4e6932e126f781157cdd2dda1c08b4b6f", "attestations": [], "some_other_value": "Added from somewhere other than this specification!" }¶
This should then have the "attestations" array removed and should be canonicalised:¶
{"id":"7928de11-8de8-4bfe-b5b7-cbf07c7066d9","sha256_checksum":"a2394af8d2b4e0c9ba66e797fd6060f4e6932e126f781157cdd2dda1c08b4b6f","some_other_value":"Added from somewhere other than this specification!"}¶
This can now be signed and the original manifest can be modified:¶
{ "id": "7928de11-8de8-4bfe-b5b7-cbf07c7066d9", "sha256_checksum": "a2394af8d2b4e0c9ba66e797fd6060f4e6932e126f781157cdd2dda1c08b4b6f", "attestations": [ "owGbwMvMwMH4dr363nNHa04wnj4glMSQ8Va7t1opM0XJSsnc0sgiJdXQUBdIWuiaJKWl6iaZJpnrJielGZgnmxuYmaVYKukoFWckGpmaxSdnpCZnF5fmAjUmGhlbmiSmWaQYJZmkGiRbJiWamaWaW5qnpZgZmBmkmaSaWRobpRoamaWZWxgamponp6QYpaQkGiYbWCSZJJmlgQzNz02Nzy/JSC2KL0vMKU0FmuqYkpKaopBWlJ+rAJItB8qlKoCVKJRkJOYBicxiheKC1OTMtMzkxJLM/DxFpVquTiZ/FgZGDgZLMUWWicUSryIWnPnu39fyEuZrViaQj6VFGhiAgIWBLzcxr9RIx0jPVNtQz9BQB8hk4OIUgKm+ms7/P9xXe5oSl6nYW1fJ9S9/bhZN3br8oWev2A8R+Vs7ODd88xUxncHVvIltQXxwed3mm9xiu/+LV/oYqB1KuvI4+cittFtcj3KUpqd3RikEzfM7mcXDv+5x9lKuG4e+f2Hk8zmt9Tybf62wZL/+RzXzoMtqa4LeFUcWNBQ9X81+R6z+0J7PfOJvuC+8SetJl7B+pyj+4W/S+S0+2/LTn5fUC+jPuLTdWfD+r0kThHjbVCYk9td/6JVKmPP88A2bN+fyRDc9qH/Sv4Nr3bRDi1xbDJmKFxmenJfYOGf3cpEJG0XbrN1u7rwmvqzipljKJteU/MxUe1aHh0IzwgWXHV3XwxnAcnu/4IfWq368knX5D2XkK4ovnGdZeKft+clmubgcFUGGgKqVcYvKzr/nKZpl0adm7rvFty1XhTP7xN/UnM8Z+4ymFURfc5vvbayupqC0pDnSa93EW5MnBFSoOImE+e5TNxdnXli6uflNZsXkj8wxBgvfTxVTuX/AmCvkjHkc178tHyu2uQWtFze6+PmCXJ5B9BnjJ7ZH3ZnmLZ8rpPv03v44j6PZd0R8Wf74l7WpHc56EBrF+ZNr00J3eTOTxQIvu/7vU/1bqdCWd0HugGdVwuSoqmPa0f/v7Fl8L2bPLasPrrOyZ4Xtse3t2pDp9qpgCUfjfr26Cl57/rs8njkf3ygUJIiHFZ/5ujGrPftRce6Gpft3SbS8+gIA" ], "some_other_value": "Added from somewhere other than this specification!" }¶
The test cases directory stores the manifests for each test case within this evidence package.¶
Each test case is stored as a JSON file, with a UUIDv4 name [RFC9562]. A test case present here MUST have a valid entry in the manifest "test_cases" array defined in Section 3.1.5.¶
Element | Condition | Type | Section | Description |
---|---|---|---|---|
$schema | Optional | String | Section 3.2.1.1 | The $schema element MAY point to a copy of the schema for the manifest. |
metadata | Mandatory | Object | Section 3.2.1.2 | The metadata relating to this test case. |
evidence | Mandatory | Array | Section 3.2.1.3 | The evidence within this test case. |
See an example <uuid>.json file in Appendix C.¶
This element MAY optionally be provided to point to a JSON schema describing the structure of the file. This is typically most useful for validation, however it MUST be acceptable for it to be missing, and this specification should be seen as the primary definition of structure over anything defined in the linked schema.¶
The JSON schema provided at by this element may give details about any additional fields used that are not defined in this specficiation.¶
Element | Condition | Type | Description |
---|---|---|---|
title | Mandatory | String | The title of the test case. |
execution_datetime | Mandatory | String | The ISO8601 date and time of the execution of this test case starting. |
passed | Optional | Enumerated | The state of the test case, if present MUST be either the string "pass" or "fail", or null. If absent, it MUST be interpreted as null. |
custom | Mandatory | Object | Custom metadata values. |
The "custom" field is used to add custom metadata that has been specified in the package manifest's "custom_metadata" field. If a value is specified in "custom", it MUST be present in the package manifest, but all values in the package manifest do not need to be present here. All values MUST be strings and are stored as a simple key-value map, with the custom field ID defined in the manifest as the key.¶
Element | Condition | Type | Section | Description |
---|---|---|---|---|
kind | Mandatory | String | Section 3.2.1.3.1 | The Internet Media Type [RFC2046] of data stored. |
value | Mandatory | String | Section 3.2.1.3.2 | The data stored within this piece of evidence. |
caption | Optional | String/Null | An optional caption for this piece of evidence. | |
original_filename | Optional | String/Null | The original filename. MAY be provided for Image and File evidence, MUST NOT be provided otherwise. |
The "kind" of evidence MUST be an Internet Media Type [RFC2046].¶
The "media" directory stores data in files within the ZIP archive that would be otherwise impractical to store directly in the test cases.¶
Files stored in this directory are of abitrary type. They MUST be named by their SHA256 checksum [RFC6234] with no extension. Their SHA256 checksum and media type MUST be stored in the package manifest "media" element.¶
In the unlikely event that there is a checksum clash, there is currently no preferred method for resolving this. The probability of such a situation is decided to be acceptably low given the expected size and number of files stored in an evidence package, however implementors MAY choose to store the clashing file as base64 data instead of as an additional media file.¶
When loading an evidence package, implemetors MUST use a lock file with the file name ".~lock." followed by the full name of the package it protects, followed by "#", for example for a package called "example.evp", the lock file MUST be called ".~lock.example.evp#". It MUST be located adjacent (in the same directory as) the evidence package. The file MUST contain the process ID of the process holding the lock.¶
The lock file should be considered as locking the package if it is present, regardless of contents.¶
If either of these is not the case, it should be assumed that the there is no current lock over the package.¶
Software implementing the evidence package format MUST NOT load files from the "media" directory into memory until it is needed for display or for extraction. Implementors MUST use streams to load media files to avoid trying to load the entire file into memory as it may not fit.¶
Evidence packages can support any valid Internet Media Type [RFC2046] as evidence. Implementors of this specification MUST be able to display the following types:¶
Media Type | Description |
---|---|
text/plain | Plain text with no formatting. |
text/markdown | Text with markdown support. |
text/vnd.angel.http-data | An HTTP request/response pair. |
image/* | An image that should be rendered where possible. |
Common image formats SHOULD be rendered where possible, but it is not required to support every possible type of image.¶
Markdown SHOULD be rendered where possible, but it may be adapted for security reasons. If it is changed before display, a notice MUST be displayed to the user disclosing that it has been adjusted for security. For example, it is acceptable to strip raw HTML tags before rendering.¶
Other media types MUST be supported insofar as being able to extract the data from the evidence package so that they can be opened in other software.¶
Where text/vnd.angel.http-data is used, an HTTP request and response MUST be present in plain text, and a Record Separator character (0x1e) MUST be used to split the request and response portion. In other words, the format MUST comply with the following regular expression:¶
^(?<request>[.\r\n]*)\x1e(?<response>[.\r\n]*)$¶
For example the separator is present at 1:¶
GET / HTTP/1.1 Host: example.com User-Agent: HTTPie \x1eHTTP/1.1 200 OK <1> Cache-Control: max-age=1366 Connection: close ...¶
Every JSON file within an evidence package MAY have new fields added, and as such extended behaviours MAY be implemented, however implementors MUST be able to load an evidence package without these additional fields.¶
When an implementor loads a file with fields it cannot understand, it MUST retain the fields on saving the file.¶
This document acts as the specification for the media type application/vnd.angel.evidence-package. Additionally, the media type text/vnd.angel.http-data is defined in Section 5.1.¶
The evidence package format can store arbitrary files that may or may not be executable. Implementors MUST NOT execute any file contained within and SHALL only extract the contained files if needed.¶
Otherwise, there are no concerns for security from the file type itself.¶
example.evp |- manifest.json |- media | \- 203073da0b36a5921f2914e2093abcae7eb987846f405b438c25792bab1617fa \- test_cases \- eabb5d31-a958-4609-ac98-83365e14d18b.json¶
{ "metadata": { "title": "Example Evidence Package", "authors": [ { "name": "Anonymous Author" }, { "name": "Lily Hopkins", "email": "lily@hpkns.uk" } ] }, "custom_metadata": { "example": { "name": "Example Metadata Field", "description": "A field showing that custom fields can be added", "primary": true } }, "media": [ { "sha256_checksum": "203073da0b36a5921f2914e2093abcae7eb987846f405b438c25792bab1617fa", "mime_type": "text/plain" } ], "test_cases": [ { "id": "eabb5d31-a958-4609-ac98-83365e14d18b" } ] }¶
{ "metadata": { "title": "Example Test Case", "execution_datetime": "2025-05-01T11:13:29+01:00", "passed": null, "custom": { "example": "Example custom metadata field value" } }, "evidence": [ { "kind":"Text", "value":"plain:This is some text based evidence" }, { "kind":"Text", "value":"base64:VGhpcyBpcyBzb21lIHRleHQgYmFzZWQgYmFzZTY0IGVuY29kZWQgZXZpZGVuY2U" }, { "kind":"File", "value":"media:203073da0b36a5921f2914e2093abcae7eb987846f405b438c25792bab1617fa", "caption": "An example file", "original_filename": "example.txt" } ] }¶
{ "$id": "https://evidenceangel-schemas.hpkns.uk/manifest.2.schema.json", "$schema": "http://json-schema.org/draft-07/schema", "type": "object", "description": "The metadata file `metadata.json` as part of an evidence package.", "properties": { "metadata": { "type": "object", "properties": { "title": { "type": "string", "description": "The name of the evidence package.", "minLength": 1, "maxLength": 30 }, "authors": { "type": "array", "description": "The authors attributed to this evidence package.", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "The author's name." }, "email": { "type": "string", "description": "The author's email address, although format is not verified." } }, "required": ["name"] } }, "description": { "type": "string", "description": "An optional description of the package." } }, "required": ["title", "authors"] }, "custom_metadata": { "type": "object", "description": "Custom metadata fields for test cases", "patternProperties": { ".+": { "type": "object", "description": "A custom metadata field", "properties": { "name": { "type": "string", "description": "A user-friendly name for this custom property." }, "description": { "type": "string", "description": "A description for this custom property." }, "primary": { "type": "boolean", "description": "Is this custom property the main one in this package? This may influence how it is displayed in editors." } }, "required": ["name", "description", "primary"] } } }, "media": { "type": "array", "items": { "type": "object", "description": "A media entry. When an entry is present in this manifest, it MUST also be present in the `media` directory of the package.", "properties": { "sha256_checksum": { "type": "string", "description": "The SHA256 checksum of the media file. This MUST also match identically the name of the file with no extension in the `media` directory.", "pattern": "^[0-9a-f]{64}$" }, "mime_type": { "type": "string", "description": "The MIME type of the media file." } }, "required": ["sha256_checksum", "mime_type"] } }, "test_cases": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "The UUID of the test case. If present here, there MUST be an associated test case file in the `testcases` directory of the package with the name `<UUID>.json`." }, "sha256_checksum": { "type": "string", "description": "The SHA256 checksum of the corresponding JSON file, \"<UUID>.json\".", "pattern": "^[0-9a-f]{64}$" }, "attestations": { "type": "array", "description": "An array of attestations over this test case.", "items": { "type": "string", "description": "The elements within the \"attestations\" array MUST be base64 encoded strings of OpenPGP [@!RFC9580] signatures. The signatures should be signing a copy of this manifest entry, excluding \"attestations\" itself, having been processed into JSON canonical format as defined in RFC8785.", "pattern": "^[A-z0-9+/]*$" } } }, "required": ["id", "sha256_checksum", "attestations"] } } }, "required": ["metadata", "media", "test_cases"] }¶
{ "$id": "https://evidenceangel-schemas.hpkns.uk/testcase.1.schema.json", "$schema": "http://json-schema.org/draft-07/schema", "type": "object", "description": "A test case file `testcases/<UUID>.json` as part of an evidence package.", "properties": { "metadata": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the test case", "minLength": 1, "maxLength": 30 }, "execution_datetime": { "type": "string", "format": "date-time", "description": "The date and time of the execution of this test case starting." }, "passed": { "type": ["string", "null"], "description": "The state of the test case", "enum": [ "pass", "fail", null ] }, "custom": { "type": "object", "description": "Custom metadata values", "patternProperties": { ".+": { "type": "string" } } } }, "required": ["title", "execution_datetime"] }, "evidence": { "type": "array", "items": { "type": "object", "description": "A piece of evidence as part of this test case.", "properties": { "kind": { "type": "string", "description": "The type of data stored. Note that where `Http` is used, a Record Separator character (0x1e) can be used to split the request and response portion.", "enum": ["Text", "RichText", "Image", "Http", "File"] }, "value": { "type": "string", "description": "Either `plain:` followed by plain text, `media:` followed by a media SHA256 hash, or `base64:` followed by a base64 string of data without padding.", "pattern": "^(plain:.*)|(media:[0-9a-f]{64})|(base64:[A-z0-9+/]*)$" }, "caption": { "type": "string", "description": "An optional caption for this piece of evidence." }, "original_filename": { "type": "string", "description": "The original filename for File evidence" } }, "required": ["kind", "value"], "if": { "properties": { "kind": { "const": "File" } } }, "else": { "not": { "required": ["original_filename"] } } } } }, "required": ["metadata", "evidence"] }¶