Skip to content

Commit 68a99a3

Browse files
committed
Remove lattice
1 parent 6aab5ac commit 68a99a3

7 files changed

Lines changed: 30 additions & 1387 deletions

File tree

pkg/github/context_tools_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func Test_GetMe_IFC_InsidersMode(t *testing.T) {
191191
err = json.Unmarshal(ifcJSON, &ifcMap)
192192
require.NoError(t, err)
193193

194-
assert.Equal(t, "high", ifcMap["integrity"])
194+
assert.Equal(t, "trusted", ifcMap["integrity"])
195195
confList, ok := ifcMap["confidentiality"].([]any)
196196
require.True(t, ok, "confidentiality should be a list")
197197
require.Len(t, confList, 1)

pkg/ifc/ifc.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Package ifc provides Information Flow Control labels for annotating MCP tool outputs.
2+
// The actual IFC enforcement engine lives in a separate service; this package only
3+
// defines the label schema used for annotations.
4+
package ifc
5+
6+
type Integrity string
7+
8+
const (
9+
IntegrityTrusted Integrity = "trusted"
10+
IntegrityUntrusted Integrity = "untrusted"
11+
)
12+
13+
type Confidentiality string
14+
15+
const (
16+
ConfidentialityPublic Confidentiality = "public"
17+
)
18+
19+
type SecurityLabel struct {
20+
Integrity Integrity `json:"integrity"`
21+
Confidentiality []Confidentiality `json:"confidentiality"`
22+
}
23+
24+
func LabelGetMe() SecurityLabel {
25+
return SecurityLabel{
26+
Integrity: IntegrityTrusted,
27+
Confidentiality: []Confidentiality{ConfidentialityPublic},
28+
}
29+
}

pkg/ifc/labelling_engine_readers.go

Lines changed: 0 additions & 6 deletions
This file was deleted.

pkg/ifc/labelling_engine_readers_test.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

pkg/ifc/lattice.go

Lines changed: 0 additions & 221 deletions
This file was deleted.

0 commit comments

Comments
 (0)